|
|
var:
|
|
|
env: local # dev-开发 pro-生产
|
|
|
port: 9080
|
|
|
mysql:
|
|
|
# ip: 127.0.0.1
|
|
|
ip: 106.227.69.97
|
|
|
# port: 3306
|
|
|
port: 3307
|
|
|
database: 883web
|
|
|
user: 883web
|
|
|
password: LFw24KPkdFdtdw5W
|
|
|
magic-api:
|
|
|
show-url: true # 是否显示开发界面地址。生产置为 false
|
|
|
resource:
|
|
|
location: src/main/resources/api_file # 配置文件存储路径
|
|
|
# location: classpath:api_file # 部署
|
|
|
redis:
|
|
|
# host: 127.0.0.1
|
|
|
# port: 6379
|
|
|
# password:
|
|
|
# database: 0
|
|
|
|
|
|
|
|
|
# service port
|
|
|
server:
|
|
|
port: ${var.port}
|
|
|
compression:
|
|
|
enabled: true
|
|
|
min-response-size: 256
|
|
|
spring:
|
|
|
# database configuration
|
|
|
datasource:
|
|
|
driver-class-name: com.mysql.cj.jdbc.Driver
|
|
|
url: jdbc:mysql://${var.mysql.ip}:${var.mysql.port}/${var.mysql.database}?useSSL=false&useUnicode=true&characterEncoding=UTF8&serverTimezone=GMT%2b8&allowPublicKeyRetrieval=true
|
|
|
username: ${var.mysql.user}
|
|
|
password: ${var.mysql.password}
|
|
|
hikari:
|
|
|
minimum-idle: 3 # 最小空闲连接数量
|
|
|
maximum-pool-size: 5 # 连接池最大连接数,默认是10
|
|
|
max-lifetime: 120000 # 此属性控制池中连接的最长生命周期,值0表示无限生命周期,默认1800000即30分钟
|
|
|
connection-test-query: SELECT 1
|
|
|
|
|
|
# paging configuration
|
|
|
pagehelper:
|
|
|
helperDialect: mysql
|
|
|
reasonable: true
|
|
|
supportMethodsArguments: true
|
|
|
params: count=countSql
|
|
|
# redis:
|
|
|
# host: ${var.redis.host}
|
|
|
# port: ${var.redis.port}
|
|
|
# password: ${var.redis.password}
|
|
|
# database: ${var.redis.database}
|
|
|
# lettuce:
|
|
|
# pool:
|
|
|
# max-active: 8
|
|
|
# max-idle: 8
|
|
|
# min-idle: 0
|
|
|
# max-wait: -1
|
|
|
# cluster:
|
|
|
# refresh:
|
|
|
# adaptive: true
|
|
|
# period: 20
|
|
|
# cache:
|
|
|
# type: redis
|
|
|
# redis:
|
|
|
# cache-null-values: false
|
|
|
# time-to-live: 600000
|
|
|
# use-key-prefix: true
|
|
|
|
|
|
|
|
|
# mybatis configuration
|
|
|
mybatis:
|
|
|
configuration:
|
|
|
# log-impl: org.apache.ibatis.logging.nologging.NoLoggingImpl
|
|
|
log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
|
|
|
jdbc-type-for-null: null
|
|
|
cache-enabled: true
|
|
|
map-underscore-to-camel-case: true
|
|
|
magic-api:
|
|
|
show-url: ${var.magic-api.show-url}
|
|
|
resource:
|
|
|
type: file # 此项默认值是file,可省略
|
|
|
location: ${var.magic-api.resource.location} # 部署
|
|
|
prefix: /sys_api # 前缀
|
|
|
|
|
|
project:
|
|
|
list:
|
|
|
pageSize:
|
|
|
default: 20
|
|
|
env: ${var.env}
|
|
|
api-package:
|
|
|
com.currency.appengine.controller.api
|
|
|
pswd-key:
|
|
|
front-aes-key:
|
|
|
reset-password-aes-key:
|
|
|
inviteuser-aes-key:
|
|
|
config:
|
|
|
tencent-cloud:
|
|
|
sms:
|
|
|
SecretId:
|
|
|
SecretKey:
|
|
|
SDKAppID:
|
|
|
signName:
|
|
|
logging:
|
|
|
level:
|
|
|
com:
|
|
|
currency:
|
|
|
appengine:
|
|
|
mapper: debug
|
|
|
fluent:
|
|
|
mapper: debug
|
|
|
config: classpath:logback-spring.xml
|
|
|
|