原文:Spring boot mybatis : Error creating bean with name 'com.github.pagehelper.autoconfigure.MapperAutoConfiguration': Invocation of init method failed;

报错截图: 解决方法: 只能扫描到自定义的mapper,不能扫描到其他文件。 MapperScan com.streamax.s .tms.dao.pper.repository . 继承通用Mapper 此接口不能同其他Mapper一起,该类不能被当做普通Mapper一样被扫描,否则会出错。 . 自定义Mapper继承CoreMapper 自定义的 Mapper 通过对应有xml的映射文件 自定 ...

2018-11-26 14:30 0 2771 推荐指数:

查看详情

 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM