报错idea
Error starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled.
2022-09-29 17:17:07.178 ERROR 9716 --- [ restartedMain] o.s.b.d.LoggingFailureAnalysisReporter :
***************************
APPLICATION FAILED TO START
***************************
Description:
A component required a bean of type 'com.example.onedemo.mapper.UserMapper' that could not be found.
Action:
Consider defining a bean of type 'com.example.onedemo.mapper.UserMapper' in your configuration.
Process finished with exit code 0
启动类上加个@MapperScan(value = "mapper类的位置")
远程看看
我这里介绍一套给你生产实战过的,源码教程都有!非常适合学习! 「分布式多数据源读写分离jenkins/Drone k8s集群灰度/自动发布源码」