关于RestTemplate加@Autowired注入不了的解决。

1、在启动类加入如图箭头所示代码:

然后在进行@Autowired发现不报错了。完美解决..

猜你喜欢

转载自blog.csdn.net/qq_40667143/article/details/83444822