关于Spring 无法注入接口的实现类,通常报错类似:
1 | Caused by: java.lang.IllegalArgumentException: Cannot convert value of type [xxxx] to required type [xxxxImpl] for property 'xxxx': no matching editors or conversion strategy found |
首先检查aop设置,确认当前配置文件中配置了
1 | <aop:aspectj-autoproxy proxy-target-class="true"/> |
其次
重命名你的接口,然后实现类实现的接口也更新为新的接口名称。