这种错误不仅在mapper(dao)层,在service层也会出现~
我当时在本地跑的时候一点问题都没得有,因为我的这个项目我只拉下来一个模块,并没有把其他模块拉下来,结果在提交代码往测试环境上推了后项目直接起不来,并报了如下错误~
错误信息:
Description:
The bean 'attachMapper' could not be injected as a 'org.macrocloud.modules.sys.mapper.ProcessInspectionAttachMapper' because it is a JDK dynamic proxy that implements:
com.baomidou.mybatisplus.core.mapper.BaseMapper
Action:
Consider injecting the bean as one of its interfaces or forcing the use of CG