在一开始,我们主要谈谈怎么配置Spring Security,怎么使用Spring Security。
为了避免在每个例子中重复包含所有的第三方依赖,要知道Spring.jar就有2M多,所以我们使用了Maven2管理项目。如果你的机器上还没安装Maven2,那么可以参考我们网站提供的Maven2教程http://www.family168.com/oa/maven2/html/index.html。
我们用使用的第三方依赖库关系如下所示:
[INFO] [dependency:tree] [INFO] com.family168.springsecuritybook:ch01:war:0.1 [INFO] \- org.springframework.security:spring-security-taglibs:jar:2.0.4:compile [INFO] +- org.springframework.security:spring-security-core:jar:2.0.4:compile [INFO] | +- org.springframework:spring-core:jar:2.0.8:compile [INFO] | +- org.springframework:spring-context:jar:2.0.8:compile [INFO] | | \- aopalliance:aopalliance:jar:1.0:compile [INFO] | +- org.springframework:spring-aop:jar:2.0.8:compile [INFO] | +- org.springframework:spring-support:jar:2.0.8:runtime [INFO] | +- commons-logging:commons-logging:jar:1.1.1:compile [INFO] | +- commons-codec:commons-codec:jar:1.3:compile [INFO] | \- commons-collections:commons-collections:jar:3.2:compile [INFO] +- org.springframework.security:spring-security-acl:jar:2.0.4:compile [INFO] | \- org.springframework:spring-jdbc:jar:2.0.8:compile [INFO] | \- org.springframework:spring-dao:jar:2.0.8:compile [INFO] \- org.springframework:spring-web:jar:2.0.8:compile [INFO] \- org.springframework:spring-beans:jar:2.0.8:compile
Submit feedback about this site to: