報錯的緣由: spring 4與servlet2.5的兼容性問題,可使用javax.servlet-api替換以下,scope爲testjava
<dependency>
<groupId>javax.servlet</groupId>
<artifactId>javax.servlet-api</artifactId>
<version>3.0.1</version>
<scope>test</scope>spring
</dependency>api