Consider defining a bean of type ‘cn.com.yawei.hotline.common.dao.mapper.WorkformMapper’ in your configuration. 原因:没有自动注入mapper;解决方法:在mybatis配置类的MapperScan注解上加上另一个项目的路径扫描 @MapperScan({"cn.com.yawei.hotline.acceptance.dao.mapper","cn.com.yawei.hotline.common.dao.mapper"})