79 lines
2.0 KiB
YAML
79 lines
2.0 KiB
YAML
server :
|
|
port : 9276
|
|
servlet:
|
|
context-path: /cmhi
|
|
|
|
# Crypto Configure
|
|
jasypt :
|
|
encryptor:
|
|
algorithm: PBEWITHHMACSHA512ANDAES_256
|
|
password :
|
|
|
|
# mysql
|
|
spring :
|
|
datasource:
|
|
#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
|
|
#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
|
|
sql :
|
|
init:
|
|
encoding : utf8
|
|
schema-locations: classpath:rbac/schema.sql
|
|
data-locations : classpath:rbac/data.sql
|
|
# ALWAYS/EMBEDDED/NEVER
|
|
mode : always
|
|
enabled : true
|
|
|
|
|
|
#mybatis
|
|
mybatis :
|
|
mapper-locations : classpath*:mappers/*.xml
|
|
type-aliases-package: com.cmhi.gds.pojo.entry
|
|
configuration :
|
|
default-enum-type-handler: com.cmhi.cf.common.CommonEnumHandler
|
|
|
|
mybatis-flex:
|
|
global-config:
|
|
print-banner: false
|
|
|
|
#pagehelper
|
|
pagehelper :
|
|
helper-dialect : mysql
|
|
reasonable : true
|
|
support-methods-arguments: true
|
|
pageSizeZero : true
|
|
params.count : countSql
|
|
|
|
#config log
|
|
logging :
|
|
config: file:config/logback.xml
|
|
log4j :
|
|
logger:
|
|
org:
|
|
mybatis: info
|
|
|
|
# swagger-ui custom path
|
|
springdoc :
|
|
swagger-ui:
|
|
path: /swagger-ui.html
|
|
|
|
# JWT configure
|
|
jwt :
|
|
http-head : Authorization
|
|
secret-key : MTIzNDU2Nzg=
|
|
expire-time: 604800
|