springboot项目
在springboot项目整合时出现这样的错误:
Description:
A component required a bean of type 'com.briup.apps.app02.dao.CourseMapper' that could not be found.
Action:
Consider defining a bean of type 'com.briup.apps.app02.dao.CourseMapper' in your configuration.
Process finished with exit code 0
解决方案:
可以用@MapperScan在Application中注入com.briup.apps.app02.dao注解@MapperScan(value = {"com.briup.apps.app02.dao"})

浙公网安备 33010602011771号