idea创建springboot项目时打包方式选择war运行时会出错
控制台消息
2017-09-22 09:01:20.948 INFO 692 --- [ main] com.example.demo.DemoApplication : Starting DemoApplication on DESKTOP-T29TC5F with PID 692 (E:\IdeaProjects\demo\target\classes started by xiaoyu in E:\IdeaProjects\demo)
2017-09-22 09:01:20.951 INFO 692 --- [ main] com.example.demo.DemoApplication : No active profile set, falling back to default profiles: default
2017-09-22 09:01:21.216 INFO 692 --- [ main] s.c.a.AnnotationConfigApplicationContext : Refreshing org.springframework.context.annotation.AnnotationConfigApplicationContext@21a947fe: startup date [Fri Sep 22 09:01:21 CST 2017]; root of context hierarchy
2017-09-22 09:01:22.359 WARN 692 --- [ main] o.h.v.m.ParameterMessageInterpolator : HV000184: ParameterMessageInterpolator has been chosen, EL interpolation will not be supported
2017-09-22 09:01:22.563 WARN 692 --- [ main] o.h.v.m.ParameterMessageInterpolator : HV000184: ParameterMessageInterpolator has been chosen, EL interpolation will not be supported
2017-09-22 09:01:22.792 INFO 692 --- [ main] o.s.j.e.a.AnnotationMBeanExporter : Registering beans for JMX exposure on startup
2017-09-22 09:01:22.848 INFO 692 --- [ main] com.example.demo.DemoApplication : Started DemoApplication in 2.824 seconds (JVM running for 5.719)
2017-09-22 09:01:22.850 INFO 692 --- [ Thread-8] s.c.a.AnnotationConfigApplicationContext : Closing org.springframework.context.annotation.AnnotationConfigApplicationContext@21a947fe: startup date [Fri Sep 22 09:01:21 CST 2017]; root of context hierarchy
2017-09-22 09:01:22.852 INFO 692 --- [ Thread-8] o.s.j.e.a.AnnotationMBeanExporter