Update config file

This commit is contained in:
2023-10-05 21:04:08 +08:00
parent 5e555569c2
commit ca4fa26187
5 changed files with 34 additions and 21 deletions

View File

@@ -1,3 +1,12 @@
app:
security:
# header-string: "Authorization" # The key of head to get token
# token-prefix: "Bearer " # Token prefix
# jwt-ttl: 2 # The life of token
# jwt-ttl-unit: hours # Unit of life of token
jwt-key: $uuid$ # Key to generate token
# jwt-issuer: FatWeb # Token issuer
server:
# port: 8080 # Server port

View File

@@ -1,15 +1,18 @@
app:
version: @project.version@
build-time: @build.timestamp@
security:
header-string: "Authorization"
token-prefix: "Bearer "
jwt-ttl: 2
jwt-ttl-unit: hours
spring:
profiles:
active: config
datasource:
type: com.alibaba.druid.pool.DruidDataSource
driver-class-name: com.mysql.cj.jdbc.Driver
driver-class-name: com.mysql.cj.jdbc.Driver
mybatis-plus:
global-config:
db-config:
logic-delete-field: deleted
logic-not-delete-value: 0
logic-delete-value: id
id-type: assign_id
type-aliases-package: top.fatweb.api.entity