java测试类中,在注入类的时候,@Autowired可能会出现报错:Could not autowire.No beans of ‘XXXService‘ type found.

将@Autowired改为@Resource

猜你喜欢

转载自blog.csdn.net/dd2016124/article/details/129119125