spring combat:
Chapter One:
- Dedicated Glossary:
- POJO:Plain Old Java Object
- EJB:Enterprise JavaBean
- DI: Dependency Injection
- AOP:Aspect-Oriented Programming
- Two design patterns used by Spring's philosophy: dependency injection, aop
- 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.
- Spring ecosystems: Spring frame consists of six modules of well-defined classification. Spring Portfolio
- 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