Process finished with exit code 0
运行spring boot application出现Process finished with exit code 0
代表程序正常运行
日志:
2019-07-18 15:54:03.144 INFO 5796 --- [ restartedMain] com.test.day01.Application : Starting Application on cJoda with PID 5796 (H:\IDEA\day01\target\classes started by 王逍遥 in H:\IDEA\day01)
2019-07-18 15:54:03.152 INFO 5796 --- [ restartedMain] com.test.day01.Application : No active profile set, falling back to default profiles: default
2019-07-18 15:54:03.322 INFO 5796 --- [ restartedMain] .e.DevToolsPropertyDefaultsPostProcessor : Devtools property defaults active! Set 'spring.devtools.add-properties' to 'false' to disable
2019-07-18 15:54:05.889 INFO 5796 --- [ restartedMain] o.s.b.d.a.OptionalLiveReloadServer : LiveReload server is running on port 35729
2019-07-18 15:54:05.946 INFO 5796 --- [ restartedMain] com.test.day01.Application : Started Application in 4.024 seconds (JVM running for 5.104)
Process finished with exit code 0
上述日志表示web项目未正常发布
pom中打包方式为war,添加tomcat-starter的依赖后,可以成功部署。
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-tomcat</artifactId>
</dependency>
这个问题有待进一步了解,在此仅做个mark。
ps.如果是Intellij内置服务器的话,服务器图片为树叶,据说此服务器仅能处理静态资源;加入tomcat-starter之后,服务器ico为tomcat.ico。使用的可能是IDE内置的tomcat。
推荐阅读
-
启动就结束 报错:Process finished with exit code 0
-
Process finished with exit code -1073740791 (0xC0000409)
-
Process finished with exit code 0
-
Process finished with exit code 0
-
SpringBoot Process finished with exit code 0
-
SpringBoot: Process finished with exit code 0
-
Process finished with exit code -1073741571 (0xC00000FD)的解决方案
-
SpringBoot - Process finished with exit code 0
-
Tensorflow中Process finished with exit code -1073741819 (0xC0000005)的一种解决方案
-
#Process finished with exit code -1 问题处理