spring-security的github仓库提供若干示例,先克隆spring-security项目
git clone https://github.com/spring-projects/spring-security.git
git checkout 5.0.3.RELEASE
通过gradle构建项目
./gradlew build
架构spring相关jar安装到本地库
./gradlew install
Spring security samples xml insecure
spring-security-samples-xml-insecure
应用,并没有安全保护,运行应用
git clone https://github.com/spring-projects/spring-security.git
cd spring-security/spring-security/samples/xml/insecure
Hello Spring Security Java Config