Bladeren bron

修改到docker外运行环境

tags/v1.0.0^2
林万龙 3 jaren geleden
bovenliggende
commit
5aaf4a19e2
2 gewijzigde bestanden met toevoegingen van 13 en 15 verwijderingen
  1. +7
    -8
      src/main/java/com/telpo/dipperposition/config/NettyServerConfig.java
  2. +6
    -7
      src/main/java/com/telpo/dipperposition/config/PositionConfig.java

+ 7
- 8
src/main/java/com/telpo/dipperposition/config/NettyServerConfig.java Bestand weergeven

@@ -8,6 +8,8 @@ import lombok.Setter;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Configuration;

import javax.annotation.PostConstruct;

/**
* @program: gateway
* @description: jwt设置
@@ -33,13 +35,10 @@ public class NettyServerConfig {
private String starsAsycServerPort;

private static NettyServerConfig nettyServerConfig;
/**
* spring会自动从ioc容器当中根据NettyServerConfig类型找到nettyServerConfig,
* 当做参数传进来
*
*/
@Autowired
public void setNettyServerConfig(NettyServerConfig nettyServerConfig) {
this.nettyServerConfig = nettyServerConfig;

@PostConstruct
public void init() {
nettyServerConfig = this;
}

}

+ 6
- 7
src/main/java/com/telpo/dipperposition/config/PositionConfig.java Bestand weergeven

@@ -7,6 +7,8 @@ import lombok.Setter;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Configuration;

import javax.annotation.PostConstruct;

/**
* @program: gateway
* @description: jwt设置
@@ -39,12 +41,9 @@ public class PositionConfig {


private static PositionConfig positionConfig;
/**
* spring会自动从ioc容器当中根据PositionConfig类型找到positionConfig,当做参数传进来
*
*/
@Autowired
public void setPositionConfig(PositionConfig positionConfig) {
this.positionConfig = positionConfig;

@PostConstruct
public void init() {
positionConfig = this;
}
}

Laden…
Annuleren
Opslaan