这是我的spring-security-loginform-annotation项目出现的错误。
我参考了mkyong网站上的内容。 链接
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.3.2:compile (default-compile) on project spring-security-loginform-annotation: Compilation failure: Compilation failure:
[ERROR] \Projects\SpringKT\spring-security-custom-login-form-annotation\src\main\java\com\mkyong\config\SecurityConfig.java:[12,7] error: cannot access Filter
[ERROR] \Projects\SpringKT\spring-security-custom-login-form-annotation\src\main\java\com\mkyong\config\core\SpringSecurityInitializer.java:[5,7] error: cannot access ServletException
Here is my details of project
Versions
<spring.version>4.0.6.RELEASE</spring.version>
<spring.security.version>3.2.3.RELEASE</spring.security.version>
<jstl.version>1.2</jstl.version>
<javax.servlet.version>3.1.0</javax.servlet.version>
我像这样运行它: mvn clean package install jetty:run 但它会出现上述错误。
@Configuration
@EnableWebSecurity
public class SecurityConfig extends WebSecurityConfigurerAdapter {//Line 12
public class SpringSecurityInitializer extends AbstractSecurityWebApplicationInitializer {//Line 05