|
@@ -0,0 +1,418 @@
|
|
|
+<?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 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
|
|
+ <modelVersion>4.0.0</modelVersion>
|
|
|
+
|
|
|
+ <groupId>com.example</groupId>
|
|
|
+ <artifactId>springboot_v2</artifactId>
|
|
|
+ <version>3.4</version>
|
|
|
+ <packaging>jar</packaging>
|
|
|
+ <name>springboot_v2</name>
|
|
|
+ <description>springbootv2系统</description>
|
|
|
+
|
|
|
+ <parent>
|
|
|
+ <groupId>org.springframework.boot</groupId>
|
|
|
+ <artifactId>spring-boot-starter-parent</artifactId>
|
|
|
+ <version>2.3.7.RELEASE</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>
|
|
|
+ <commons.fileupload.version>1.3.3</commons.fileupload.version>
|
|
|
+ <commons.io.version>2.5</commons.io.version>
|
|
|
+ </properties>
|
|
|
+
|
|
|
+ <!-- https://mvnrepository.com/ 查找jar网站 -->
|
|
|
+ <dependencies>
|
|
|
+ <!-- SpringBoot Web容器 -->
|
|
|
+ <dependency>
|
|
|
+ <groupId>org.springframework.boot</groupId>
|
|
|
+ <artifactId>spring-boot-starter-web</artifactId>
|
|
|
+ </dependency>
|
|
|
+ <!-- SpringBoot集成mybatis框架 -->
|
|
|
+ <!--<dependency>-->
|
|
|
+ <!--<groupId>org.mybatis.spring.boot</groupId>-->
|
|
|
+ <!--<artifactId>mybatis-spring-boot-starter</artifactId>-->
|
|
|
+ <!--<version>1.3.2</version>-->
|
|
|
+ <!--</dependency>-->
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+ <!-- By Wang jiawen 从本地类库引入阿里巴巴 fastjson 版本1.27 系统级别 路径根目录lib文件夹下 云地址 https://mvnrepository.com/artifact/com.alibaba/fastjson -->
|
|
|
+ <!-- https://mvnrepository.com/artifact/com.alibaba/fastjson -->
|
|
|
+ <dependency>
|
|
|
+ <groupId>com.alibaba</groupId>
|
|
|
+ <artifactId>fastjson</artifactId>
|
|
|
+ <version>1.2.17</version>
|
|
|
+ </dependency>
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+ <!--By Wang jiawen lombok 从云引入 目的提供get set方法-->
|
|
|
+ <dependency>
|
|
|
+ <groupId>org.projectlombok</groupId>
|
|
|
+ <artifactId>lombok</artifactId>
|
|
|
+ <version>1.18.12</version>
|
|
|
+ </dependency>
|
|
|
+
|
|
|
+
|
|
|
+ <!-- SpringBoot 测试 -->
|
|
|
+ <dependency>
|
|
|
+ <groupId>org.springframework.boot</groupId>
|
|
|
+ <artifactId>spring-boot-starter-test</artifactId>
|
|
|
+ <scope>test</scope>
|
|
|
+ </dependency>
|
|
|
+
|
|
|
+ <dependency>
|
|
|
+ <groupId>cglib</groupId>
|
|
|
+ <artifactId>cglib</artifactId>
|
|
|
+ <version>2.2.2</version>
|
|
|
+ </dependency>
|
|
|
+
|
|
|
+ <!--GSON -->
|
|
|
+ <dependency>
|
|
|
+ <groupId>com.google.code.gson</groupId>
|
|
|
+ <artifactId>gson</artifactId>
|
|
|
+ </dependency>
|
|
|
+ <!-- pageHelper -->
|
|
|
+ <!-- <dependency>-->
|
|
|
+ <!-- <groupId>com.github.pagehelper</groupId>-->
|
|
|
+ <!-- <artifactId>pagehelper-spring-boot-starter</artifactId>-->
|
|
|
+ <!-- <version>1.2.5</version>-->
|
|
|
+ <!-- </dependency>-->
|
|
|
+ <!-- mysql驱动7.0-->
|
|
|
+ <dependency>
|
|
|
+ <groupId>mysql</groupId>
|
|
|
+ <artifactId>mysql-connector-java</artifactId>
|
|
|
+ </dependency>
|
|
|
+ <!-- <dependency>-->
|
|
|
+ <!-- <groupId>com.oracle</groupId>-->
|
|
|
+ <!-- <artifactId>ojdbc6</artifactId>-->
|
|
|
+ <!-- <version>11.2.0.3</version>-->
|
|
|
+ <!-- <scope>runtime</scope>-->
|
|
|
+ <!-- </dependency>-->
|
|
|
+ <!-- <dependency>-->
|
|
|
+ <!-- <groupId>oracle</groupId>-->
|
|
|
+ <!-- <artifactId>oracle</artifactId>-->
|
|
|
+ <!-- <version>11.2.0.3</version>-->
|
|
|
+ <!-- <scope>system</scope>-->
|
|
|
+ <!-- <systemPath>${project.basedir}/src/main/resources/lib/ojdbc6.jar</systemPath>-->
|
|
|
+ <!-- </dependency>-->
|
|
|
+ <dependency>
|
|
|
+ <groupId>com.oracle</groupId>
|
|
|
+ <artifactId>ojdbc6</artifactId>
|
|
|
+ <version>11.2.0.3</version>
|
|
|
+ </dependency>
|
|
|
+ <dependency>
|
|
|
+ <groupId>org.springframework.boot</groupId>
|
|
|
+ <artifactId>spring-boot-starter-jdbc</artifactId>
|
|
|
+ </dependency>
|
|
|
+ <dependency>
|
|
|
+ <groupId>org.springframework.boot</groupId>
|
|
|
+ <artifactId>spring-boot-starter-websocket</artifactId>
|
|
|
+ </dependency>
|
|
|
+
|
|
|
+ <!-- mysql驱动8.0
|
|
|
+ <dependency>
|
|
|
+ <groupId>mysql</groupId>
|
|
|
+ <artifactId>mysql-connector-java</artifactId>
|
|
|
+ <version>8.0.11</version>
|
|
|
+ </dependency>
|
|
|
+ -->
|
|
|
+ <!--druid 数据源监控-->
|
|
|
+ <!-- https://mvnrepository.com/artifact/com.alibaba/druid-spring-boot-starter -->
|
|
|
+ <dependency>
|
|
|
+ <groupId>com.alibaba</groupId>
|
|
|
+ <artifactId>druid-spring-boot-starter</artifactId>
|
|
|
+ <version>1.1.10</version>
|
|
|
+ </dependency>
|
|
|
+
|
|
|
+ <dependency>
|
|
|
+ <groupId>org.springframework.boot</groupId>
|
|
|
+ <artifactId>spring-boot-starter-aop</artifactId>
|
|
|
+ </dependency>
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+ <!--常用工具类 -->
|
|
|
+ <dependency>
|
|
|
+ <groupId>org.apache.commons</groupId>
|
|
|
+ <artifactId>commons-lang3</artifactId>
|
|
|
+ </dependency>
|
|
|
+ <dependency>
|
|
|
+ <groupId>commons-lang</groupId>
|
|
|
+ <artifactId>commons-lang</artifactId>
|
|
|
+ <version>2.4</version>
|
|
|
+ </dependency>
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+ <!-- 热部署 -->
|
|
|
+ <dependency>
|
|
|
+ <groupId>org.springframework.boot</groupId>
|
|
|
+ <artifactId>spring-boot-devtools</artifactId>
|
|
|
+ <optional>true</optional>
|
|
|
+ </dependency>
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+ <!-- websocket -->
|
|
|
+ <dependency>
|
|
|
+ <groupId>org.springframework.boot</groupId>
|
|
|
+ <artifactId>spring-boot-starter-websocket</artifactId>
|
|
|
+ </dependency>
|
|
|
+ <!-- 配置文件读取 -->
|
|
|
+ <dependency>
|
|
|
+ <groupId>commons-configuration</groupId>
|
|
|
+ <artifactId>commons-configuration</artifactId>
|
|
|
+ <version>1.10</version>
|
|
|
+ </dependency>
|
|
|
+
|
|
|
+ <dependency>
|
|
|
+ <groupId>org.springframework.boot</groupId>
|
|
|
+ <artifactId>spring-boot-configuration-processor</artifactId>
|
|
|
+ <optional>true</optional>
|
|
|
+ </dependency>
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+ <!--百度UEditor依赖的jar包 -->
|
|
|
+ <!-- <dependency>
|
|
|
+ <groupId>org.json</groupId>
|
|
|
+ <artifactId>json</artifactId>
|
|
|
+ <version>20180813</version>
|
|
|
+ </dependency>-->
|
|
|
+ <dependency>
|
|
|
+ <groupId>commons-codec</groupId>
|
|
|
+ <artifactId>commons-codec</artifactId>
|
|
|
+ <version>1.9</version>
|
|
|
+ </dependency>
|
|
|
+ <dependency>
|
|
|
+ <groupId>ueditor</groupId>
|
|
|
+ <artifactId>1.1.2</artifactId>
|
|
|
+ <version>1.8</version>
|
|
|
+ <scope>system</scope>
|
|
|
+ <systemPath>${project.basedir}/src/main/resources/lib/ueditor-1.1.2.jar</systemPath>
|
|
|
+ </dependency>
|
|
|
+ <!--quartz依赖-->
|
|
|
+ <dependency>
|
|
|
+ <groupId>org.quartz-scheduler</groupId>
|
|
|
+ <artifactId>quartz</artifactId>
|
|
|
+ </dependency>
|
|
|
+
|
|
|
+ <!-- 七牛云 -->
|
|
|
+ <dependency>
|
|
|
+ <groupId>com.qiniu</groupId>
|
|
|
+ <artifactId>qiniu-java-sdk</artifactId>
|
|
|
+ <version>[7.2.0, 7.2.99]</version>
|
|
|
+ </dependency>
|
|
|
+
|
|
|
+ <dependency>
|
|
|
+ <groupId>org.springframework.boot</groupId>
|
|
|
+ <artifactId>spring-boot-configuration-processor</artifactId>
|
|
|
+ <optional>true</optional>
|
|
|
+ </dependency>
|
|
|
+ <dependency>
|
|
|
+ <groupId>org.springframework.boot</groupId>
|
|
|
+ <artifactId>spring-boot-starter-data-redis</artifactId>
|
|
|
+ </dependency>
|
|
|
+
|
|
|
+ <dependency>
|
|
|
+ <groupId>redis.clients</groupId>
|
|
|
+ <artifactId>jedis</artifactId>
|
|
|
+ <version>2.9.0</version>
|
|
|
+ </dependency>
|
|
|
+ <dependency>
|
|
|
+ <groupId>com.baomidou</groupId>
|
|
|
+ <artifactId>mybatis-plus-boot-starter</artifactId>
|
|
|
+ <version>3.2.0</version>
|
|
|
+ </dependency>
|
|
|
+ <dependency>
|
|
|
+ <groupId>com.baomidou</groupId>
|
|
|
+ <artifactId>mybatis-plus-generator</artifactId>
|
|
|
+ <version>3.3.2</version>
|
|
|
+ </dependency>
|
|
|
+ <dependency>
|
|
|
+ <groupId>org.freemarker</groupId>
|
|
|
+ <artifactId>freemarker</artifactId>
|
|
|
+ <version>2.3.28</version>
|
|
|
+ </dependency>
|
|
|
+ <dependency>
|
|
|
+ <groupId>org.apache.poi</groupId>
|
|
|
+ <artifactId>poi</artifactId>
|
|
|
+ <version>3.9</version>
|
|
|
+ </dependency>
|
|
|
+ <dependency>
|
|
|
+ <groupId>org.apache.poi</groupId>
|
|
|
+ <artifactId>poi-ooxml</artifactId>
|
|
|
+ <version>3.9</version>
|
|
|
+ </dependency>
|
|
|
+ <dependency>
|
|
|
+ <groupId>org.apache.poi</groupId>
|
|
|
+ <artifactId>poi-ooxml-schemas</artifactId>
|
|
|
+ <version>3.9</version>
|
|
|
+ </dependency>
|
|
|
+ <!-- 添加swagger2 -->
|
|
|
+ <dependency>
|
|
|
+ <groupId>io.springfox</groupId>
|
|
|
+ <artifactId>springfox-swagger2</artifactId>
|
|
|
+ <version>2.7.0</version>
|
|
|
+ </dependency>
|
|
|
+
|
|
|
+ <dependency>
|
|
|
+ <groupId>com.microsoft.sqlserver</groupId>
|
|
|
+ <artifactId>sqljdbc4</artifactId>
|
|
|
+ <version>4.0</version>
|
|
|
+ </dependency>
|
|
|
+ <!-- web Services -->
|
|
|
+ <!-- <dependency>-->
|
|
|
+ <!-- <groupId>org.jetbrains</groupId>-->
|
|
|
+ <!-- <artifactId>annotations</artifactId>-->
|
|
|
+ <!-- <version>3.4</version>-->
|
|
|
+ <!-- <scope>compile</scope>-->
|
|
|
+ <!-- </dependency>-->
|
|
|
+
|
|
|
+
|
|
|
+ <!-- <dependency>-->
|
|
|
+ <!-- <groupId>cxf</groupId>-->
|
|
|
+ <!-- <artifactId>cxf</artifactId>-->
|
|
|
+ <!-- <version>3.1.12</version>-->
|
|
|
+ <!-- <scope>system</scope>-->
|
|
|
+ <!-- <systemPath>${project.basedir}/src/main/resources/lib/cxf-jaxws.jar</systemPath>-->
|
|
|
+ <!-- </dependency>-->
|
|
|
+
|
|
|
+ <!-- <dependency>-->
|
|
|
+ <!-- <groupId>cxf</groupId>-->
|
|
|
+ <!-- <artifactId>cxf</artifactId>-->
|
|
|
+ <!-- <version>3.1.12</version>-->
|
|
|
+ <!-- <scope>system</scope>-->
|
|
|
+ <!-- <systemPath>${project.basedir}/src/main/resources/lib/cxt-http.jar</systemPath>-->
|
|
|
+ <!-- </dependency>-->
|
|
|
+ </dependencies>
|
|
|
+
|
|
|
+
|
|
|
+ <!--<build>
|
|
|
+ <!– 打包不带版本号 –>
|
|
|
+ <!– <finalName>springboot_v2</finalName> –>
|
|
|
+ <plugins>
|
|
|
+ <!– JUnit 配置 –>
|
|
|
+ <plugin>
|
|
|
+ <groupId>org.apache.maven.plugins</groupId>
|
|
|
+ <artifactId>maven-surefire-plugin</artifactId>
|
|
|
+ <!–忽略测试启动类 –>
|
|
|
+ <configuration>
|
|
|
+ <skip>true</skip>
|
|
|
+ </configuration>
|
|
|
+ </plugin>
|
|
|
+ <!– generator 配置–>
|
|
|
+ <plugin>
|
|
|
+ <groupId>org.mybatis.generator</groupId>
|
|
|
+ <artifactId>mybatis-generator-maven-plugin</artifactId>
|
|
|
+ <version>1.3.7</version>
|
|
|
+ <configuration>
|
|
|
+ <!–允许移动生成的文件 –>
|
|
|
+ <verbose>false</verbose>
|
|
|
+ <!–允许覆盖生成的文件 –>
|
|
|
+ <overwrite>false</overwrite>
|
|
|
+ <!–配置文件的路径 –>
|
|
|
+ <configurationFile>src/main/resources/mybatis-generator.xml</configurationFile>
|
|
|
+ </configuration>
|
|
|
+ <dependencies>
|
|
|
+ <dependency>
|
|
|
+ <groupId>mysql</groupId>
|
|
|
+ <artifactId>mysql-connector-java</artifactId>
|
|
|
+ <version>${mysql.version}</version>
|
|
|
+ </dependency>
|
|
|
+ </dependencies>
|
|
|
+ </plugin>
|
|
|
+ <!– jar运行配置 –>
|
|
|
+ <plugin>
|
|
|
+ <groupId>org.springframework.boot</groupId>
|
|
|
+ <artifactId>spring-boot-maven-plugin</artifactId>
|
|
|
+ </plugin>
|
|
|
+ </plugins>
|
|
|
+ </build>-->
|
|
|
+
|
|
|
+ <build>
|
|
|
+ <plugins>
|
|
|
+
|
|
|
+ <!-- 使用maven-jar-plugin和maven-dependency-plugin插件打包 -->
|
|
|
+ <plugin>
|
|
|
+ <groupId>org.apache.maven.plugins</groupId>
|
|
|
+ <artifactId>maven-jar-plugin</artifactId>
|
|
|
+ <version>3.0.2</version>
|
|
|
+ <configuration>
|
|
|
+ <archive>
|
|
|
+ <manifest>
|
|
|
+ <addClasspath>true</addClasspath>
|
|
|
+ <classpathPrefix>lib/</classpathPrefix>
|
|
|
+ <mainClass>cn.gyee.tamplate.TamplateApplication</mainClass>
|
|
|
+ </manifest>
|
|
|
+ </archive>
|
|
|
+ </configuration>
|
|
|
+ </plugin>
|
|
|
+ <plugin>
|
|
|
+ <groupId>org.apache.maven.plugins</groupId>
|
|
|
+ <artifactId>maven-dependency-plugin</artifactId>
|
|
|
+ <version>3.0.2</version>
|
|
|
+ <executions>
|
|
|
+ <execution>
|
|
|
+ <id>copy-dependencies</id>
|
|
|
+ <phase>package</phase>
|
|
|
+ <goals>
|
|
|
+ <goal>copy-dependencies</goal>
|
|
|
+ </goals>
|
|
|
+ <configuration>
|
|
|
+ <outputDirectory>${project.build.directory}/lib</outputDirectory>
|
|
|
+ </configuration>
|
|
|
+ </execution>
|
|
|
+ </executions>
|
|
|
+ </plugin>
|
|
|
+ <plugin>
|
|
|
+ <groupId>org.springframework.boot</groupId>
|
|
|
+ <artifactId>spring-boot-maven-plugin</artifactId>
|
|
|
+ <configuration>
|
|
|
+ <fork>true</fork>
|
|
|
+ <!--增加jvm参数-->
|
|
|
+ <jvmArguments>-Dfile.encoding=UTF-8</jvmArguments>
|
|
|
+ </configuration>
|
|
|
+ </plugin>
|
|
|
+
|
|
|
+ </plugins>
|
|
|
+ </build>
|
|
|
+
|
|
|
+ <!-- 阿里云maven仓库 -->
|
|
|
+ <repositories>
|
|
|
+ <repository>
|
|
|
+ <id>public</id>
|
|
|
+ <name>aliyun nexus</name>
|
|
|
+ <url>http://maven.aliyun.com/nexus/content/groups/public/</url>
|
|
|
+ <releases>
|
|
|
+ <enabled>true</enabled>
|
|
|
+ </releases>
|
|
|
+ </repository>
|
|
|
+ </repositories>
|
|
|
+
|
|
|
+ <pluginRepositories>
|
|
|
+ <pluginRepository>
|
|
|
+ <id>public</id>
|
|
|
+ <name>aliyun nexus</name>
|
|
|
+ <url>http://maven.aliyun.com/nexus/content/groups/public/</url>
|
|
|
+ <releases>
|
|
|
+ <enabled>true</enabled>
|
|
|
+ </releases>
|
|
|
+ <snapshots>
|
|
|
+ <enabled>false</enabled>
|
|
|
+ </snapshots>
|
|
|
+ </pluginRepository>
|
|
|
+ </pluginRepositories>
|
|
|
+
|
|
|
+
|
|
|
+</project>
|