Mapper层访问不到:...required a bean of type '....TBaseAuthMapper' that could not be found.

问题展示:
Mapper层访问不到:...required a bean of type '....TBaseAuthMapper' that could not be found.
问题分析:
你的mapper层的代码放到了启动类的上一层包,应该放在启动类的下一层包,启动类只能扫描同级及子级的包类,具体说明:
Mapper层访问不到:...required a bean of type '....TBaseAuthMapper' that could not be found.
解决方法:
方法一:
Mapper层访问不到:...required a bean of type '....TBaseAuthMapper' that could not be found.
如图所视,路径改一下,加上@Mapper注解,ok了
方法二:
Mapper层访问不到:...required a bean of type '....TBaseAuthMapper' that could not be found.
启动类添加@MapperScan注解并指定你的mapper路径,也可以