1,341   Java

ERROR:
org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named ‘testService’ is defined

出现上述错误的可能:

1,压根没有编写testService类,这个当没讲过

2,编写了testService类,并且配置了xml文件,但是写错了class路径,如下interface的值

dubbo:service interface="com.hgeagle.aop.iphonerecharge.service.IphoneReserveOrderInfoService" ref="iphoneReserveOrderInfoServiceImpl" 

3,testService类注解没写好,无法自动注入,比如:@MyBatisRepository,@Component等




Leave a Reply

Your email address will not be published. Required fields are marked *