很简单:

直接在application.properties加上这句

#解决ApplicationContextAware实现类出现NullPointException的问题
default-autowire="byName" default-lazy-init="true"

 

相关文章:

  • 2022-12-23
  • 2021-05-29
  • 2021-12-25
  • 2021-04-20
  • 2021-04-18
  • 2021-11-13
  • 2021-10-06
  • 2021-10-21
猜你喜欢
  • 2021-09-02
  • 2022-02-16
  • 2021-08-19
  • 2021-04-06
  • 2021-10-06
  • 2021-08-28
  • 2021-05-01
相关资源
相似解决方案