添加了@MapperScan注解,但是报找不到mapper的错误的解决
这两天遇到的错误真的有些无语,技术方面的问题我也就认栽了。。。。。添加了@MapperScan的注解,但是还是报这个错误Error starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled.2022-04-20 00:45:01.374 ERR
·
这两天遇到的错误真的有些无语,技术方面的问题我也就认栽了。。。。。
添加了@MapperScan的注解,但是还是报这个错误
Error starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled.
2022-04-20 00:45:01.374 ERROR 18296 --- [ main] o.s.b.d.LoggingFailureAnalysisReporter :
***************************
APPLICATION FAILED TO START
***************************
Description:
Field userMapper in com.yinpeng.service.impl.UserServiceImpl required a bean of type 'com.yinpeng.mapper.UserMapper' that could not be found.
The injection point has the following annotations:
- @org.springframework.beans.factory.annotation.Autowired(required=true)
Action:
Consider defining a bean of type 'com.yinpeng.mapper.UserMapper' in your configuration.
Process finished with exit code 1
具体是这样解决的
真无语真的很无语,又是缓存问题
更多推荐
已为社区贡献3条内容
所有评论(0)