- 我用的spring boot 2.0.3 tomcat版本 8.5.37 使用idea启动项目 外部tomcat启动时,会报
10-Jan-2019 08:59:36.509 淇℃伅 [RMI TCP Connection(3)-127.0.0.1] org.apache.catalina.core.ApplicationContext.log 2 Spring WebApplicationInitializers detected on classpath
本来这个在一般情况下没有问题,但是一旦整合dubbo 2.6.5 会出现报下列错误导致,项目无法启动。
`org.apache.catalina.core.StandardContext.listenerStart Exception sending context initialized event to listener instance of class [org.springframework.web.context.ContextLoaderListener]
java.lang.IllegalStateException: Cannot initialize context because there is already a root application context present - check whether you have multiple ContextLoader* definitions in your web.xml!`
经过实际测试任何spring boot 2.0.x 项目在外部tomcat启动的情况下会出现 2 Spring WebApplicationInitializers detected on classpath.外部启动都该设的都已经设了。但是就是会报这个问题
请求大神指教
大神,最后解决没?