springbootTest 的测试类中@Autowired的接口报错

需要在此接口上加上@Component 或者 @Repository 注入此接口即可

猜你喜欢

转载自blog.csdn.net/qq_39564710/article/details/113100400