Spring :how to avoid combining constructor injection with autowired fields

前端 未结 0 910
悲哀的现实
悲哀的现实 2020-12-18 12:46

What would be the best alternative to avoid having both constructor and field injections ?

As I understand, field injections are not recommended and constructor is th

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