application.yml
980 Bytes
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
spring:
application:
name: test4-backend
profiles:
active: dev
config:
import: optional:file:../.env.local[.properties]
datasource:
url: jdbc:mysql://${DB_HOST}:${DB_PORT}/${DB_SCHEMA}?useUnicode=true&characterEncoding=utf8&serverTimezone=Asia/Shanghai&allowPublicKeyRetrieval=true&useSSL=false&tinyInt1isBit=false
username: ${DB_USER}
password: ${DB_PASSWORD}
driver-class-name: com.mysql.cj.jdbc.Driver
flyway:
enabled: true
locations: filesystem:../sql/migrations
baseline-on-migrate: false
server:
port: 8080
mybatis-plus:
mapper-locations: classpath:mapper/**/*.xml
global-config:
db-config:
id-type: AUTO
configuration:
map-underscore-to-camel-case: false
app:
security:
default-password: "666666"
max-login-fail: 5
lock-minutes: 30
jwt:
secret: ${JWT_SECRET}
access-ttl-hours: 24
springdoc:
api-docs:
path: /v3/api-docs
swagger-ui:
path: /swagger-ui.html