71 lines
1.6 KiB
YAML
71 lines
1.6 KiB
YAML
|
|
server:
|
||
|
|
port: 8080
|
||
|
|
servlet:
|
||
|
|
context-path: /
|
||
|
|
|
||
|
|
spring:
|
||
|
|
application:
|
||
|
|
name: jog-system
|
||
|
|
datasource:
|
||
|
|
driver-class-name: com.mysql.cj.jdbc.Driver
|
||
|
|
url: jdbc:mysql://localhost:3306/jog_db?useUnicode=true&characterEncoding=utf8mb4&useSSL=false&serverTimezone=Asia/Shanghai&allowPublicKeyRetrieval=true
|
||
|
|
username: root
|
||
|
|
password: root
|
||
|
|
data:
|
||
|
|
redis:
|
||
|
|
host: localhost
|
||
|
|
port: 6379
|
||
|
|
database: 0
|
||
|
|
timeout: 5000ms
|
||
|
|
lettuce:
|
||
|
|
pool:
|
||
|
|
max-active: 20
|
||
|
|
max-idle: 10
|
||
|
|
min-idle: 5
|
||
|
|
mail:
|
||
|
|
host: smtp.example.com
|
||
|
|
port: 587
|
||
|
|
username: noreply@example.com
|
||
|
|
password: your-mail-password
|
||
|
|
properties:
|
||
|
|
mail:
|
||
|
|
smtp:
|
||
|
|
auth: true
|
||
|
|
starttls:
|
||
|
|
enable: true
|
||
|
|
flyway:
|
||
|
|
enabled: true
|
||
|
|
locations: classpath:db/migration
|
||
|
|
baseline-on-migrate: true
|
||
|
|
encoding: UTF-8
|
||
|
|
|
||
|
|
mybatis-plus:
|
||
|
|
mapper-locations: classpath*:/mapper/**/*.xml
|
||
|
|
configuration:
|
||
|
|
map-underscore-to-camel-case: true
|
||
|
|
log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
|
||
|
|
global-config:
|
||
|
|
db-config:
|
||
|
|
logic-delete-field: deleted
|
||
|
|
logic-delete-value: 1
|
||
|
|
logic-not-delete-value: 0
|
||
|
|
|
||
|
|
jwt:
|
||
|
|
secret: YourSuperSecretKeyForJwtTokenGenerationMustBeAtLeast256BitsLongForHS256Algorithm
|
||
|
|
access-token-expire: 7200
|
||
|
|
refresh-token-expire: 86400
|
||
|
|
refresh-token-expire-remember: 1209600
|
||
|
|
|
||
|
|
springdoc:
|
||
|
|
api-docs:
|
||
|
|
enabled: true
|
||
|
|
path: /v3/api-docs
|
||
|
|
swagger-ui:
|
||
|
|
enabled: true
|
||
|
|
path: /swagger-ui.html
|
||
|
|
|
||
|
|
logging:
|
||
|
|
level:
|
||
|
|
fun.nojava: DEBUG
|
||
|
|
org.springframework.security: DEBUG
|