Today parts of learning: Spring AOP is used and implemented redis cache?

notes

How to use AOP in Spring?

  1. How Spring is switched JDK dynamic proxies and CGLIB of?
  • spring.aop.proxy-target-class = true (downward in the second link in the mentioned primary doc)
  1. @Aspect Life section
  • @Before
  • @After
  • @Around

Redis

  1. Widely used memory cache
  2. Common data structure:
  • String
  • List
  • Set
  • Hash
  • token
  1. Redis Why fast?
  • Based entirely on memory
  • Excellent data structure design
  • Single thread, avoiding the overhead of context switches
  • Event-driven, non-blocking

Browse some of the learning materials

Spring Boot use AOP unified processing Web requests logs
Proxying mechanisms: proxy mechanism (spring doc)
Aspect Oriented Programming with the Spring: using AOP Aspect Oriented Programming (spring doc)

Guess you like

Origin www.cnblogs.com/pipemm/p/12273126.html