原文: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