shiro-related knowledge and learning

Man of few words said, the first on basic knowledge links

30 minutes to learn how to use Shiro
https://www.cnblogs.com/learnhow/p/5694876.html

After learning under the relevant knowledge points supplement

 

 

1, the difference between the user and shiro authc?

 The former is certified, which is logged, if turned Readmemberme feature, which also can pass, while the former would not get through.

So we authc to verify some of the key operations, such as purchasing, user can check that we can use. The time to pay, we need to authenticate the user, it would need a authc.

 2, Shiro certification and I remember the difference between

 

 3, two rules match the same url a url, performing only the first, the path to be put back with wildcards, the following example

/ Authc / admin requires the user to be useful admin privileges, / authc / ** Users must log in to access, / ** all the other paths can be accessed by anyone.

 

4, the same rules defined below url override previously defined (when the execution of the last executed only)

Guess you like

Origin www.cnblogs.com/ggjun/p/12103471.html