pom文件加
<build>
<!-- 项目打包时会将java目录中的*.xml文件也进行打包 -->
<resources>
<resource>
<directory>src/main/java</directory>
<includes>
<include>**/*.xml</include>
</includes>
</resource>
</resources>
</build>
在yml配置文件添加
或者把:的=删除
mybatis-plus:
mapper-locations: classpath:=com/y/yl_service/mapper/xml/*Mapper.xml