Initial commit: PAR Server with Spring Boot 3.2, MyBatis-Plus, Flyway
This commit is contained in:
63
par-api/src/main/resources/application.yml
Normal file
63
par-api/src/main/resources/application.yml
Normal file
@@ -0,0 +1,63 @@
|
||||
server:
|
||||
port: 8080
|
||||
|
||||
spring:
|
||||
application:
|
||||
name: par-server
|
||||
datasource:
|
||||
url: jdbc:mysql://localhost:3306/par_registry?useUnicode=true&characterEncoding=utf-8&serverTimezone=Asia/Shanghai
|
||||
username: ${MYSQL_USER:par}
|
||||
password: ${MYSQL_PASSWORD:par123}
|
||||
driver-class-name: com.mysql.cj.jdbc.Driver
|
||||
hikari:
|
||||
maximum-pool-size: 20
|
||||
minimum-idle: 5
|
||||
connection-timeout: 30000
|
||||
idle-timeout: 600000
|
||||
max-lifetime: 1800000
|
||||
|
||||
jackson:
|
||||
date-format: yyyy-MM-dd HH:mm:ss
|
||||
time-zone: Asia/Shanghai
|
||||
default-property-inclusion: non_null
|
||||
|
||||
web:
|
||||
resources:
|
||||
static-locations: file:${par.static.path:./static/}
|
||||
|
||||
flyway:
|
||||
enabled: true
|
||||
locations: classpath:db/migration
|
||||
baseline-on-migrate: true
|
||||
baseline-version: 0
|
||||
|
||||
mybatis-plus:
|
||||
configuration:
|
||||
map-underscore-to-camel-case: true
|
||||
log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
|
||||
global-config:
|
||||
db-config:
|
||||
id-type: auto
|
||||
logic-delete-field: deleted
|
||||
logic-delete-value: 1
|
||||
logic-not-delete-value: 0
|
||||
|
||||
par:
|
||||
static:
|
||||
path: ${PAR_STATIC_PATH:./static/configs/}
|
||||
admin:
|
||||
path: ${PAR_ADMIN_PATH:./static/admin/}
|
||||
auth:
|
||||
api-key-prefix: mbt_
|
||||
hmac-window-seconds: 60
|
||||
password-bcrypt-strength: 10
|
||||
security:
|
||||
verification-code-expire-minutes: 10
|
||||
login-max-failures: 5
|
||||
login-lock-minutes: 30
|
||||
|
||||
logging:
|
||||
level:
|
||||
com.par: DEBUG
|
||||
pattern:
|
||||
console: "%d{yyyy-MM-dd HH:mm:ss.SSS} [%thread] %-5level %logger{36} - %msg%n"
|
||||
Reference in New Issue
Block a user