spring boot 启动java.lang.ClassNotFoundException: javax.servlet.ServletContext

Importing project from svn starts reporting java.lang.ClassNotFoundException: javax.servlet.ServletContext reports servletContext does not exist

<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-tomcat</artifactId>
<scope>provided</scope>
</dependency>

about the configuration of the container to reload the container tomcat
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-tomcat</artifactId>
<version>1.5.2.RELEASE</version>
</dependency>

is replaced with the specified version number, updated the Maven dependency package, recompile and run ok!

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326253596&siteId=291194637