Upgrade netty to 4.1.67

This commit is contained in:
hongqiaowei
2021-08-17 17:02:04 +08:00
parent 3bf7b7a50a
commit 3f8f2ff644
3 changed files with 65 additions and 2 deletions

View File

@@ -20,7 +20,7 @@
<spring-session-bom.version>Dragonfruit-SR3</spring-session-bom.version> <spring-session-bom.version>Dragonfruit-SR3</spring-session-bom.version>
<reactor-bom.version>Dysprosium-SR22</reactor-bom.version> <reactor-bom.version>Dysprosium-SR22</reactor-bom.version>
<lettuce.version>5.3.7.RELEASE</lettuce.version> <lettuce.version>5.3.7.RELEASE</lettuce.version>
<netty.version>4.1.66.Final</netty.version> <netty.version>4.1.67.Final</netty.version>
<httpcore.version>4.4.14</httpcore.version> <httpcore.version>4.4.14</httpcore.version>
<log4j2.version>2.14.1</log4j2.version> <log4j2.version>2.14.1</log4j2.version>
<slf4j.version>1.7.32</slf4j.version> <slf4j.version>1.7.32</slf4j.version>

View File

@@ -0,0 +1,63 @@
/*
* Copyright (C) 2020 the original author or authors.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package we.config;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import we.plugin.auth.*;
import javax.annotation.PostConstruct;
import javax.annotation.Resource;
import java.util.List;
import java.util.stream.Collectors;
import java.util.stream.Stream;
/**
* @apiNote tool for test only
* <p/>
*
* @author hongqiaowei
*/
public abstract class ManualApiConfig {
protected static final Logger log = LoggerFactory.getLogger(ManualApiConfig.class);
@Resource
private GatewayGroupService gatewayGroupService;
@Resource
private ApiConfigService apiConfigService;
public abstract List<ApiConfig> setApiConfigs();
@PostConstruct
public void iniApiConfigs() {
gatewayGroupService.currentGatewayGroupSet = Stream.of(GatewayGroup.DEFAULT).collect(Collectors.toSet());
List<ApiConfig> apiConfigs = setApiConfigs();
for (ApiConfig ac : apiConfigs) {
ServiceConfig sc = apiConfigService.serviceConfigMap.get(ac.service);
if (sc == null) {
sc = new ServiceConfig(ac.service);
apiConfigService.serviceConfigMap.put(ac.service, sc);
}
sc.add(ac);
log.info("manual add " + ac);
}
}
}

View File

@@ -10,7 +10,7 @@
<reactor-bom.version>Dysprosium-SR22</reactor-bom.version> <reactor-bom.version>Dysprosium-SR22</reactor-bom.version>
<lettuce.version>5.3.7.RELEASE</lettuce.version> <lettuce.version>5.3.7.RELEASE</lettuce.version>
<nacos.cloud.version>2.2.5.RELEASE</nacos.cloud.version> <nacos.cloud.version>2.2.5.RELEASE</nacos.cloud.version>
<netty.version>4.1.66.Final</netty.version> <netty.version>4.1.67.Final</netty.version>
<httpcore.version>4.4.14</httpcore.version> <httpcore.version>4.4.14</httpcore.version>
<log4j2.version>2.14.1</log4j2.version> <log4j2.version>2.14.1</log4j2.version>
<slf4j.version>1.7.32</slf4j.version> <slf4j.version>1.7.32</slf4j.version>