根据错误提示是指某个BEN对象没有被定义,这是spring报出的错,因此在缺少的类上面加入spring注解:@Component 确保spring启动时能自动扫描到,在@Autowired 时不报错。问题解决!

转载于:https://wwwblogs/luoning/p/11139515.html

更多推荐

Consider defining a bean of type错误