<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<!-- SpringBoot的父级依赖 -->
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>2.5.0</version>
<relativePath/> <!-- lookup parent from repository -->
</parent>
<groupId>space.weizhi</groupId>
<artifactId>weizhi</artifactId>
<version>0.0.1-SNAPSHOT</version>
<name>weizhi</name>
<description>weizhi project</description>
<properties>
<java.version>1.8</java.version>
</properties>
<dependencies>
<!-- 提供Web开发场景所需的底层所有依赖 -->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<!-- 将应用打包的插件 -->
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<configuration>
<!--打包时将与业务无关的类排除-->
<excludes>
</excludes>
<!--将外部引入的jar包(根目录下或resource文件下新加的jar包)打包到项目-->
<includeSystemScope>true</includeSystemScope>
</configuration>
</plugin>
</plugins>
<!-- 加载静态文件 -->
<resources>
<resource>
<directory>src/main/java</directory>
<includes>
<include>**/*.*</include>
</includes>
<filtering>false</filtering>
</resource>
<resource>
<directory>src/main/resources</directory>
<includes>
<include>**/*.*</include>
</includes>
<filtering>false</filtering>
</resource>
</resources>
</build>
SpringBoot基础pom文件
最新推荐文章于 2023-07-30 23:08:17 发布