The screenshot of error is here.我是新来的Spring Security,并且正在努力实现这个教程http://websystique.com/spring-security/angularjs-basic-authentication-using-spring-security/EnableWebSecurity不能被解析为一个类型
但我的依赖关系没有得到解决因为没有一个类前缀org.springframework.security.config的*是越来越决心我已经包括3瓶型 :
spring-security-web-3.1.2-RELEASE.jar
spring-security-core-3.1.2-RELEASE.jar
spring-security-config-3.1.2-RELEASE.jar
仍然错误来了。有没有其他的罐子我错过了? 注意,我没有使用maven
这是奇怪的,你应该看到,包,包括弹簧安全配置。但为什么你使用3.1.2版本?有更新的版本。我用4.1.2试过,我看到了包配置。 http://repo.spring.io/release/org/springframework/security/spring-security/ – amicoderozer
@amicoderozer我使用弹簧3,所以选择了版本3的罐子。但不管版本,它应该工作我猜。 –
你在控制台有错误吗?你可以发布你的类路径吗?没有其他线索很难猜出有什么不对。 – amicoderozer