spring boot 1.5.2启动无效

用的就是官方的例子 ,改成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

2个回答

问题已经解决了,在家里,同样的步骤试了一下,一切正常,目前怀疑可能是jar包损坏或不完整造成(因为在公司,有的直引饮用的包下载错误,会提示引用错误,假如jar之间的引用报错,可能就提示不出来了,导致启动就自动停止了)

Csdn user default icon
上传中...
上传图片
插入图片
抄袭、复制答案,以达到刷声望分或其他目的的行为,在CSDN问答是严格禁止的,一经发现立刻封号。是时候展现真正的技术了!
立即提问