springboot + mybatis call another project mapper error

Consider defining a bean of type ‘cn.com.yawei.hotline.common.dao.mapper.WorkformMapper’ in your configuration.

Reason: no automatic injection Mapper; Solution: MapperScan annotation mybatis arranged on the class with another item of the scan path

Here Insert Picture Description

@MapperScan({"cn.com.yawei.hotline.acceptance.dao.mapper","cn.com.yawei.hotline.common.dao.mapper"})
Released nine original articles · won praise 4 · Views 3136

Guess you like

Origin blog.csdn.net/weixin_43642706/article/details/103603182