---修改本地开发配置
This commit is contained in:
@ -2,29 +2,29 @@ spring:
|
|||||||
cloud:
|
cloud:
|
||||||
nacos: #nacos监控
|
nacos: #nacos监控
|
||||||
config:
|
config:
|
||||||
server-addr: 127.0.0.1:8848 # nacos 配置中心地址
|
server-addr: 10.10.2.101:8848 # nacos 配置中心地址
|
||||||
namespace: ITC-MS
|
namespace: ITC-MS
|
||||||
group: DNE
|
group: DNE
|
||||||
username: nacos
|
username: nacos
|
||||||
password: nacos
|
password: Lng@123
|
||||||
extension-configs:
|
extension-configs:
|
||||||
- data-id: global-dev.yml
|
- data-id: global-local.yml
|
||||||
refresh: true
|
refresh: true
|
||||||
group: DNE
|
group: DNE
|
||||||
|
|
||||||
- data-id: discovery-dev.yml
|
- data-id: discovery-local.yml
|
||||||
refresh: true
|
refresh: true
|
||||||
group: DNE
|
group: DNE
|
||||||
|
|
||||||
- data-id: datasource-dev.yml
|
- data-id: datasource-local.yml
|
||||||
refresh: true
|
refresh: true
|
||||||
group: DNE
|
group: DNE
|
||||||
|
|
||||||
- data-id: seata-dev.yml
|
- data-id: seata-local.yml
|
||||||
refresh: true
|
refresh: true
|
||||||
group: DNE
|
group: DNE
|
||||||
|
|
||||||
- data-id: redis-dev.yml
|
- data-id: redis-local.yml
|
||||||
refresh: true
|
refresh: true
|
||||||
group: DNE
|
group: DNE
|
||||||
|
|
||||||
@ -40,10 +40,14 @@ spring:
|
|||||||
refresh: true
|
refresh: true
|
||||||
group: DNE
|
group: DNE
|
||||||
|
|
||||||
- data-id: sentinel-dev.yml
|
- data-id: sentinel-local.yml
|
||||||
refresh: true
|
refresh: true
|
||||||
group: DNE
|
group: DNE
|
||||||
|
|
||||||
|
discovery:
|
||||||
|
ip: 10.0.0.2
|
||||||
|
#network-interface: net7
|
||||||
|
|
||||||
xjrsoft:
|
xjrsoft:
|
||||||
generate:
|
generate:
|
||||||
apiJavaPath: F:\ges-scm\code\dev\geg-gas-pcitc\itc-pcitc-demo\itc-pcitc-demo-api
|
apiJavaPath: F:\ges-scm\code\dev\geg-gas-pcitc\itc-pcitc-demo\itc-pcitc-demo-api
|
||||||
@ -51,3 +55,5 @@ xjrsoft:
|
|||||||
webPath: F:\ges-scm\code\dev\geg-gas-web
|
webPath: F:\ges-scm\code\dev\geg-gas-web
|
||||||
appPath: D:\pm\yfxm-newgit\uniapp\xjrsoft-uni #前端app
|
appPath: D:\pm\yfxm-newgit\uniapp\xjrsoft-uni #前端app
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -2,11 +2,11 @@ spring:
|
|||||||
cloud:
|
cloud:
|
||||||
nacos: #nacos监控
|
nacos: #nacos监控
|
||||||
config:
|
config:
|
||||||
server-addr: 172.20.0.4:8848 # nacos 配置中心地址
|
server-addr: 10.10.2.101:8848 # nacos 配置中心地址
|
||||||
namespace: ITC-MS
|
namespace: ITC-MS
|
||||||
group: DNE
|
group: DNE
|
||||||
username: nacos
|
username: nacos
|
||||||
password: nacos
|
password: Lng@123
|
||||||
extension-configs:
|
extension-configs:
|
||||||
- data-id: global-local.yml
|
- data-id: global-local.yml
|
||||||
refresh: true
|
refresh: true
|
||||||
|
|||||||
@ -0,0 +1,21 @@
|
|||||||
|
package com.xjrsoft.test;
|
||||||
|
|
||||||
|
import java.net.NetworkInterface;
|
||||||
|
import java.util.Enumeration;
|
||||||
|
|
||||||
|
public class ListNetworkInterfaces {
|
||||||
|
public static void main(String[] args) {
|
||||||
|
try {
|
||||||
|
Enumeration<NetworkInterface> interfaces = NetworkInterface.getNetworkInterfaces();
|
||||||
|
while (interfaces.hasMoreElements()) {
|
||||||
|
NetworkInterface iface = interfaces.nextElement();
|
||||||
|
// 打印网卡名称和显示名称
|
||||||
|
System.out.println("Name: " + iface.getName());
|
||||||
|
System.out.println("Display Name: " + iface.getDisplayName());
|
||||||
|
System.out.println("--------------------------");
|
||||||
|
}
|
||||||
|
} catch (Exception e) {
|
||||||
|
e.printStackTrace();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user