refactor: 依赖和ApiConfig的id问题调整,提交社区仓库

This commit is contained in:
lancer.hong_洪巧维
2020-10-23 15:59:32 +08:00
parent 7445fe88fc
commit 97a1829bec
4 changed files with 12 additions and 26 deletions

32
pom.xml
View File

@@ -5,13 +5,13 @@
<parent> <parent>
<groupId>org.springframework.boot</groupId> <groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId> <artifactId>spring-boot-starter-parent</artifactId>
<version>2.2.9.RELEASE</version> <version>2.2.10.RELEASE</version>
<relativePath/> <relativePath/>
</parent> </parent>
<groupId>we</groupId> <groupId>we</groupId>
<artifactId>fizz-gateway-community</artifactId> <artifactId>fizz-gateway-community</artifactId>
<version>1.0.0</version> <version>1.0.0</version>
<name>fizz-gateway</name> <name>fizz-gateway-community</name>
<repositories> <repositories>
<repository> <repository>
@@ -35,20 +35,17 @@
<properties> <properties>
<java.version>1.8</java.version> <java.version>1.8</java.version>
<log4j2.version>2.13.3</log4j2.version> <log4j2.version>2.13.3</log4j2.version>
<!--<reactor-bom.version>Dysprosium-SR7</reactor-bom.version> <netty.version>4.1.53.Final</netty.version>
<spring-framework.version>5.2.6.RELEASE</spring-framework.version> <httpclient.version>4.5.13</httpclient.version>
<spring-data-releasetrain.version>Moore-SR7</spring-data-releasetrain.version>
<lettuce.version>5.3.0.RELEASE</lettuce.version>
<netty.version>4.1.50.Final</netty.version>-->
</properties> </properties>
<dependencies> <dependencies>
<dependency> <dependency>
<groupId>com.networknt</groupId> <groupId>com.networknt</groupId>
<artifactId>json-schema-validator-i18n-support</artifactId> <artifactId>json-schema-validator-i18n-support</artifactId>
<version>1.0.39_1</version> <version>1.0.39_3</version>
<scope>system</scope> <scope>system</scope>
<systemPath>${project.basedir}/lib/json-schema-validator-i18n-support-1.0.39_1.jar</systemPath> <systemPath>${project.basedir}/lib/json-schema-validator-i18n-support-1.0.39_3.jar</systemPath>
</dependency> </dependency>
<dependency> <dependency>
<groupId>org.springframework.boot</groupId> <groupId>org.springframework.boot</groupId>
@@ -65,16 +62,11 @@
<groupId>org.springframework.boot</groupId> <groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-log4j2</artifactId> <artifactId>spring-boot-starter-log4j2</artifactId>
</dependency> </dependency>
<!--<dependency>
<groupId>org.apache.logging.log4j</groupId>
<artifactId>log4j-web</artifactId>
<version>2.11.2</version>
</dependency>-->
<dependency> <dependency>
<groupId>com.alibaba</groupId> <groupId>com.alibaba</groupId>
<artifactId>fastjson</artifactId> <artifactId>fastjson</artifactId>
<version>1.2.73</version> <version>1.2.74</version>
</dependency> </dependency>
<dependency> <dependency>
@@ -141,13 +133,7 @@
<dependency> <dependency>
<groupId>commons-io</groupId> <groupId>commons-io</groupId>
<artifactId>commons-io</artifactId> <artifactId>commons-io</artifactId>
<version>2.6</version> <version>2.8.0</version>
</dependency>
<dependency>
<groupId>commons-codec</groupId>
<artifactId>commons-codec</artifactId>
<version>1.14</version>
</dependency> </dependency>
<dependency> <dependency>
@@ -159,7 +145,7 @@
<dependency> <dependency>
<groupId>org.springframework.cloud</groupId> <groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-starter-netflix-eureka-client</artifactId> <artifactId>spring-cloud-starter-netflix-eureka-client</artifactId>
<version>2.2.4.RELEASE</version> <version>2.2.5.RELEASE</version>
</dependency> </dependency>
<dependency> <dependency>

View File

@@ -10,7 +10,7 @@ import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
@SpringBootApplication( @SpringBootApplication(
exclude = {ErrorWebFluxAutoConfiguration.class, RedisAutoConfiguration.class, RedisReactiveAutoConfiguration.class}, exclude = {ErrorWebFluxAutoConfiguration.class, RedisAutoConfiguration.class, RedisReactiveAutoConfiguration.class},
scanBasePackages = {"we", "com.wh"} scanBasePackages = {"we"}
) )
@EnableApolloConfig @EnableApolloConfig
@EnableDiscoveryClient @EnableDiscoveryClient

View File

@@ -45,10 +45,10 @@ public class ApiConfig {
public static final byte PREFIX_REWRITE_PROXY_MODE = 2; public static final byte PREFIX_REWRITE_PROXY_MODE = 2;
@JsonIgnore // @JsonIgnore
public int id; // tb_api_auth.id public int id; // tb_api_auth.id
@JsonIgnore // @JsonIgnore
public int isDeleted = 0; // tb_api_auth.is_deleted public int isDeleted = 0; // tb_api_auth.is_deleted
public Set<String> gatewayGroups = new HashSet<>(6); public Set<String> gatewayGroups = new HashSet<>(6);