houzhongyi
2024-07-11 e7c1260db32209a078a962aaa0ad5492c35774fb
提交 | 用户 | 时间
e7c126 1 server:
H 2   port: 9090
3   servlet:
4     context-path: /xxl-job-admin
5 management:
6   server:
7     base-path: /actuator
8   health:
9     mail:
10       enabled: false
11 spring:
12   application:
13     name: xxl-job-server
14   profiles:
15     # 环境配置
16     active: @profiles.active@
17     # Spring Boot Admin 配置项
18     boot:
19       admin:
20         # Spring Boot Admin Client 客户端的相关配置
21         client:
22           instance:
23             service-host-type: IP # 注册实例时,优先使用 IP [IP, HOST_NAME, CANONICAL_HOST_NAME]
24   cloud:
25     nacos:
26       server-addr: @nacos.server@
27       username: @nacos.username@
28       password: @nacos.password@
29       discovery:
30         namespace: @nacos.namespace@  # 命名空间。这里使用 dev 开发环境
31         metadata:
32           version: @nacos.metadata.version@ # 服务实例的版本号,可用于灰度发布
33           management.context-path: ${server.servlet.context-path}/actuator