1 package com.config;
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24 import org.springframework.beans.factory.annotation.Value;
25 import org.springframework.stereotype.Component;
26
27
28
29
30 @Component
31 public class Config {
32 @Value("${gatewayHost}")
33 private String gatewayHost;
34
35 @Value("${gatewayPort}")
36 private String gatewayPort;
37
38 @Value("${mainAppHost}")
39 private String mainAppHost;
40
41 @Value("${mainAppPort}")
42 private String mainAppPort;
43
44 public String getGatewayHost() {
45 return gatewayHost;
46 }
47
48 public void setGatewayHost(String gatewayHost) {
49 this.gatewayHost = gatewayHost;
50 }
51
52 public String getGatewayPort() {
53 return gatewayPort;
54 }
55
56 public void setGatewayPort(String gatewayPort) {
57 this.gatewayPort = gatewayPort;
58 }
59
60 public String getMainAppHost() {
61 return mainAppHost;
62 }
63
64 public void setMainAppHost(String mainAppHost) {
65 this.mainAppHost = mainAppHost;
66 }
67
68 public String getMainAppPort() {
69 return mainAppPort;
70 }
71
72 public void setMainAppPort(String mainAppPort) {
73 this.mainAppPort = mainAppPort;
74 }
75 }