Spring重命名问题。对照项目中的注解,查找@Service是否重重名。由于Spring是在注解下按配置扫描的方式去创建对象的,那么两个重名的注解也就不成立了。
备注,特别注意test包下有没有通过逆向工程生成的同名service没有删除。