spring boot 注释了@Component 之后,可以用构造函数传递参数,但是@Autowired 自动失效

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/xocom/article/details/82867357

附图:

@Autowired  要放在前面传递变量过来的类中

猜你喜欢

转载自blog.csdn.net/xocom/article/details/82867357
今日推荐