springboot Mapper: Specified class is an interface
使用springboot集成mongo和mybatis的时候,启动报错XXXMapper]: Specified class is an interface
怀疑mybatis和mongo扫描时互相干扰造成的。
在Application启动类中添加
@MapperScan("com.demo.springboot.mapper")
启动正常
欢迎加入我们交流群578692121
原创
2017-11-08 13:42:46 ·
2886 阅读 ·
0 评论