修改配置,链接注册dubbo、nacos

master
huwei 2026-06-23 14:30:02 +08:00
parent 10f22331d3
commit 6c080c9851
4 changed files with 22 additions and 13 deletions

1
.gitignore vendored
View File

@ -40,3 +40,4 @@ build/
/.workbuddy/ /.workbuddy/
/.idea/ /.idea/
/.codebuddy/ /.codebuddy/
/.codex-run/

View File

@ -1 +0,0 @@
longlong

View File

@ -6,16 +6,16 @@
spring: spring:
config: config:
import: import:
- nacos:common.yml?refreshEnabled=true - optional:nacos:common.yml?refreshEnabled=true
- nacos:safety-eval-service.yml - optional:nacos:safety-eval-service.yml
cloud: cloud:
nacos: nacos:
discovery: discovery:
server-addr: 192.168.20.100:8848 server-addr: 192.168.20.100:30290
namespace: public namespace: jjb-dragon
config: config:
server-addr: 192.168.20.100:8848 server-addr: 192.168.20.100:30290
namespace: public namespace: jjb-dragon
file-extension: yml file-extension: yml
datasource: datasource:
driver-class-name: com.mysql.cj.jdbc.Driver driver-class-name: com.mysql.cj.jdbc.Driver
@ -36,6 +36,10 @@ spring:
max-wait: -1 max-wait: -1
dubbo: dubbo:
registry:
address: nacos://192.168.20.100:30290
parameters:
namespace: jjb-dragon
protocol: protocol:
port: 20895 port: 20895

View File

@ -6,17 +6,17 @@
spring: spring:
config: config:
import: import:
- nacos:common.yml?refreshEnabled=true - optional:nacos:common.yml?refreshEnabled=true
- nacos:safety-eval-service.yml - optional:nacos:safety-eval-service.yml
cloud: cloud:
nacos: nacos:
discovery: discovery:
enabled: false enabled: true
server-addr: 192.168.20.100:8848 server-addr: 192.168.20.100:30290
namespace: public namespace: jjb-dragon
config: config:
server-addr: 192.168.20.100:8848 server-addr: 192.168.20.100:30290
namespace: public namespace: jjb-dragon
file-extension: yml file-extension: yml
datasource: datasource:
driver-class-name: com.mysql.cj.jdbc.Driver driver-class-name: com.mysql.cj.jdbc.Driver
@ -37,6 +37,10 @@ spring:
max-wait: -1 max-wait: -1
dubbo: dubbo:
registry:
address: nacos://192.168.20.100:30290
parameters:
namespace: jjb-dragon
protocol: protocol:
port: 20895 port: 20895