- 开发环境:
基于maven依赖管理的spring mvc基础工程!
- 抛出以上异常的原因
- maven依赖的的 jsp-api 与Tomcat插件自带的jar包差生冲突
- 解决方法:
- 将依赖项 jsp-api 的的scope改为 provided ,如下所示:
-
1 <dependency> 2 <groupId>javax.servlet.jsp</groupId> 3 <artifactId>jsp-api</artifactId> 4 <version>${jspApiVersion}</version> 5 <scope>provided</scope> 6 </dependency>