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