xm
2024-06-14 722af26bc6fec32bb289b1df51a9016a4935610f
提交 | 用户 | 时间
722af2 1 --- # 监控配置
X 2 spring.boot.admin.client:
3   # 增加客户端开关
4   enabled: true
5   # 设置 Spring Boot Admin Server 地址
6   url: http://localhost:9090/admin
7   instance:
8     service-host-type: IP
9   username: dl
10   password: 123456
11
12 --- # 数据库配置
13 spring:
14   datasource:
15     type: com.zaxxer.hikari.HikariDataSource
16     driver-class-name: com.mysql.cj.jdbc.Driver
17     url: jdbc:mysql://localhost:3306/ry-vue?useUnicode=true&characterEncoding=UTF-8&autoReconnect=true&serverTimezone=Asia/Shanghai
18     username: root
19     password: root
20     hikari:
21       auto-commit: true
22       connection-test-query: SELECT 1
23       connection-timeout: 10000
24       idle-timeout: 30000
25       max-lifetime: 900000
26       maximum-pool-size: 30
27       minimum-idle: 10
28       pool-name: HikariCP
29       validation-timeout: 1000
30
31 --- # 邮件配置
32 spring:
33   mail:
34     from: xxx@qq.com
35     host: smtp.qq.com
36     username: xxx@qq.com
37     password: xxx
38     port: 25
39     properties:
40       mail:
41         smtp:
42           auth: true
43           socketFactory:
44             class: javax.net.ssl.SSLSocketFactory
45           starttls:
46             enable: true
47             required: true