<!--插件配置-->
<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