java.lang.ClassNotFoundException: javax.servlet.SessionCookieConfig

 使用 MockMvc 模拟进行单元测试时出现以下的错误,网上看到的资料应该是说Spring4.0需要servlet3.0的支持?

在pom.xml更改servlet的版本依赖后即可 

原文地址:https://www.cnblogs.com/Guhongying/p/10781283.html