1.问题
dao层的接口 找不到 mapper层对应的xml
找不到
2.解决方法
1.启动类加MapperScan
@MapperScan("com.ybj.mpm.system.authentication.dao")
2.yml配置xml位置
mybatis-plus:
mapper-locations: classpath:com/ybj/mpm/system/authentication/mapping/*.xml
3.pom配置resource
<resources>
<resource>
<directory>src/main/java</directory>
<includes>
<include>**/mapping/*.xml</include>
</includes>
</resource>
<resource>
<directory>src/main/resources</directory>
<includes>
<include>**/*.*</include>
</includes>
</resource>
</resources>