误状态:错误显示
解决:
(1)说明缺少包---->添加如下包配置
1 <dependency> 2 <groupId>javax.servlet.jsp</groupId> 3 <artifactId>jsp-api</artifactId> 4 <version>2.2</version> 5 <scope>provided</scope> 6 </dependency> 7 8 <dependency> 9 <groupId>javax.servlet</groupId> 10 <artifactId>servlet-api</artifactId> 11 <version>2.5</version> 12 <scope>provided</scope> 13 </dependency> 14 15 <dependency> 16 <groupId>javax</groupId> 17 <artifactId>javaee-api</artifactId> 18 <version>7.0</version> 19 </dependency>
(2)继续报错java.lang.NoClassDefFoundError: org/apache/commons/logging/LogFactory,继续添加如下包
1 <dependency> 2 <groupId>commons-logging</groupId> 3 <artifactId>commons-logging</artifactId> 4 <version>1.2</version> 5 </dependency>
(3)运行正常