CommonFramework/config/application-local.yml

111 lines
2.7 KiB
YAML
Raw Normal View History

2024-01-05 06:21:21 +00:00
server :
2024-02-02 08:35:31 +00:00
port : 9276
servlet :
context-path: /cmhi
compression:
# 开启响应压缩
enabled : true
mime-types :
- application/json # RESTful API JSON
# 进行压缩的最小体积
min-response-size: 1KB
# Crypto Configure
2024-01-05 06:21:21 +00:00
jasypt :
encryptor:
algorithm: PBEWITHHMACSHA512ANDAES_256
password :
2024-01-05 06:21:21 +00:00
spring :
2024-02-02 08:35:31 +00:00
mvc :
throw-exception-if-no-handler-found: true
web :
resources:
add-mappings: false
2024-02-02 03:23:35 +00:00
jackson :
date-format : yyyy-MM-dd HH:mm:ss.SSS
timezone : GMT+8
2024-02-02 03:23:35 +00:00
default-property-inclusion: non_null
mapper :
default-view-inclusion: true
deserialization :
fail-on-unknown-properties: false
2024-02-02 03:23:35 +00:00
datasource:
2024-01-18 06:42:00 +00:00
#url : jdbc:mysql://xajhuang.com:3307/common_framework?serverTimezone=Asia/Shanghai&zeroDateTimeBehavior=convertToNull&useUnicode=true
url : jdbc:mysql://localhost:3306/common_framework?serverTimezone=Asia/Shanghai&zeroDateTimeBehavior=convertToNull&useUnicode=true
driver-class-name: com.mysql.cj.jdbc.Driver
2024-01-18 06:42:00 +00:00
#username : xajhuang
#password : wkj!nky5cjb!GMV6guq
username : root
password : aaaHuang1
dbcp2 :
max-total : 128
max-wait-millis : 10000
max-idle : 32
min-idle : 8
initial-size : 8
validation-query : SELECT 1
test-while-idle : true
connection-properties:
characterEncoding: utf8
2024-02-02 03:23:35 +00:00
sql :
init:
encoding : utf8
schema-locations: classpath:rbac/schema.sql
data-locations : classpath:rbac/data.sql
# ALWAYS/EMBEDDED/NEVER
mode : always
enabled : true
#mybatis
2024-01-05 06:21:21 +00:00
mybatis :
mapper-locations : classpath*:mappers/*.xml
type-aliases-package: com.cmhi.gds.pojo.entry
configuration :
default-enum-type-handler: com.cmhi.cf.common.CommonEnumHandler
2024-01-05 06:21:21 +00:00
mybatis-flex:
global-config:
print-banner: false
#pagehelper
2024-01-05 06:21:21 +00:00
pagehelper :
helper-dialect : mysql
reasonable : true
support-methods-arguments: true
pageSizeZero : true
params.count : countSql
#config log
2024-01-05 06:21:21 +00:00
logging :
config: file:config/logback.xml
2024-01-05 06:21:21 +00:00
log4j :
logger:
org:
mybatis: info
# swagger-ui custom path
2024-01-05 06:21:21 +00:00
springdoc :
swagger-ui:
path: /swagger-ui.html
# JWT configure
2024-01-05 06:21:21 +00:00
jwt :
http-head : Authorization
secret-key : MTIzNDU2Nzg=
expire-time: 604800
2024-02-02 03:23:35 +00:00
# 字典配置
system :
dict:
raw-value : true
cache :
enabled: true
controller:
enabled: false
2024-02-02 03:23:35 +00:00
prefix : /dict