浏览代码

修改到docker外运行环境

tags/v1.0.0^2
林万龙 3 年前
父节点
当前提交
5aaf4a19e2
共有 2 个文件被更改,包括 13 次插入15 次删除
  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 查看文件

@@ -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 查看文件

@@ -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;
}
}

正在加载...
取消
保存