附上关于这节的spring官方文档:

ApplicationContextAware and BeanNameAware

spring中最重要的一些Aware接口

aware接口在spring中无处不在,它是用来感知spring的ioc container

引用spring官方的一句话:

Spring offers a range of Aware callback interfaces that allow beans to indicate to the container that they require a certain infrastructure dependency

这句话真的讲的相当精妙啊!

相关文章:

  • 2021-08-12
  • 2021-09-28
  • 2021-12-16
  • 2022-12-23
  • 2021-07-11
  • 2022-02-17
  • 2021-08-22
  • 2021-10-17
猜你喜欢
  • 2021-08-18
  • 2021-08-06
  • 2021-10-15
  • 2021-11-30
  • 2022-12-23
  • 2021-06-21
相关资源
相似解决方案