pom.xml创建项目的参数:
- Group:
cn.pro
- Artifact:
csmall-product
- Package Name:
cn.pro.csmall.product
- Java版本:
1.8
- Spring Boot父项目版本:
2.5.9
- 创建过程中勾选的依赖:无
创建项目完成后,pom.xml
文件的内容为:
<?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>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>2.5.9</version>
<relativePath/> <!-- lookup parent from repository -->
</parent>
<!-- 当前项目信息 -->
<groupId>cn.pro</groupId>
<artifactId>csmall-product</artifactId>
<version>0.0.1</version>
<name>csmall-product-teacher</name>
<description>这是商品管理服务的项目(学习中……)</description>
<!-- 属性 -->
<properties>
<!-- 使用的Java的版本 -->
<java.version>1.8</java.version>
</properties>
<!-- 当前项目使用的依赖项(框架、工具包) -->
<!-- scope > test:此依赖项的作用范围只是测试,仅能用于src/test下的代码,且不参与编译、打包 -->
<dependencies>
<!-- Spring Boot的基础依赖项 -->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter</artifactId>
</dependency>
<!-- Spring Boot的测试的依赖 -->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-test</artifactId>
<scope>test</scope>
</dependency>
</dependencies>
</project>