idea springboot 无法启动 Unable to start EmbeddedWebApplicationContext
两种情况
第一种:
Caused by: java.lang.ClassNotFoundException: org.apache.catalina.filters.RemoteIpFilter
第二种:
Unable to start EmbeddedWebApplicationContext due to missing EmbeddedServletContainerFactory bean
解决:注释tomcat启动包的provided
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-tomcat</artifactId>
<!--<scope>provided</scope>-->
</dependency>