META-INF.configuration.yml Maven / Gradle / Ivy
spring:
web:
converters:
fast-json-enabled: true
admin:
message:
access-exception: 请先登录
access-invalid: 账号在其它地方登录
access-expired: 登录信息已失效
authorization-exception: 没有当前资源的访问权限
account-wrong: 账号有误
account-exist: 账号已经存在
account-forbidden: 账号被禁用
account-password-wrong: 账号密码错误
account-password-require: 账号登录密码不能为空
role-exist: 角色名已经存在
interceptor:
exclude-access-paths: # 配置不需要accessToken 验证的链接 默认 /api/admin/login 不需要 或者使用EscapeAccess 注解方法
- /api/admin/login
include-access-paths: # 配置其它需要accessToken验证的链接 默认 /api/admin/** 下全部需要
- /api/admin/**
include-authority-paths: # 配置其它需要authority 验证的链接 默认 /api/admin/** 下全部需要
- /api/custome/**
exclude-authority-paths:
- /api/custome/list/** # 配置不需要权限验证的链接
system:
super-admin-id: 1 # 超级管理员id
super-admin-username: admin # 超级管理员username
super-admin-password: admin@123456 # 超级管理员password
super-admin-name: 超级管理员 # 超级管理员显示名称
snowflake:
cache-key: SNOWFLAKE_ID_DATACENTER_ # 缓存key
data-center-id: 0 # 数据中心id 0~31
twepoch-timestamp: 1590940800000 # 起始时间 不要超过当前时间
datasource:
driverClassName: com.mysql.cj.jdbc.Driver
jdbc-url: jdbc:mysql://ip:port/DB_NAME?useUnicode=true&characterEncoding=UTF-8&useSSL=false&allowMultiQueries=true&&serverTimezone=Asia/Shanghai
username: username
password: password
initialSize: 5
maxActive: 50
minIdle: 5
maxWait: 60000
timeBetweenEvictionRunsMillis: 60000
minEvictableIdleTimeMillis: 300000
validationQuery: SELECT 1
testWhileIdle: false
testOnBorrow: true
testOnReturn: false
poolPreparedStatements: true
maxPoolPreparedStatementPerConnectionSize: 20
removeAbandoned: true
removeAbandonedTimeout: 1800
filters: stat
redis:
enabled: true # 是否启用redis default true
standalone: true # 是否是单机模式 default true 使用JedisPool 否则使用JedisCluster
host: host
port: port
password: auth
database: 0
timeout: 20000
cluster: # standalone = false 时使用此参数设置cluster 参数
clusterNodes:
- 127.0.0.1:6389
- 127.0.0.1:6377
connectionTimeout: 30000
socketTimeout: 30000
maxAttempts: 3
clusterName: redis-cluster
password: password
pool:
maxIdle: 100
maxTotal: 200
minIdle: 50
maxWaitMillis: 1000
minEvictableIdleTimeMillis: 30000
numTestsPerEvictionRun: 1024
timeBetweenEvictionRunsMillis: 30000
testOnBorrow: true
testWhileIdle: true
testOnCreate: false
© 2015 - 2025 Weber Informatics LLC | Privacy Policy