具体报错:
Caused by: org.springframework.context.annotation.ConflictingBeanDefinitionException: Annotation-specified bean name ‘CommissionMapperImpl’ for bean class [com.xxx.mapper.carrier.CommissionMapperImpl] conflicts with existing, non-compatible bean definition of same name and class [com.xxx.mapper.CommissionMapperImpl]…
报错说什么由于 bean 定义冲突导致的,但我只是把mapperImpl挪到了别的包里而已,别的什么也没动。怀疑可能是编译的问题。
解决方案
先clean项目
再compile项目
等待编译完,再运行,就好啦