Field injection is not recommended
Field injection is not recommended在使用spring框架中的依赖注入注解@Autowired的时候,IDEA报了一个警告被警告的代码如下@Autowiredprivate PayLogService payLogService;警告的内容如下Field injection is not recommended // 使用变量的以来注入是不推荐的Spring官方给出解决方案是这样的Inspection info: Spring Team recommend
原创
2020-10-09 15:16:01 ·
401 阅读 ·
0 评论