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
|