spring-boot:jar 文件内部以及它是如何执行的
spring-boot: inside jar file and how is it executed
我目前正在使用 maven 和 eclipse 开发 spring 启动应用程序。
- 当我构建应用程序时,资源文件夹下的 txt 文件将包含在 jar 文件中?
我可以将它从 jar 中排除吗?
- 当我 运行 来自 eclipse 的应用程序时,将执行什么命令?
这是否意味着执行 jar 文件?
谢谢。
when I build the app, txt file under resources folder will be included in jar file? and can I exclude it from jar?
不要将文件放在您不想在 classpath 和可执行 jar 中包含的资源文件夹中。
when I run the app from eclipse, what command will be executed? does it mean executing jar file ?
取决于您如何执行它 - 它会 运行 您 SpringBootApplication
class 的主要方法或 运行 Maven 目标 spring-boot:run
我目前正在使用 maven 和 eclipse 开发 spring 启动应用程序。
- 当我构建应用程序时,资源文件夹下的 txt 文件将包含在 jar 文件中?
我可以将它从 jar 中排除吗?
- 当我 运行 来自 eclipse 的应用程序时,将执行什么命令?
这是否意味着执行 jar 文件?
谢谢。
when I build the app, txt file under resources folder will be included in jar file? and can I exclude it from jar?
不要将文件放在您不想在 classpath 和可执行 jar 中包含的资源文件夹中。
when I run the app from eclipse, what command will be executed? does it mean executing jar file ?
取决于您如何执行它 - 它会 运行 您 SpringBootApplication
class 的主要方法或 运行 Maven 目标 spring-boot:run