SpringBoot Process finished with exit code 0
@作者博客
报错:Process finished with exit code 0
退出
Unregistering JMX-exposed beans on shutdown
2018-04-04 23:50:16.860 INFO 1953 --- [ Thread-16] o.s.j.e.a.AnnotationMBeanExporter : Unregistering JMX-exposed beans
2018-04-04 23:50:16.861 INFO 1953 --- [ Thread-16] j.LocalContainerEntityManagerFactoryBean : Closing JPA EntityManagerFactory for persistence unit 'default'
2018-04-04 23:50:16.862 INFO 1953 --- [ Thread-16] com.zaxxer.hikari.HikariDataSource : HikariPool-1 - Shutdown initiated...
2018-04-04 23:50:16.867 INFO 1953 --- [ Thread-16] com.zaxxer.hikari.HikariDataSource : HikariPool-1 - Shutdown completed.
Process finished with exit code 0
猜测原因:(因为试了好几次了)
第一:
项目中由于pom.xml 的原因
没有
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
</dependency>
第二:
项目中可能由于Maven仓库的问题
我们加入tomcat的依赖
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-tomcat</artifactId>
<scope>provided</scope>
</dependency>
第三:(也是运行成功的)
清理Maven的org 下 apache 文件夹,让Maven重新下载jar包
或者运行Maven命令,清理jar包
dependency:purge-local-repository
© 著作权归作者所有
转载请保留原链接地址
上一篇: mysql主从同步复制错误解决一例
推荐阅读
-
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 问题处理
-
odoo Windows10启动debug模式报错(Process finished with exit code -1073740940 (0xC0000374))
-
#Process finished with exit code -1 问题处理
-
pyqt5,pycharm,Process finished with exit code -1073741819 (0xC0000005)
-
Android Emulator Process finished with exit code -1073741515 (0xC0000135)
-
odoo Windows10启动debug模式报错(Process finished with exit code -1073740940 (0xC0000374))