西维蜀黍

【Java】Mybatis

  ...


【Spring】Spring 中的 AOP

AOP实现有哪些注解?

常用的注解包括:

  • @Aspect:用于定义切面,标注在切面类上。
  • @Pointcut:定义切入点,标注在方法上,用于指定连接点。
  • @Before:在方法执行之前执行通知。
  • @After:在方法执行之后执行通知。
  • @Around:在方法执行前后都执行通知。
  • @AfterReturning:在方法执行后返回结果后执行通知。
  • @AfterThrowing:在方法抛出异常后执行通知。
  • @Advice:通用的通知类型,可以取代 @Before、@After 等。
  ...


【Spring】Spring 中的 Beans

  ...


【Spring】Spring 中的注解(Annotation)

Annotations in Spring Framework

Spring Framework:

  • @Component, @Service, @Repository: Declare components for Spring to manage.
  • @Autowired: Enables dependency injection.
  • @RequestMapping, @GetMapping, @PostMapping: Define web endpoints.
  ...


【Java】注解(Annotation)

In Java, an annotation is a form of metadata that provides information to the compiler or runtime environment but does not directly affect program execution.

  ...