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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
# 此配置只适合开发测试环境,详细配置参考: http://t.cn/A64RaHJm
server:
port: 5004
servlet:
context-path: /xxl-job-admin
# 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 boot admin 配置
management:
health:
mail:
enabled: false
endpoints:
web:
exposure:
include: '*'
endpoint:
health:
show-details: ALWAYS
# spring
---
# 数据源配置
spring:
config:
activate:
on-profile: test
redis:
host: 192.168.1.65
port: 22379
password: '@yf_2017'
datasource:
type: com.zaxxer.hikari.HikariDataSource
driver-class-name: com.mysql.cj.jdbc.Driver
username: root
password: yf_zsk
url: jdbc:mysql://192.168.1.65:22306/yifu_job?characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=false&useJDBCCompliantTimezoneShift=true&useLegacyDatetimeCode=false&serverTimezone=Asia/Shanghai&nullCatalogMeansCurrent=true&allowPublicKeyRetrieval=true
#web:
# resources:
# static-locations: classpath:/static/,classpath:/views/
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:
config:
activate:
on-profile: dev
redis:
host: 127.0.0.1
port: 6379
password: '@yf_2017'
datasource:
type: com.zaxxer.hikari.HikariDataSource
driver-class-name: com.mysql.cj.jdbc.Driver
username: root
password: yf_zsk
url: jdbc:mysql://192.168.1.65:22306/yifu_job?characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=false&useJDBCCompliantTimezoneShift=true&useLegacyDatetimeCode=false&serverTimezone=Asia/Shanghai&nullCatalogMeansCurrent=true&allowPublicKeyRetrieval=true
#web:
# resources:
# static-locations: classpath:/static/,classpath:/views/
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