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"})
posted @ 2020-09-11 19:56  nofight  阅读(37)  评论(0)    收藏  举报