How to conrfig and run Spring Security 3 tutorial under Myeclipse8

Spring security is one of the security framework under JavaEE platform, Here are the steps to guide how to configure and run the tutorial inside "spring-security-3.0.2.RELEASE". Before starting, you need know how to develop spring under myEclipse.

 

Step 1, Navigate to Myeclipse JavaEE Pespective.

 

Step 2. Create a new Web Project "springsecurity".

 

Step 3. Add Spring Capacibility.

 

Step 4, Import Spring Security libs, spring-security-config-3.0.2.RELEASE.jar and spring-security-core-3.0.2.RELEASE.jar are required.

 

Step 5, Uncompress spring-security-samples-contacts-3.0.2.RELEASE.war and copy the files into the web project. Please keep the same structor.

 

Step 6, Uncompress spring-security-samples-tutorial-3.0.2.RELEASE-sources.jar and copy all the files into src folder.

 

Step 7, if there is no log4j.properties file existing in the src folder, please create it !

 

The final project structor looks like this,

 

 

Step 8, deploy the project under such web containers as tomcat and ask htttp://localhost:8080/springsecurity/

 

If you can see the screen like below. Congratulations! You can run spring tutorial in your locla successfully!


 

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值