这两天遇到的错误真的有些无语,技术方面的问题我也就认栽了。。。。。

添加了@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

具体是这样解决的

 真无语真的很无语,又是缓存问题

Logo

华为开发者空间,是为全球开发者打造的专属开发空间,汇聚了华为优质开发资源及工具,致力于让每一位开发者拥有一台云主机,基于华为根生态开发、创新。

更多推荐