服务注册
This commit is contained in:
@@ -18,11 +18,23 @@ urban-lifeline:
|
|||||||
- /actuator/health
|
- /actuator/health
|
||||||
- /actuator/info
|
- /actuator/info
|
||||||
|
|
||||||
|
security:
|
||||||
|
aes:
|
||||||
|
secret-key: 1234567890qwer
|
||||||
|
|
||||||
# ================== Spring ==================
|
# ================== Spring ==================
|
||||||
spring:
|
spring:
|
||||||
application:
|
application:
|
||||||
name: agent-service
|
name: agent-service
|
||||||
|
|
||||||
|
# ================== Spring Cloud Nacos ==================
|
||||||
|
cloud:
|
||||||
|
nacos:
|
||||||
|
discovery:
|
||||||
|
server-addr: 127.0.0.1:8848
|
||||||
|
namespace: dev
|
||||||
|
group: DEFAULT_GROUP
|
||||||
|
|
||||||
# ================== DataSource ==================
|
# ================== DataSource ==================
|
||||||
datasource:
|
datasource:
|
||||||
url: jdbc:postgresql://127.0.0.1:5432/urban_lifeline
|
url: jdbc:postgresql://127.0.0.1:5432/urban_lifeline
|
||||||
|
|||||||
@@ -43,6 +43,22 @@
|
|||||||
<groupId>org.xyzh.common</groupId>
|
<groupId>org.xyzh.common</groupId>
|
||||||
<artifactId>common-utils</artifactId>
|
<artifactId>common-utils</artifactId>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
|
||||||
|
<!-- Spring Cloud Nacos Discovery - 用于 Gateway 路由发现 -->
|
||||||
|
<dependency>
|
||||||
|
<groupId>com.alibaba.cloud</groupId>
|
||||||
|
<artifactId>spring-cloud-starter-alibaba-nacos-discovery</artifactId>
|
||||||
|
<exclusions>
|
||||||
|
<exclusion>
|
||||||
|
<groupId>com.alibaba.nacos</groupId>
|
||||||
|
<artifactId>nacos-logback-adapter-12</artifactId>
|
||||||
|
</exclusion>
|
||||||
|
<exclusion>
|
||||||
|
<groupId>com.alibaba.nacos</groupId>
|
||||||
|
<artifactId>logback-adapter</artifactId>
|
||||||
|
</exclusion>
|
||||||
|
</exclusions>
|
||||||
|
</dependency>
|
||||||
</dependencies>
|
</dependencies>
|
||||||
|
|
||||||
</project>
|
</project>
|
||||||
@@ -18,6 +18,14 @@ spring:
|
|||||||
application:
|
application:
|
||||||
name: auth-service
|
name: auth-service
|
||||||
|
|
||||||
|
# ================== Spring Cloud Nacos ==================
|
||||||
|
cloud:
|
||||||
|
nacos:
|
||||||
|
discovery:
|
||||||
|
server-addr: 127.0.0.1:8848
|
||||||
|
namespace: dev
|
||||||
|
group: DEFAULT_GROUP
|
||||||
|
|
||||||
# ================== DataSource ==================
|
# ================== DataSource ==================
|
||||||
datasource:
|
datasource:
|
||||||
url: jdbc:postgresql://127.0.0.1:5432/urban_lifeline
|
url: jdbc:postgresql://127.0.0.1:5432/urban_lifeline
|
||||||
|
|||||||
@@ -18,11 +18,23 @@ urban-lifeline:
|
|||||||
- /actuator/health
|
- /actuator/health
|
||||||
- /actuator/info
|
- /actuator/info
|
||||||
|
|
||||||
|
security:
|
||||||
|
aes:
|
||||||
|
secret-key: 1234567890qwer
|
||||||
|
|
||||||
# ================== Spring ==================
|
# ================== Spring ==================
|
||||||
spring:
|
spring:
|
||||||
application:
|
application:
|
||||||
name: bidding-service
|
name: bidding-service
|
||||||
|
|
||||||
|
# ================== Spring Cloud Nacos ==================
|
||||||
|
cloud:
|
||||||
|
nacos:
|
||||||
|
discovery:
|
||||||
|
server-addr: 127.0.0.1:8848
|
||||||
|
namespace: dev
|
||||||
|
group: DEFAULT_GROUP
|
||||||
|
|
||||||
# ================== DataSource ==================
|
# ================== DataSource ==================
|
||||||
datasource:
|
datasource:
|
||||||
url: jdbc:postgresql://127.0.0.1:5432/urban_lifeline
|
url: jdbc:postgresql://127.0.0.1:5432/urban_lifeline
|
||||||
|
|||||||
@@ -9,11 +9,23 @@ urban-lifeline:
|
|||||||
auth:
|
auth:
|
||||||
enabled: false # 定时任务服务通常不需要认证
|
enabled: false # 定时任务服务通常不需要认证
|
||||||
|
|
||||||
|
security:
|
||||||
|
aes:
|
||||||
|
secret-key: 1234567890qwer
|
||||||
|
|
||||||
# ================== Spring ==================
|
# ================== Spring ==================
|
||||||
spring:
|
spring:
|
||||||
application:
|
application:
|
||||||
name: crontab-service
|
name: crontab-service
|
||||||
|
|
||||||
|
# ================== Spring Cloud Nacos ==================
|
||||||
|
cloud:
|
||||||
|
nacos:
|
||||||
|
discovery:
|
||||||
|
server-addr: 127.0.0.1:8848
|
||||||
|
namespace: dev
|
||||||
|
group: DEFAULT_GROUP
|
||||||
|
|
||||||
# ================== DataSource ==================
|
# ================== DataSource ==================
|
||||||
datasource:
|
datasource:
|
||||||
url: jdbc:postgresql://127.0.0.1:5432/urban_lifeline
|
url: jdbc:postgresql://127.0.0.1:5432/urban_lifeline
|
||||||
|
|||||||
@@ -18,11 +18,23 @@ urban-lifeline:
|
|||||||
- /actuator/health
|
- /actuator/health
|
||||||
- /actuator/info
|
- /actuator/info
|
||||||
|
|
||||||
|
security:
|
||||||
|
aes:
|
||||||
|
secret-key: 1234567890qwer
|
||||||
|
|
||||||
# ================== Spring ==================
|
# ================== Spring ==================
|
||||||
spring:
|
spring:
|
||||||
application:
|
application:
|
||||||
name: file-service
|
name: file-service
|
||||||
|
|
||||||
|
# ================== Spring Cloud Nacos ==================
|
||||||
|
cloud:
|
||||||
|
nacos:
|
||||||
|
discovery:
|
||||||
|
server-addr: 127.0.0.1:8848
|
||||||
|
namespace: dev
|
||||||
|
group: DEFAULT_GROUP
|
||||||
|
|
||||||
# ================== DataSource ==================
|
# ================== DataSource ==================
|
||||||
datasource:
|
datasource:
|
||||||
url: jdbc:postgresql://127.0.0.1:5432/urban_lifeline
|
url: jdbc:postgresql://127.0.0.1:5432/urban_lifeline
|
||||||
|
|||||||
@@ -18,11 +18,23 @@ urban-lifeline:
|
|||||||
- /actuator/health
|
- /actuator/health
|
||||||
- /actuator/info
|
- /actuator/info
|
||||||
|
|
||||||
|
security:
|
||||||
|
aes:
|
||||||
|
secret-key: 1234567890qwer
|
||||||
|
|
||||||
# ================== Spring ==================
|
# ================== Spring ==================
|
||||||
spring:
|
spring:
|
||||||
application:
|
application:
|
||||||
name: log-service
|
name: log-service
|
||||||
|
|
||||||
|
# ================== Spring Cloud Nacos ==================
|
||||||
|
cloud:
|
||||||
|
nacos:
|
||||||
|
discovery:
|
||||||
|
server-addr: 127.0.0.1:8848
|
||||||
|
namespace: dev
|
||||||
|
group: DEFAULT_GROUP
|
||||||
|
|
||||||
# ================== DataSource ==================
|
# ================== DataSource ==================
|
||||||
datasource:
|
datasource:
|
||||||
url: jdbc:postgresql://127.0.0.1:5432/urban_lifeline
|
url: jdbc:postgresql://127.0.0.1:5432/urban_lifeline
|
||||||
|
|||||||
@@ -44,7 +44,7 @@
|
|||||||
</exclusions>
|
</exclusions>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
|
||||||
<!-- Nacos Discovery -->
|
<!-- Spring Cloud Nacos Discovery - 用于 Gateway 路由发现 -->
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>com.alibaba.cloud</groupId>
|
<groupId>com.alibaba.cloud</groupId>
|
||||||
<artifactId>spring-cloud-starter-alibaba-nacos-discovery</artifactId>
|
<artifactId>spring-cloud-starter-alibaba-nacos-discovery</artifactId>
|
||||||
|
|||||||
@@ -26,6 +26,14 @@ spring:
|
|||||||
application:
|
application:
|
||||||
name: message-service
|
name: message-service
|
||||||
|
|
||||||
|
# ================== Spring Cloud Nacos ==================
|
||||||
|
cloud:
|
||||||
|
nacos:
|
||||||
|
discovery:
|
||||||
|
server-addr: 127.0.0.1:8848
|
||||||
|
namespace: dev
|
||||||
|
group: DEFAULT_GROUP
|
||||||
|
|
||||||
# ================== DataSource ==================
|
# ================== DataSource ==================
|
||||||
datasource:
|
datasource:
|
||||||
url: jdbc:postgresql://127.0.0.1:5432/urban_lifeline
|
url: jdbc:postgresql://127.0.0.1:5432/urban_lifeline
|
||||||
|
|||||||
@@ -18,11 +18,23 @@ urban-lifeline:
|
|||||||
- /actuator/health
|
- /actuator/health
|
||||||
- /actuator/info
|
- /actuator/info
|
||||||
|
|
||||||
|
security:
|
||||||
|
aes:
|
||||||
|
secret-key: 1234567890qwer
|
||||||
|
|
||||||
# ================== Spring ==================
|
# ================== Spring ==================
|
||||||
spring:
|
spring:
|
||||||
application:
|
application:
|
||||||
name: platform-service
|
name: platform-service
|
||||||
|
|
||||||
|
# ================== Spring Cloud Nacos ==================
|
||||||
|
cloud:
|
||||||
|
nacos:
|
||||||
|
discovery:
|
||||||
|
server-addr: 127.0.0.1:8848
|
||||||
|
namespace: dev
|
||||||
|
group: DEFAULT_GROUP
|
||||||
|
|
||||||
# ================== DataSource ==================
|
# ================== DataSource ==================
|
||||||
datasource:
|
datasource:
|
||||||
url: jdbc:postgresql://127.0.0.1:5432/urban_lifeline
|
url: jdbc:postgresql://127.0.0.1:5432/urban_lifeline
|
||||||
|
|||||||
@@ -41,6 +41,17 @@ security:
|
|||||||
|
|
||||||
# ================== Spring ==================
|
# ================== Spring ==================
|
||||||
spring:
|
spring:
|
||||||
|
application:
|
||||||
|
name: system-service
|
||||||
|
|
||||||
|
# ================== Spring Cloud Nacos ==================
|
||||||
|
cloud:
|
||||||
|
nacos:
|
||||||
|
discovery:
|
||||||
|
server-addr: 127.0.0.1:8848
|
||||||
|
namespace: dev
|
||||||
|
group: DEFAULT_GROUP
|
||||||
|
|
||||||
# ================== DataSource ==================
|
# ================== DataSource ==================
|
||||||
datasource:
|
datasource:
|
||||||
# 按你的实际库名改一下,比如 urban-lifeline_system
|
# 按你的实际库名改一下,比如 urban-lifeline_system
|
||||||
|
|||||||
@@ -18,11 +18,23 @@ urban-lifeline:
|
|||||||
- /actuator/health
|
- /actuator/health
|
||||||
- /actuator/info
|
- /actuator/info
|
||||||
|
|
||||||
|
security:
|
||||||
|
aes:
|
||||||
|
secret-key: 1234567890qwer
|
||||||
|
|
||||||
# ================== Spring ==================
|
# ================== Spring ==================
|
||||||
spring:
|
spring:
|
||||||
application:
|
application:
|
||||||
name: workcase-service
|
name: workcase-service
|
||||||
|
|
||||||
|
# ================== Spring Cloud Nacos ==================
|
||||||
|
cloud:
|
||||||
|
nacos:
|
||||||
|
discovery:
|
||||||
|
server-addr: 127.0.0.1:8848
|
||||||
|
namespace: dev
|
||||||
|
group: DEFAULT_GROUP
|
||||||
|
|
||||||
# ================== DataSource ==================
|
# ================== DataSource ==================
|
||||||
datasource:
|
datasource:
|
||||||
url: jdbc:postgresql://127.0.0.1:5432/urban_lifeline
|
url: jdbc:postgresql://127.0.0.1:5432/urban_lifeline
|
||||||
|
|||||||
Reference in New Issue
Block a user