Error creating bean with name 'xxxcontroller'...........Error creating bean with name 'xxxservice'错误
没有service第一种解决方法@Autowired后面添加(required=false)@Autowired(required=false)service相当于汽车轮子,controller相当于汽车,平常状态下,没有轮子,汽车就生产不出来,但加上required=false,相当于先生产汽车,汽车生产完成,自动加上轮子.第二种解决方法注释@Autowired和声明的service的对象