52 lines
1.6 KiB
YAML
52 lines
1.6 KiB
YAML
# 此配置只适合开发测试环境,详细配置参考: http://t.cn/A64RaHJm
|
|
server:
|
|
port: 9080
|
|
servlet:
|
|
context-path: /xxl-job-admin
|
|
|
|
spring:
|
|
application:
|
|
name: @artifactId@
|
|
cloud:
|
|
nacos:
|
|
username: @nacos.username@
|
|
password: @nacos.password@
|
|
discovery:
|
|
server-addr: ${NACOS_HOST:pjcloud-register}:${NACOS_PORT:8848}
|
|
metadata:
|
|
management.context-path: ${server.servlet.context-path}/actuator
|
|
config:
|
|
server-addr: ${spring.cloud.nacos.discovery.server-addr}
|
|
config:
|
|
import:
|
|
- optional:nacos:application-@profiles.active@.yml
|
|
- optional:nacos:${spring.application.name}-@profiles.active@.yml
|
|
datasource:
|
|
type: com.alibaba.druid.pool.DruidDataSource
|
|
druid:
|
|
driver-class-name: com.mysql.cj.jdbc.Driver
|
|
username: ${MYSQL_USER:root}
|
|
password: ${MYSQL_PWD:root}
|
|
url: jdbc:mysql://${MYSQL_HOST:pjcloud-mysql}:${MYSQL_PORT:3306}/${MYSQL_DB:pjcloudx_job}?characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=false&useJDBCCompliantTimezoneShift=true&useLegacyDatetimeCode=false&serverTimezone=GMT%2B8&allowMultiQueries=true&allowPublicKeyRetrieval=true
|
|
mvc:
|
|
static-path-pattern: /static/**
|
|
freemarker:
|
|
suffix: .ftl
|
|
request-context-attribute: request
|
|
settings:
|
|
number_format: 0.##########
|
|
template-loader-path: classpath:/templates/
|
|
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
|