✨ Introducing new features. closed #2988 xxl-job-admin 配置文件集成到nacos 配置中心

This commit is contained in:
lbw committed 2021-07-30 15:01:01 +08:00
1 parent 4c65257273
commit f59874f783
3 files changed
+12 -55

No files matched your search

+6 -1
View File
@@ -12,13 +12,18 @@
<packaging>jar</packaging>
<dependencies>
<!--注册中心客户端-->
<dependency>
<groupId>com.alibaba.cloud</groupId>
<artifactId>spring-cloud-starter-alibaba-nacos-discovery</artifactId>
</dependency>
<!--配置中心客户端-->
<dependency>
<groupId>com.alibaba.cloud</groupId>
<artifactId>spring-cloud-starter-alibaba-nacos-config</artifactId>
</dependency>
<!--hibernate-validator 兼容JAVA11-->
<dependency>
<groupId>org.springframework.boot</groupId>
@@ -1,53 +0,0 @@
# xxl
xxl:
job:
i18n: zh_CN
logretentiondays: 30
triggerpool:
fast.max: 200
slow.max: 200
# mybatis
mybatis:
mapper-locations: classpath:/mybatis-mapper/*Mapper.xml
# spring
spring:
datasource:
url: jdbc:mysql://${MYSQL_HOST:pigx-mysql}:${MYSQL_PORT:3306}/${MYSQL_DB:pigxx_job}?characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=false&useJDBCCompliantTimezoneShift=true&useLegacyDatetimeCode=false&serverTimezone=GMT%2B8&nullCatalogMeansCurrent=true&allowPublicKeyRetrieval=true
driver-class-name: com.mysql.cj.jdbc.Driver
username: ${MYSQL_USER:root}
password: ${MYSQL_PWD:root}
mvc:
static-path-pattern: /static/**
freemarker:
suffix: .ftl
request-context-attribute: request
settings:
number_format: 0.##########
mail:
host: smtp.mxhichina.com
port: 465
from: xxxx@gitee.wang
username: xxxx@gitee.wang
password: xxxx
properties:
mail:
smtp:
auth: true
ssl.enable: true
starttls.enable: false
required: false
# spring boot admin 配置
management:
health:
mail:
enabled: false
endpoints:
web:
exposure:
include: '*'
endpoint:
health:
show-details: ALWAYS
@@ -13,5 +13,10 @@ spring:
server-addr: ${NACOS_HOST:pigx-register}:${NACOS_PORT:8848}
metadata:
management.context-path: ${server.servlet.context-path}/actuator
config:
server-addr: ${spring.cloud.nacos.discovery.server-addr}
file-extension: yml
shared-configs:
- application-${spring.profiles.active}.${spring.cloud.nacos.config.file-extension}
profiles:
active: @profiles.active@
active: @profiles.active@