服务注册

This commit is contained in:
2025-12-05 18:56:56 +08:00
parent 133209691e
commit 68c91b4ba3
12 changed files with 128 additions and 1 deletions

View File

@@ -9,11 +9,23 @@ urban-lifeline:
auth:
enabled: false # 定时任务服务通常不需要认证
security:
aes:
secret-key: 1234567890qwer
# ================== Spring ==================
spring:
application:
name: crontab-service
# ================== Spring Cloud Nacos ==================
cloud:
nacos:
discovery:
server-addr: 127.0.0.1:8848
namespace: dev
group: DEFAULT_GROUP
# ================== DataSource ==================
datasource:
url: jdbc:postgresql://127.0.0.1:5432/urban_lifeline