2019/9/4 spring combat, shiro rights record simple

spring combat:

Chapter One:

  1. Dedicated Glossary:
    • POJO:Plain Old Java Object
    • EJB:Enterprise JavaBean
    • DI: Dependency Injection
    • AOP:Aspect-Oriented Programming
  2. Two design patterns used by Spring's philosophy: dependency injection, aop
  3. Spring core modules Bean: in the Spring, Spring objects are created and assembled by the container and the container is present. There are two main types of container Spring: bean plants, application context.
  4. Spring ecosystems: Spring frame consists of six modules of well-defined classification. Spring Portfolio
  5. Spring New features: Spring3.1,3.2.Spring4.0

SHIRO

Verify the identity of the main process are summarized:

  • ShiroConfiguration assembled verified Realm, an encryption method and design setCredentialsMatcher
  • Inheritance Realm, rewrite doGetAuthenticationInFo ways to customize the user identity verification process
  • Controller

    • Creating UsernamePasswordToken instance userToken, obtain Subject instance subject
    • Use subject.login (userToken) authenticated login. (Here will be relevant and encryption methods ShiroConfiguration, if the authentication fails, an exception will be reported related)
    • subject.getsession acquisition session, records login information

Guess you like

Origin www.cnblogs.com/xiaotianblog/p/11460668.html