java-mall/mall-admin/src/main/resources/bootstrap-uat.yml

85 lines
2.4 KiB
YAML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

spring:
resources: # 配置静态文件路径
static-locations: file:/opt/apps/mall/public/static/
mvc:
static-path-pattern: /admin/static/**
datasource:
url: jdbc:mysql://@mysql.host@:@mysql.port@/@mysql.db@?useUnicode=true&characterEncoding=utf-8&serverTimezone=Asia/Shanghai&&zeroDateTimeBehavior=convertToNull
username: @mysql.user@
password: @mysql.pwd@
driver-class-name: @mysql.driver@
type: com.alibaba.druid.pool.DruidDataSource
druid:
async-init: true
initial-size: 5
max-active: 20
min-idle: 5
max-wait: 60000
validationQuery: SELECT 1
test-while-idle: true
test-on-borrow: false
test-on-return: false
pool-prepared-statements: true
max-pool-prepared-statement-per-connection-size: 20
filters: stat,wall,slf4j
filter:
stat:
enabled: true
db-type: mysql
log-slow-sql: true
slow-sql-millis: 10
aop-patterns: com.suisung.mall.common.service.impl.*,com.suisung.mall.core.web.service.impl.*,com.suisung.mall.admin.*
redis:
# host: 127.0.0.1 # Redis服务器地址
host: @redis.host@ # Redis服务器地址
database: @redis.database@ # Redis数据库索引默认为0
port: @redis.port@ # Redis服务器连接端口
password: @redis.password@ # Redis服务器连接密码默认为空
timeout: 3000ms # 连接超时时间(毫秒)
lettuce:
pool:
max-active: 64
max-wait: -1ms
max-idle: 64
min-idle: 0
cloud:
nacos:
discovery:
server-addr: @nacos.server.address@
config:
server-addr: @nacos.server.address@
file-extension: yaml
sentinel:
transport:
dashboard: @sentinel.transport.dashboard@
eager: true
upload: # 图片上传配置
filepath: @upload.filepath@
#upload: # 图片上传配置
# ip: http://127.0.0.1:8201
# filepath: /Users/antusheng/Downloads/admin/shop/static/image/ # 本地环境静态文件路径
# 控制台日志信息
logging:
level:
com:
suisung:
mall:
admin:
mapper: debug
sun:
mail: error
baomidou: error
alibaba:
cloud:
seata: error
nacos:
client:
naming: error
config: error
netflix: error
org: error
io: error
reactor: error
springfox: error
logstash:
host: @logstash.host@