用的就是官方的例子 ,改成1.4.2能正常启动 通过localhost:8080可以访问,
改成1.5.2就不行
下面是控制台输出
. ____ _ __ _ _
/\ / ' __ _ ()_ __ __ _ \ \ \ \
( ( )\_ | '_ | '_| | '_ \/ ` | \ \ \ \
\/ __)| |_)| | | | | || (_| | ) ) ) )
' |____| .__|_| |_|_| |___, | / / / /
=========|_|==============|___/=/_/_/_/
:: Spring Boot :: (v1.5.2.RELEASE)
2017-03-14 19:28:27.694 INFO 14200 --- [ main] com.zhou.test.restful.web.Example : Starting Example on DESKTOP-L5D4VUR with PID 14200 (D:\Users\zhouxianfeng\workspace\spring\spring-restful-web\target\classes started by xianfeng.zhou in D:\Users\zhouxianfeng\workspace\spring\spring-restful-web)
2017-03-14 19:28:27.696 INFO 14200 --- [ main] com.zhou.test.restful.web.Example : No active profile set, falling back to default profiles: default
2017-03-14 19:28:27.724 INFO 14200 --- [ main] s.c.a.AnnotationConfigApplicationContext : Refreshing org.springframework.context.annotation.AnnotationConfigApplicationContext@7995092a: startup date [Tue Mar 14 19:28:27 CST 2017]; root of context hierarchy
2017-03-14 19:28:28.225 WARN 14200 --- [ main] o.h.v.m.ParameterMessageInterpolator : HV000184: ParameterMessageInterpolator has been chosen, EL interpolation will not be supported
2017-03-14 19:28:28.322 WARN 14200 --- [ main] o.h.v.m.ParameterMessageInterpolator : HV000184: ParameterMessageInterpolator has been chosen, EL interpolation will not be supported
2017-03-14 19:28:28.680 INFO 14200 --- [ main] o.s.j.e.a.AnnotationMBeanExporter : Registering beans for JMX exposure on startup
2017-03-14 19:28:28.697 INFO 14200 --- [ main] com.zhou.test.restful.web.Example : Started Example in 1.291 seconds (JVM running for 1.578)
2017-03-14 19:28:28.698 INFO 14200 --- [ Thread-2] s.c.a.AnnotationConfigApplicationContext : Closing org.springframework.context.annotation.AnnotationConfigApplicationContext@7995092a: startup date [Tue Mar 14 19:28:27 CST 2017]; root of context hierarchy
2017-03-14 19:28:28.700 INFO 14200 --- [ Thread-2] o.s.j.e.a.AnnotationMBeanExporter : Unregistering JMX-exposed beans on shutdown