EnableWebSecurity 无法解析为类型

She*_*ain 2 spring spring-security angularjs

错误截图在这里。我是 Spring Security 的新手,并试图实施本教程http://websystique.com/spring-security/angularjs-basic-authentication-using-spring-security/

但是我的依赖项没有得到解决,因为前缀 org.springframework.security.config.* 的类都没有被解析为我已经包含 3 个 jar 的类型:

spring-security-web-3.1.2-RELEASE.jar 
spring-security-core-3.1.2-RELEASE.jar
spring-security-config-3.1.2-RELEASE.jar
Run Code Online (Sandbox Code Playgroud)

错误还是来了。我还缺少其他罐子吗?注意-我没有使用 maven

Bla*_*ack 5

<!-- https://mvnrepository.com/artifact/org.springframework.boot/spring-boot-starter-security -->
<dependency>
    <groupId>org.springframework.boot</groupId>
    <artifactId>spring-boot-starter-security</artifactId>
    <version>2.0.4.RELEASE</version>
</dependency>
Run Code Online (Sandbox Code Playgroud)