我喜欢使用spring-security模块,但是当我从spring项目中学习教程(http://docs.spring.io/spring-security/site/docs/3.2.x/guides/helloworld.html)时,编译器会返回:
[ERROR] COMPILATION ERROR :
[INFO] -------------------------------------------------------------
[ERROR] \springframework\security\samples\config\SecurityWebApplicationInitializer.java:[5,7] error: cannot access ServletException
[ERROR]\springframework\security\samples\config\SecurityConfig.java:[10,7] error: cannot access Filter
[INFO] 2 errors
你能指导我出错吗?
MysqLMysqL-connector-java
最佳答案
尝试添加servlet-api依赖项
原文链接:https://www.f2er.com/spring/432053.html