1.@bean注解用于注册一个bean到 到ioc容器中。类似于@component注解

2.@configure注解,相当于指明这个类是配置文件

3.@bean还可以指定initMethod,destroyMethod,用来指定bean的初始化方法和销毁方法。

4.AspectJ是独立的spring aop注解方式

相关文章:

  • 2022-12-23
  • 2021-06-29
  • 2021-10-05
  • 2022-12-23
  • 2021-07-27
  • 2021-09-08
猜你喜欢
  • 2021-09-22
  • 2023-02-10
  • 2021-10-09
  • 2021-07-19
  • 2021-05-25
  • 2021-08-27
  • 2021-09-25
相关资源
相似解决方案