SpringBoot Unregistering JMX-exposed beans on shutdown
标签(空格分隔): Spring
话不多说,先贴出一个错误:
c.r.springboot.demo.HelloApplication : No active profile set, falling back to default profiles: default
s.c.a.AnnotationConfigApplicationContext : Refreshing org.springframework.context.annotation.AnnotationConfigApplicationContext@6ac006a6: startup date [Mon Dec 11 17:17:50 CST 2017]; root of context hierarchy
o.s.j.e.a.AnnotationMBeanExporter : Registering beans for JMX exposure on startup
c.r.springboot.demo.HelloApplication : Started HelloApplication in 5.536 seconds (JVM running for 6.73)
s.c.a.AnnotationConfigApplicationContext : Closing org.springframework.context.annotation.AnnotationConfigApplicationContext@6ac006a6: startup date [Mon Dec 11 17:17:50 CST 2017]; root of context hierarchy
o.s.j.e.a.AnnotationMBeanExporter : Unregistering JMX-exposed beans on shutdown
试过了网上的各种方法,但是问题还是得不到实质的解决,纠结了好久。
大多的解决方案为:http://blog.csdn.net/sun20100912/article/details/52013463
试过了好几次还是不行,在绝望中,查看了下tomcat的加载包。居然源码不能查看!!!! 报错:
invalid LOC header (bad signature)
居然是Maven在下载包的时候,下载出错,真是坑死了。
解决方法:
删除Maven库中的tomcat-embed-core ,重新加载!!!解决。完美!!!
总结:Maven中有时候会莫名其妙的把一个包下载下来之后不能用,很难察觉….