houzhongyi
2024-07-11 e7c1260db32209a078a962aaa0ad5492c35774fb
提交 | 用户 | 时间
e7c126 1 spring:
H 2   mvc:
3     servlet:
4       load-on-startup: 0
5     static-path-pattern: /static/**
6   resources:
7     static-locations:classpath: /static/
8   freemarker:
9     templateLoaderPath:classpath: /templates/
10     suffix: .ftl
11     charset: UTF-8
12     request-context-attribute: request
13     settings:
14       number_format: 0.
15       new_builtin_class_resolver: safer
16   datasource:
17     url: jdbc:mysql://127.0.0.1:3306/xxl_job?useUnicode=true&characterEncoding=UTF-8&autoReconnect=true&serverTimezone=Asia/Shanghai
18     username: root
19     password: 123456
20     driver-class-name: com.mysql.cj.jdbc.Driver
21     type: com.zaxxer.hikari.HikariDataSource
22     hikari:
23       minimum-idle: 10
24       maximum-pool-size: 30
25       auto-commit: true
26       idle-timeout: 30000
27       pool-name: HikariCP
28       max-lifetime: 900000
29       connection-timeout: 10000
30       connection-test-query: SELECT 1
31       validation-timeout: 1000
32   mail:
33     host: smtp.qq.com
34     port: 25
35     username: 790219613@qq.com
36     from: xxx@qq.com
37     password: xxx
38     properties:
39       mail:
40         smtp:
41           auth: true
42           starttls:
43             enable: true
44             required: true
45           socketFactory:
46             class: javax.net.ssl.SSLSocketFactory
47
48 mybatis:
49   mapper-locations: classpath:/mybatis-mapper/*Mapper.xml
50 xxl:
51   job:
52     accessToken: default_token
53     i18n: zh_CN
54     triggerpool:
55       fast:
56         max: 200
57       slow:
58         max: 100
59     logretentiondays: 30
60
61 # 服务端点检查
62 management:
63   trace:
64     http:
65       enabled: true
66   endpoints:
67     web:
68       exposure:
69         include: "*"
70   endpoint:
71     health:
72       show-details: always
73
74