解决:Error creating bean with name 'customerServiceImpl': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException:

在写新模块时报错,无法注入 找了好久,直到看见

原来是配置文件的问题

我的问题是方法名重复

其他问题有:1、namespace 和接口名对应,注意大小写

      2、注意类名的一致性

      3、还有就是注解@Controller @Service这类的问题

 

posted @ 2022-03-07 14:04  雨涅  阅读(506)  评论(0)    收藏  举报