从svn导入项目 启动报java.lang.ClassNotFoundException: javax.servlet.ServletContext报servletContext 不存在
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-tomcat</artifactId>
<scope>provided</scope>
</dependency>
关于容器的配置 把容器tomcat重新加载
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-tomcat</artifactId>
<version>1.5.2.RELEASE</version>
</dependency>
换成指定版本号,更新了Maven的依赖包,重新编译运行 ok!
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-tomcat</artifactId>
<scope>provided</scope>
</dependency>
关于容器的配置 把容器tomcat重新加载
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-tomcat</artifactId>
<version>1.5.2.RELEASE</version>
</dependency>
换成指定版本号,更新了Maven的依赖包,重新编译运行 ok!