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>


上一篇:IntelliJ IDE中的project structure


下一篇:Virtual Table on Power Apps with OData