|
@@ -0,0 +1,112 @@
|
|
|
|
+<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 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
|
|
|
+ <modelVersion>4.0.0</modelVersion>
|
|
|
|
+
|
|
|
|
+ <groupId>com.jg</groupId>
|
|
|
|
+ <artifactId>thaw-rapi</artifactId>
|
|
|
|
+ <version>1.0-SNAPSHOT</version>
|
|
|
|
+
|
|
|
|
+ <parent>
|
|
|
|
+ <groupId>org.springframework.boot</groupId>
|
|
|
|
+ <artifactId>spring-boot-starter-parent</artifactId>
|
|
|
|
+ <version>2.5.15</version>
|
|
|
|
+ <relativePath/>
|
|
|
|
+ </parent>
|
|
|
|
+
|
|
|
|
+ <properties>
|
|
|
|
+ <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
|
|
|
+ <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
|
|
|
|
+ <java.version>1.8</java.version>
|
|
|
|
+ <maven-jar-plugin.version>3.1.1</maven-jar-plugin.version>
|
|
|
|
+ <swagger.version>3.0.0</swagger.version>
|
|
|
|
+ <fastjson.version>2.0.43</fastjson.version>
|
|
|
|
+ </properties>
|
|
|
|
+
|
|
|
|
+ <dependencies>
|
|
|
|
+
|
|
|
|
+ <!-- SpringBoot 核心包 -->
|
|
|
|
+ <dependency>
|
|
|
|
+ <groupId>org.springframework.boot</groupId>
|
|
|
|
+ <artifactId>spring-boot-starter</artifactId>
|
|
|
|
+ </dependency>
|
|
|
|
+
|
|
|
|
+ <!-- SpringBoot Web容器 -->
|
|
|
|
+ <dependency>
|
|
|
|
+ <groupId>org.springframework.boot</groupId>
|
|
|
|
+ <artifactId>spring-boot-starter-web</artifactId>
|
|
|
|
+ </dependency>
|
|
|
|
+
|
|
|
|
+ <dependency>
|
|
|
|
+ <groupId>org.projectlombok</groupId>
|
|
|
|
+ <artifactId>lombok</artifactId>
|
|
|
|
+ <optional>true</optional>
|
|
|
|
+ </dependency>
|
|
|
|
+
|
|
|
|
+ <!-- Swagger3依赖 -->
|
|
|
|
+ <dependency>
|
|
|
|
+ <groupId>io.springfox</groupId>
|
|
|
|
+ <artifactId>springfox-boot-starter</artifactId>
|
|
|
|
+ <version>${swagger.version}</version>
|
|
|
|
+ <exclusions>
|
|
|
|
+ <exclusion>
|
|
|
|
+ <groupId>io.swagger</groupId>
|
|
|
|
+ <artifactId>swagger-models</artifactId>
|
|
|
|
+ </exclusion>
|
|
|
|
+ </exclusions>
|
|
|
|
+ </dependency>
|
|
|
|
+
|
|
|
|
+ <!-- 防止进入swagger页面报类型转换错误,排除3.0.0中的引用,手动增加1.6.2版本 -->
|
|
|
|
+ <dependency>
|
|
|
|
+ <groupId>io.swagger</groupId>
|
|
|
|
+ <artifactId>swagger-models</artifactId>
|
|
|
|
+ <version>1.6.2</version>
|
|
|
|
+ </dependency>
|
|
|
|
+
|
|
|
|
+ <!-- knife4jswagger-->
|
|
|
|
+ <dependency>
|
|
|
|
+ <groupId>com.github.xiaoymin</groupId>
|
|
|
|
+ <artifactId>knife4j-spring-boot-starter</artifactId>
|
|
|
|
+ <!--在引用时请在maven中央仓库搜索3.X最新版本号-->
|
|
|
|
+ <version>2.0.9</version>
|
|
|
|
+ </dependency>
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+ <!-- 阿里JSON解析器 -->
|
|
|
|
+ <dependency>
|
|
|
|
+ <groupId>com.alibaba.fastjson2</groupId>
|
|
|
|
+ <artifactId>fastjson2</artifactId>
|
|
|
|
+ <version>${fastjson.version}</version>
|
|
|
|
+ </dependency>
|
|
|
|
+ </dependencies>
|
|
|
|
+
|
|
|
|
+ <build>
|
|
|
|
+ <finalName>${project.artifactId}</finalName>
|
|
|
|
+ <plugins>
|
|
|
|
+ <plugin>
|
|
|
|
+ <groupId>org.springframework.boot</groupId>
|
|
|
|
+ <artifactId>spring-boot-maven-plugin</artifactId>
|
|
|
|
+ </plugin>
|
|
|
|
+ </plugins>
|
|
|
|
+ <resources>
|
|
|
|
+ <resource>
|
|
|
|
+ <directory>src/main/resources</directory>
|
|
|
|
+ <filtering>true</filtering>
|
|
|
|
+ </resource>
|
|
|
|
+ </resources>
|
|
|
|
+ </build>
|
|
|
|
+
|
|
|
|
+ <profiles>
|
|
|
|
+ <profile>
|
|
|
|
+ <id>dev</id>
|
|
|
|
+ <properties>
|
|
|
|
+ <spring.profiles.active>dev</spring.profiles.active>
|
|
|
|
+ </properties>
|
|
|
|
+ </profile>
|
|
|
|
+ <profile>
|
|
|
|
+ <id>prod</id>
|
|
|
|
+ <properties>
|
|
|
|
+ <spring.profiles.active>prod</spring.profiles.active>
|
|
|
|
+ </properties>
|
|
|
|
+ </profile>
|
|
|
|
+ </profiles>
|
|
|
|
+</project>
|