Null value after injecting bean using @Autowire

前端 未结 0 1733
走了就别回头了
走了就别回头了 2020-11-29 03:50

I am getting null value when injecting a bean using autowire and calling the getter. However if I do it using ctx.getbean(name, class) (see application.java) , the value is

相关标签:
回答
  • 消灭零回复
提交回复
热议问题