1.首先在pom.xml中添加

<dependency>
    <groupId>org.springframework.security</groupId>
    <artifactId>spring-security-config</artifactId>
    <version>3.1.0.RC2</version>
</dependency>

2.这时会在本地仓库.m2中创建org/springframework/security/spring-security-config/3.1.0.RC2文件夹

3.然后把下载好的jar包扔进去就可以引入项目了

04-18 17:15