|
@@ -0,0 +1,361 @@
|
|
|
|
+<?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.zhzn.energy</groupId>
|
|
|
|
+ <artifactId>energy-online-data-service</artifactId>
|
|
|
|
+ <version>1.0-SNAPSHOT</version>
|
|
|
|
+
|
|
|
|
+ <properties>
|
|
|
|
+ <java.version>1.8</java.version>
|
|
|
|
+ <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
|
|
|
+ <endorsed.dir>${project.build.directory}/endorsed</endorsed.dir>
|
|
|
|
+ <swagger.version>2.6.1</swagger.version>
|
|
|
|
+ <fastjson.version>1.2.9</fastjson.version>
|
|
|
|
+ <aliyun-openservices.version>1.2.3</aliyun-openservices.version>
|
|
|
|
+ <aliyun-sdk-oss.version>2.4.0</aliyun-sdk-oss.version>
|
|
|
|
+ <docker.image.prefix>test</docker.image.prefix>
|
|
|
|
+ <spring.boot.version>2.3.2.RELEASE</spring.boot.version>
|
|
|
|
+ <spring.cloud.alibaba.version>1.5.0.RELEASE</spring.cloud.alibaba.version>
|
|
|
|
+ </properties>
|
|
|
|
+
|
|
|
|
+ <parent>
|
|
|
|
+ <groupId>org.springframework.boot</groupId>
|
|
|
|
+ <artifactId>spring-boot-dependencies</artifactId>
|
|
|
|
+ <version>2.3.2.RELEASE</version>
|
|
|
|
+ </parent>
|
|
|
|
+
|
|
|
|
+ <dependencies>
|
|
|
|
+
|
|
|
|
+ <!-- spring boot -->
|
|
|
|
+ <dependency>
|
|
|
|
+ <groupId>org.springframework.boot</groupId>
|
|
|
|
+ <artifactId>spring-boot-starter-aop</artifactId>
|
|
|
|
+ </dependency>
|
|
|
|
+
|
|
|
|
+ <dependency>
|
|
|
|
+ <groupId>org.springframework.boot</groupId>
|
|
|
|
+ <artifactId>spring-boot-starter-web</artifactId>
|
|
|
|
+ </dependency>
|
|
|
|
+
|
|
|
|
+ <dependency>
|
|
|
|
+ <groupId>org.springframework.boot</groupId>
|
|
|
|
+ <artifactId>spring-boot-starter-test</artifactId>
|
|
|
|
+ </dependency>
|
|
|
|
+
|
|
|
|
+ <dependency>
|
|
|
|
+ <groupId>org.springframework.boot</groupId>
|
|
|
|
+ <artifactId>spring-boot-starter-validation</artifactId>
|
|
|
|
+ </dependency>
|
|
|
|
+
|
|
|
|
+ <dependency>
|
|
|
|
+ <groupId>org.springframework.boot</groupId>
|
|
|
|
+ <artifactId>spring-boot-starter-jdbc</artifactId>
|
|
|
|
+ </dependency>
|
|
|
|
+
|
|
|
|
+ <dependency>
|
|
|
|
+ <groupId>org.springframework.boot</groupId>
|
|
|
|
+ <artifactId>spring-boot-starter-data-redis</artifactId>
|
|
|
|
+ <exclusions>
|
|
|
|
+ <exclusion>
|
|
|
|
+ <groupId>io.lettuce</groupId>
|
|
|
|
+ <artifactId>lettuce-core</artifactId>
|
|
|
|
+ </exclusion>
|
|
|
|
+ </exclusions>
|
|
|
|
+ </dependency>
|
|
|
|
+
|
|
|
|
+ <dependency>
|
|
|
|
+ <groupId>org.mybatis.spring.boot</groupId>
|
|
|
|
+ <artifactId>mybatis-spring-boot-starter</artifactId>
|
|
|
|
+ <version>1.3.1</version>
|
|
|
|
+ </dependency>
|
|
|
|
+
|
|
|
|
+ <!-- spring boot -->
|
|
|
|
+ <dependency>
|
|
|
|
+ <groupId>redis.clients</groupId>
|
|
|
|
+ <artifactId>jedis</artifactId>
|
|
|
|
+ <version>3.1.0</version>
|
|
|
|
+ </dependency>
|
|
|
|
+
|
|
|
|
+ <!--分页-->
|
|
|
|
+ <dependency>
|
|
|
|
+ <groupId>com.github.pagehelper</groupId>
|
|
|
|
+ <artifactId>pagehelper-spring-boot-starter</artifactId>
|
|
|
|
+ <version>1.2.10</version>
|
|
|
|
+ </dependency>
|
|
|
|
+ <!--分页-->
|
|
|
|
+
|
|
|
|
+ <!-- 通用mapper -->
|
|
|
|
+ <dependency>
|
|
|
|
+ <groupId>tk.mybatis</groupId>
|
|
|
|
+ <artifactId>mapper-spring-boot-starter</artifactId>
|
|
|
|
+ <version>4.2.1</version>
|
|
|
|
+ </dependency>
|
|
|
|
+ <!-- 通用mapper -->
|
|
|
|
+
|
|
|
|
+ <dependency>
|
|
|
|
+ <groupId>com.alibaba</groupId>
|
|
|
|
+ <artifactId>druid-spring-boot-starter</artifactId>
|
|
|
|
+ <version>1.1.10</version>
|
|
|
|
+ </dependency>
|
|
|
|
+
|
|
|
|
+ <!-- <dependency>-->
|
|
|
|
+ <!-- <groupId>mysql</groupId>-->
|
|
|
|
+ <!-- <artifactId>mysql-connector-java</artifactId>-->
|
|
|
|
+ <!-- <version>5.1.43</version>-->
|
|
|
|
+ <!-- </dependency>-->
|
|
|
|
+
|
|
|
|
+ <dependency>
|
|
|
|
+ <groupId>mysql</groupId>
|
|
|
|
+ <artifactId>mysql-connector-java</artifactId>
|
|
|
|
+ <version>5.1.47</version>
|
|
|
|
+ </dependency>
|
|
|
|
+
|
|
|
|
+ <!-- json -->
|
|
|
|
+ <dependency>
|
|
|
|
+ <groupId>com.alibaba</groupId>
|
|
|
|
+ <artifactId>fastjson</artifactId>
|
|
|
|
+ <version>${fastjson.version}</version>
|
|
|
|
+ </dependency>
|
|
|
|
+ <!-- json -->
|
|
|
|
+
|
|
|
|
+ <dependency>
|
|
|
|
+ <groupId>org.projectlombok</groupId>
|
|
|
|
+ <artifactId>lombok</artifactId>
|
|
|
|
+ <version>1.14.4</version>
|
|
|
|
+ </dependency>
|
|
|
|
+
|
|
|
|
+ <dependency>
|
|
|
|
+ <groupId>com.caucho</groupId>
|
|
|
|
+ <artifactId>hessian</artifactId>
|
|
|
|
+ <version>4.0.51</version>
|
|
|
|
+ </dependency>
|
|
|
|
+
|
|
|
|
+ <!-- 引入swagger依赖 -->
|
|
|
|
+
|
|
|
|
+ <dependency>
|
|
|
|
+ <groupId>io.springfox</groupId>
|
|
|
|
+ <artifactId>springfox-boot-starter</artifactId>
|
|
|
|
+ <version>3.0.0</version>
|
|
|
|
+
|
|
|
|
+ </dependency>
|
|
|
|
+
|
|
|
|
+ <dependency>
|
|
|
|
+ <groupId>io.swagger</groupId>
|
|
|
|
+ <artifactId>swagger-annotations</artifactId>
|
|
|
|
+ <version>1.5.21</version>
|
|
|
|
+ </dependency>
|
|
|
|
+ <dependency>
|
|
|
|
+ <groupId>io.swagger</groupId>
|
|
|
|
+ <artifactId>swagger-models</artifactId>
|
|
|
|
+ <version>1.5.21</version>
|
|
|
|
+ </dependency>
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+ <dependency>
|
|
|
|
+ <groupId>com.github.xiaoymin</groupId>
|
|
|
|
+ <artifactId>knife4j-spring-boot-starter</artifactId>
|
|
|
|
+ <version>3.0.1</version>
|
|
|
|
+ </dependency>
|
|
|
|
+
|
|
|
|
+ <!-- jwt -->
|
|
|
|
+ <dependency>
|
|
|
|
+ <groupId>com.auth0</groupId>
|
|
|
|
+ <artifactId>java-jwt</artifactId>
|
|
|
|
+ <version>3.4.0</version>
|
|
|
|
+ </dependency>
|
|
|
|
+ <dependency>
|
|
|
|
+ <groupId>org.testng</groupId>
|
|
|
|
+ <artifactId>testng</artifactId>
|
|
|
|
+ <version>6.9.9</version>
|
|
|
|
+ </dependency>
|
|
|
|
+ <dependency>
|
|
|
|
+ <groupId>org.checkerframework</groupId>
|
|
|
|
+ <artifactId>checker-qual</artifactId>
|
|
|
|
+ <version>3.12.0</version>
|
|
|
|
+ <scope>compile</scope>
|
|
|
|
+ </dependency>
|
|
|
|
+
|
|
|
|
+ <!-- https://mvnrepository.com/artifact/cn.hutool/hutool-all -->
|
|
|
|
+ <dependency>
|
|
|
|
+ <groupId>cn.hutool</groupId>
|
|
|
|
+ <artifactId>hutool-all</artifactId>
|
|
|
|
+ <version>5.7.15</version>
|
|
|
|
+ </dependency>
|
|
|
|
+ <dependency>
|
|
|
|
+ <groupId>com.vdurmont</groupId>
|
|
|
|
+ <artifactId>emoji-java</artifactId>
|
|
|
|
+ <version>5.1.1</version>
|
|
|
|
+ </dependency>
|
|
|
|
+
|
|
|
|
+ <!-- https://mvnrepository.com/artifact/commons-logging/commons-logging -->
|
|
|
|
+ <dependency>
|
|
|
|
+ <groupId>commons-logging</groupId>
|
|
|
|
+ <artifactId>commons-logging</artifactId>
|
|
|
|
+ <version>1.1.1</version>
|
|
|
|
+ </dependency>
|
|
|
|
+
|
|
|
|
+ <dependency>
|
|
|
|
+ <groupId>org.springframework.boot</groupId>
|
|
|
|
+ <artifactId>spring-boot-starter-test</artifactId>
|
|
|
|
+ <scope>test</scope>
|
|
|
|
+ <exclusions>
|
|
|
|
+ <exclusion>
|
|
|
|
+ <groupId>org.junit.vintage</groupId>
|
|
|
|
+ <artifactId>junit-vintage-engine</artifactId>
|
|
|
|
+ </exclusion>
|
|
|
|
+ </exclusions>
|
|
|
|
+ </dependency>
|
|
|
|
+ <dependency>
|
|
|
|
+ <groupId>junit</groupId>
|
|
|
|
+ <artifactId>junit</artifactId>
|
|
|
|
+ <scope>test</scope>
|
|
|
|
+ </dependency>
|
|
|
|
+ <!-- json转换 -->
|
|
|
|
+ <dependency>
|
|
|
|
+ <groupId>com.fasterxml.jackson.datatype</groupId>
|
|
|
|
+ <artifactId>jackson-datatype-joda</artifactId>
|
|
|
|
+ <version>2.9.10</version>
|
|
|
|
+ </dependency>
|
|
|
|
+
|
|
|
|
+ <dependency>
|
|
|
|
+ <groupId>commons-fileupload</groupId>
|
|
|
|
+ <artifactId>commons-fileupload</artifactId>
|
|
|
|
+ <version>1.3.1</version>
|
|
|
|
+ </dependency>
|
|
|
|
+
|
|
|
|
+ <dependency>
|
|
|
|
+ <groupId>org.hibernate.validator</groupId>
|
|
|
|
+ <artifactId>hibernate-validator</artifactId>
|
|
|
|
+ </dependency>
|
|
|
|
+
|
|
|
|
+ <!-- forest 远程连接框架 -->
|
|
|
|
+ <!--<dependency>-->
|
|
|
|
+ <!--<groupId>com.dtflys.forest</groupId>-->
|
|
|
|
+ <!--<artifactId>forest-spring-boot-starter</artifactId>-->
|
|
|
|
+ <!--<version>1.5.13</version>-->
|
|
|
|
+ <!--</dependency>-->
|
|
|
|
+
|
|
|
|
+ <!-- zip压缩包 -->
|
|
|
|
+ <dependency>
|
|
|
|
+ <groupId>net.lingala.zip4j</groupId>
|
|
|
|
+ <artifactId>zip4j</artifactId>
|
|
|
|
+ <version>1.3.2</version>
|
|
|
|
+ </dependency>
|
|
|
|
+
|
|
|
|
+ <dependency>
|
|
|
|
+ <groupId>com.alibaba</groupId>
|
|
|
|
+ <artifactId>easyexcel</artifactId>
|
|
|
|
+ <version>2.2.3</version>
|
|
|
|
+ </dependency>
|
|
|
|
+
|
|
|
|
+ <!-- 浏览器解析工具 -->
|
|
|
|
+ <dependency>
|
|
|
|
+ <groupId>eu.bitwalker</groupId>
|
|
|
|
+ <artifactId>UserAgentUtils</artifactId>
|
|
|
|
+ <version>1.21</version>
|
|
|
|
+ </dependency>
|
|
|
|
+
|
|
|
|
+ <dependency>
|
|
|
|
+ <groupId>org.apache.commons</groupId>
|
|
|
|
+ <artifactId>commons-lang3</artifactId>
|
|
|
|
+ <version>3.10</version>
|
|
|
|
+ </dependency>
|
|
|
|
+
|
|
|
|
+ <!-- 104协议 -->
|
|
|
|
+ <dependency>
|
|
|
|
+ <groupId>org.openmuc</groupId>
|
|
|
|
+ <artifactId>j60870</artifactId>
|
|
|
|
+ <version>1.4.0</version>
|
|
|
|
+ </dependency>
|
|
|
|
+
|
|
|
|
+ </dependencies>
|
|
|
|
+
|
|
|
|
+ <build>
|
|
|
|
+ <finalName>${project.artifactId}</finalName>
|
|
|
|
+ <resources>
|
|
|
|
+ <resource>
|
|
|
|
+ <directory>src/main/resources/</directory>
|
|
|
|
+ <filtering>true</filtering>
|
|
|
|
+ <includes>
|
|
|
|
+ <include>**/*.properties</include>
|
|
|
|
+ </includes>
|
|
|
|
+ </resource>
|
|
|
|
+ <resource>
|
|
|
|
+ <directory>src/main/resources/</directory>
|
|
|
|
+ <filtering>true</filtering>
|
|
|
|
+ </resource>
|
|
|
|
+ </resources>
|
|
|
|
+ <plugins>
|
|
|
|
+ <plugin>
|
|
|
|
+ <groupId>org.springframework.boot</groupId>
|
|
|
|
+ <artifactId>spring-boot-maven-plugin</artifactId>
|
|
|
|
+ <version>2.0.5.RELEASE</version>
|
|
|
|
+ <executions>
|
|
|
|
+ <execution>
|
|
|
|
+ <goals>
|
|
|
|
+ <goal>repackage</goal>
|
|
|
|
+ </goals>
|
|
|
|
+ </execution>
|
|
|
|
+ </executions>
|
|
|
|
+ <configuration>
|
|
|
|
+ <mainClass>com.energy.online.data.service.ManageAppApplication</mainClass>
|
|
|
|
+ </configuration>
|
|
|
|
+ </plugin>
|
|
|
|
+ <!-- Compiler 插件, 设定JDK版本 -->
|
|
|
|
+ <plugin>
|
|
|
|
+ <groupId>org.apache.maven.plugins</groupId>
|
|
|
|
+ <artifactId>maven-compiler-plugin</artifactId>
|
|
|
|
+ <version>${maven-compiler-plugin.version}</version>
|
|
|
|
+ <configuration>
|
|
|
|
+ <source>${java.version}</source>
|
|
|
|
+ <target>${java.version}</target>
|
|
|
|
+ <encoding>utf-8</encoding>
|
|
|
|
+ <showWarnings>true</showWarnings>
|
|
|
|
+ <compilerArguments>
|
|
|
|
+ <endorseddirs>${endorsed.dir}</endorseddirs>
|
|
|
|
+ </compilerArguments>
|
|
|
|
+ </configuration>
|
|
|
|
+ </plugin>
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+ <plugin>
|
|
|
|
+ <groupId>org.apache.maven.plugins</groupId>
|
|
|
|
+ <artifactId>maven-resources-plugin</artifactId>
|
|
|
|
+ <version>2.6</version>
|
|
|
|
+ </plugin>
|
|
|
|
+
|
|
|
|
+ </plugins>
|
|
|
|
+ </build>
|
|
|
|
+
|
|
|
|
+ <!-- 配置环境 -->
|
|
|
|
+ <profiles>
|
|
|
|
+ <profile>
|
|
|
|
+ <id>dev</id>
|
|
|
|
+ <properties>
|
|
|
|
+ <profiles.active>dev</profiles.active>
|
|
|
|
+ </properties>
|
|
|
|
+ <activation>
|
|
|
|
+ <activeByDefault>true</activeByDefault>
|
|
|
|
+ </activation>
|
|
|
|
+ </profile>
|
|
|
|
+ <profile>
|
|
|
|
+ <id>test</id>
|
|
|
|
+ <properties>
|
|
|
|
+ <profiles.active>test</profiles.active>
|
|
|
|
+ </properties>
|
|
|
|
+ </profile>
|
|
|
|
+ <profile>
|
|
|
|
+ <id>prod</id>
|
|
|
|
+ <properties>
|
|
|
|
+ <profiles.active>prod</profiles.active>
|
|
|
|
+ </properties>
|
|
|
|
+ </profile>
|
|
|
|
+ </profiles>
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+</project>
|