admin 初始化
This commit is contained in:
@@ -0,0 +1,77 @@
|
||||
# tomcat config
|
||||
server:
|
||||
tomcat:
|
||||
accept-count: 100
|
||||
threads:
|
||||
max: 200
|
||||
min-spare: 10
|
||||
servlet:
|
||||
context-path: /admin
|
||||
# spring config
|
||||
spring:
|
||||
application:
|
||||
name: admin
|
||||
profiles:
|
||||
active: ${PROFILES_ACTIVE:dev}
|
||||
datasource:
|
||||
hikari:
|
||||
maximum-pool-size: 50
|
||||
minimum-idle: 20
|
||||
connection-timeout: 5000
|
||||
idle-timeout: 300000
|
||||
max-lifetime: 900000
|
||||
servlet:
|
||||
multipart:
|
||||
max-file-size: 4MB
|
||||
max-request-size: 20MB
|
||||
# Thymeleaf 配置
|
||||
thymeleaf:
|
||||
prefix: classpath:/templates/
|
||||
suffix: .html
|
||||
mode: HTML
|
||||
encoding: UTF-8
|
||||
# 开启静态资源映射
|
||||
web:
|
||||
resources:
|
||||
add-mappings: true
|
||||
static-locations: classpath:/static/
|
||||
cache:
|
||||
redis:
|
||||
cache-null-values: true
|
||||
key-prefix: "${spring.application.name}:"
|
||||
time-to-live: 24h
|
||||
jackson:
|
||||
default-property-inclusion: non_null
|
||||
property-naming-strategy: LOWER_CAMEL_CASE
|
||||
serialization:
|
||||
fail-on-empty-beans: false
|
||||
write-date-keys-as-timestamps: true
|
||||
write-date-timestamps-as-nanoseconds: false
|
||||
write-dates-as-timestamps: true
|
||||
deserialization:
|
||||
fail-on-unknown-properties: false
|
||||
fail-on-numbers-for-enums: true
|
||||
read-date-timestamps-as-nanoseconds: false
|
||||
# mybatis plus config
|
||||
mybatis-plus:
|
||||
mapper-locations: classpath*:mapper/**/*.xml
|
||||
global-config:
|
||||
db-config:
|
||||
id-type: assign_id
|
||||
insert-strategy: not_null
|
||||
update-strategy: not_null
|
||||
logic-delete-field: isDelete
|
||||
logic-delete-value: '1'
|
||||
logic-not-delete-value: '0'
|
||||
configuration:
|
||||
map-underscore-to-camel-case: true
|
||||
auto-mapping-unknown-column-behavior: warning
|
||||
cache-enabled: false
|
||||
call-setters-on-nulls: true
|
||||
jdbc-type-for-null: 'null'
|
||||
|
||||
# 日志
|
||||
logging:
|
||||
level:
|
||||
org:
|
||||
mybatis: info
|
||||
Reference in New Issue
Block a user