springboot启动后总是自己shutdown
现象 这几天一直被一个问题困扰,每次springboot的tomcat启动之后, 然后过了一段时间看, 进程就突然自己关闭掉了。 然后日志是: ationConfigEmbeddedWebApplicationContext : Closing org.springframework.boot.context.embedded.AnnotationConfigEmbeddedWebApplicationContext@6d5380c2: startup date [Sun Sep 24 17:51:04 CST 2017]; root of context hierarchy o.s.j.e.a.AnnotationMBeanExporter : Unregistering JMX-exposed beans on shutdown j.LocalContainerEntityManagerFactoryBean : Closing JPA EntityManagerFactory for persistence unit 'default' 解法 网上也有说这个问题, 但是大多数说的是, 这个是一个非 web应用, 需要添加这个依赖, 链接 <dependency> <groupId>org.springframework.boot</groupId> <artifactId