<!--插件配置--> <build> <plugins> <plugin> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-maven-plugin</artifactId> </plugin> </plugins> <resources> <resource> <directory>src/main/java</directory> <!--包含了src/main/java目录下的所有xml资源配置文件--> <includes> <include>**/*.xml</include> </includes> </resource> <resource> <directory>src/main/resources</directory> <includes> <!--包含了src/main/resources目录下的所有资源配置文件,有别的格式的配置文件时,不要写成**/*.xml--> <include>**/*</include> </includes> <filtering>false</filtering> </resource> </resources> </build>
mybatis-plus: mapper-locations: classpath*=/com/example/demo/mapper/*Mapper.xml type-aliases-package: com.example.demo.mapper