当前位置:首页 > 程序猿 > SpringBoot

Spring自动装配@Autowired的三种方式

前言 在IDEA升级2017版后,发现以前使用的@Autowired出现了个警告Field injection is not recommended。 虽然不是异常,但就是看着不舒服,所以google了一下,发现了stackoverflow 已经有人提了这个问题,并得到 ...

2017-07-12SpringBoot486次浏览无评论阅读全文