1.Closing JPA EntityManagerFactory for persistence unit 'default'错误导致springboot启动后终止
------------------->
2019-01-22 17:18:34.941 INFO 42978 --- [ Thread-13] j.LocalContainerEntityManagerFactoryBean : Closing JPA EntityManagerFactory for persistence unit 'default'
2019-01-22 17:18:34.945 INFO 42978 --- [ Thread-13] com.zaxxer.hikari.HikariDataSource : HikariPool-1 - Shutdown initiated...
2019-01-22 17:18:35.181 INFO 42978 --- [ Thread-13] com.zaxxer.hikari.HikariDataSource : HikariPool-1 - Shutdown completed.
解决办法
在依赖中添加spring-boot-starter-web
例如Gradle在build.gradle中添加
implementation 'org.springframework.boot:spring-boot-starter-web'