Files
orange-admin/orange-demo-multi-uaa/orange-demo-multi-service-uaa/zz-resource/config-data/upms-dev.yaml
2021-12-21 03:03:53 +00:00

118 lines
4.1 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.

logging:
level:
# 这里设置的日志级别优先于log4j2.xml文件Loggers中的日志级别。
com.orangeforms: info
server:
port: 9000
application:
# 缺省的文件上传根目录。
uploadFileBaseDir: ./zz-resource/upload-files/upms
# 初始化密码。
defaultUserPassword: 123456
# 每个微服务的url目录上下文如(/admin/upms)通常和网关的路由path一致。
serviceContextPath: /admin/upms
# 是否忽略远程调用中出现的任何错误,包括逻辑异常和系统异常。
# 通常在调试和测试阶段设置为false以便及时发现问题。
ignoreRpcError: false
# Session的数据权限信息在Redis中的过期时间(秒)。
dataPermExpiredSeconds: 86460
uaa:
# uaa的授权服务的主机名。
uaaBaseUri: http://localhost:9999/
# uaa登录成功后的回调地址需要和UAA授权服务器中注册的完全匹配。
loginUaaRedirectUri: http://localhost:8085
# uaa登出成功后的回调地址。
logoutUaaRedirectUri: http://localhost:8085/#/login?supportUaa=1
# 应用Id。需要和UAA授权服务器中注册的完全匹配。
clientId: app
# 应用密码。需要和UAA授权服务器中注册的完全匹配。
clientSecret: app
datafilter:
tenant:
enabled: false
dataperm:
enabled: true
# 在拼接数据权限过滤的SQL时我们会用到sys_dept_relation表该表的前缀由此配置项指定。
# 如果没有前缀,请使用 "" 。
deptRelationTablePrefix: zz_
sequence:
# 是否使用基于美团Leaf的分布式Id生成器。
advanceIdGenerator: true
# 多个zk服务之间逗号分隔。
zkAddress: localhost:2181
# 与本机的ip一起构成zk中标识不同服务实例的key值。
idPort: 19000
# zk中生成WorkNode的路径。不同的业务可以使用不同的路径以免冲突。
zkPath: com/orangeforms
common-log:
# 操作日志配置对应配置文件common-log/OperationLogProperties.java
operation-log:
enabled: true
kafkaTopic: SysOperationLog
mybatis-plus:
mapper-locations: classpath:com/orangeforms/*/dao/mapper/*Mapper.xml,com/orangeforms/common/datasync/dao/mapper/*Mapper.xml,com/orangeforms/common/log/dao/mapper/*Mapper.xml
type-aliases-package: com.orangeforms.*.model,com.orangeforms.common.datasync.model,com.orangeforms.common.log.model
global-config:
db-config:
logic-delete-value: -1
logic-not-delete-value: 1
pagehelper:
helperDialect: mysql
reasonable: true
supportMethodsArguments: false
params: count=countSql
spring:
kafka:
bootstrap-servers: localhost:9092
producer:
batch-size: 16
retries: 0
buffer-memory: 33554432
key-serializer: org.apache.kafka.common.serialization.StringSerializer
value-serializer: org.apache.kafka.common.serialization.StringSerializer
datasource:
type: com.alibaba.druid.pool.DruidDataSource
druid:
main:
url: jdbc:mysql://localhost:3306/zzdemo-multi?characterEncoding=utf8&useSSL=true&serverTimezone=Asia/Shanghai
username: root
password: 123456
operation-log:
url: jdbc:mysql://localhost:3306/zzdemo-multi?characterEncoding=utf8&useSSL=true&serverTimezone=Asia/Shanghai
username: root
password: 123456
driver-class-name: com.mysql.cj.jdbc.Driver
name: upms
initialSize: 10
minIdle: 10
maxActive: 50
maxWait: 60000
timeBetweenEvictionRunsMillis: 60000
minEvictableIdleTimeMillis: 300000
poolPreparedStatements: true
maxPoolPreparedStatementPerConnectionSize: 20
maxOpenPreparedStatements: 20
validationQuery: SELECT 'x'
testWhileIdle: true
testOnBorrow: false
testOnReturn: false
connectionProperties: druid.stat.mergeSql=true;druid.stat.slowSqlMillis=5000
filters: stat,wall
useGlobalDataSourceStat: true
web-stat-filter:
enabled: true
url-pattern: "/*"
exclusions: "*.js,*.gif,*.jpg,*.bmp,*.png,*.css,*.ico,/druid/*,/actuator/*"
stat-view-servlet:
enabled: true
urlPattern: /druid/*
resetEnable: true