Field bkCustomApiLogMapper in XXXXX required a bean of type 'XXXXX' that could not be found.

1、springboot 项目启动报错

Description:

Field bkCustomApiLogMapper in com.bak.service.log.BKCustomApiLogService required a bean of type 'com.bak.dao.BKCustomApiLogMapper' 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.bak.dao.BKCustomApiLogMapper' in your configuration.  

  2、解决办法:

将 @MapperScan 扫描改成正确的值

 

posted @ 2024-10-08 14:44  信铁寒胜  阅读(19)  评论(0)    收藏  举报