Apache Shiro入门学习

10 Minute Tutorial on Apache Shiro

1.jdk 1.6 and Maven 3.1.1 installed

2.download the lastest "Source Code Distribution" , I use 1.2.4

3.>unzip shiro-root-1.2.4-source-release.zip

4.>cd shiro-root-1.2.4/samples/quikestart

5.Run the QuickStart

  >mvn compile exec:java

7.Obtain the currently executing user by following call:

  Subject currentUser = SubjectUtils.getSubject();

posted @ 2016-04-19 10:01  大象舞  阅读(116)  评论(0)    收藏  举报