spring boot启动报错误
Thread-2] s.c.a.AnnotationConfigApplicationContext : Closing org.springframework.context.annotation.AnnotationConfigApplicationContext@7ba18f1b: startup date [Wed Sep 06 10:44:37 CST 2017]; root of context hierarchy
2017-09-06 10:44:39.667 INFO 14992 --- [ Thread-2] o.s.j.e.a.AnnotationMBeanExporter : Unregistering JMX-exposed beans on shutdown
这个问题是因为pom.xml里面缺少依赖
添加此依赖就可以解决这个问题
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
</dependency>
如果您需要搭建spring boot框架,可采用此网站在线生成一个demo 拿来用
https://start.spring.io/