gongbaoxiong
4 months ago
4 changed files with 185 additions and 7 deletions
@ -0,0 +1,182 @@ |
|||||
|
server: |
||||
|
port: 8017 |
||||
|
#配置数据源 |
||||
|
spring: |
||||
|
autoconfigure: |
||||
|
exclude: com.alibaba.druid.spring.boot.autoconfigure.DruidDataSourceAutoConfigure |
||||
|
datasource: |
||||
|
dynamic: |
||||
|
primary: mysql |
||||
|
datasource: |
||||
|
mysql: |
||||
|
driver-class-name: net.sf.log4jdbc.sql.jdbcapi.DriverSpy |
||||
|
url: jdbc:log4jdbc:mysql://${DB_HOST:127.0.0.1}:${DB_PORT:3306}/${DB_NAME:nl_sq_wms}?serverTimezone=Asia/Shanghai&characterEncoding=utf8&useSSL=false&useOldAliasMetadataBehavior=true |
||||
|
username: ${DB_USER:root} |
||||
|
password: ${DB_PWD:123456} |
||||
|
type: com.alibaba.druid.pool.DruidDataSource |
||||
|
mysql_srm: |
||||
|
# driver-class-name: net.sf.log4jdbc.sql.jdbcapi.DriverSpy |
||||
|
# url: jdbc:log4jdbc:mysql://${DB_HOST:127.0.0.1}:${DB_PORT:3306}/${DB_NAME:nl_sq_wms}?serverTimezone=Asia/Shanghai&characterEncoding=utf8&useSSL=false&useOldAliasMetadataBehavior=true |
||||
|
# username: ${DB_USER:wms_third} |
||||
|
# password: ${DB_PWD:NOBLElift@!#wms} |
||||
|
# type: com.alibaba.druid.pool.DruidDataSource |
||||
|
driver-class-name: net.sf.log4jdbc.sql.jdbcapi.DriverSpy |
||||
|
url: jdbc:log4jdbc:mysql://${DB_HOST:10.10.188.32}:${DB_PORT:3306}/${DB_NAME:nuoli_v1.0}?serverTimezone=Asia/Shanghai&characterEncoding=utf8&useSSL=false&useOldAliasMetadataBehavior=true |
||||
|
username: ${DB_USER:wms_third} |
||||
|
password: ${DB_PWD:NOBLElift@#wms} |
||||
|
type: com.alibaba.druid.pool.DruidDataSource |
||||
|
oracle_eas: |
||||
|
driver-class-name: oracle.jdbc.OracleDriver |
||||
|
url: jdbc:oracle:thin:@192.168.100.98:1521:orcl |
||||
|
username: ${DB_USER:stuser} |
||||
|
password: ${DB_PWD:stuser123} |
||||
|
type: com.alibaba.druid.pool.DruidDataSource |
||||
|
sqlserver: |
||||
|
driver-class-name: com.microsoft.sqlserver.jdbc.SQLServerDriver |
||||
|
url: jdbc:sqlserver://10.93.41.2\WINCC;DatabaseName=马钢_RH |
||||
|
username: ${DB_USER:sa} |
||||
|
password: ${DB_PWD:123} |
||||
|
type: com.alibaba.druid.pool.DruidDataSource |
||||
|
redis: |
||||
|
#数据库索引 |
||||
|
host: ${REDIS_HOST:127.0.0.1} |
||||
|
port: ${REDIS_PORT:6379} |
||||
|
password: ${REDIS_PWD:} |
||||
|
redisson: |
||||
|
config: | |
||||
|
threads: 4 |
||||
|
nettyThreads: 4 |
||||
|
singleServerConfig: |
||||
|
database: 15 |
||||
|
connectionMinimumIdleSize: 8 |
||||
|
connectionPoolSize: 8 |
||||
|
address: redis://127.0.0.1:6379 |
||||
|
idleConnectionTimeout: 10000 |
||||
|
timeout: 3000 |
||||
|
# 登录相关配置 |
||||
|
login: |
||||
|
# 登录缓存 |
||||
|
cache-enable: true |
||||
|
# 是否限制单用户登录 |
||||
|
single-login: false |
||||
|
# 验证码 |
||||
|
login-code: |
||||
|
# 验证码类型配置 查看 LoginProperties 类 |
||||
|
code-type: arithmetic |
||||
|
# 登录图形验证码有效时间/分钟 |
||||
|
expiration: 2 |
||||
|
# 验证码高度 |
||||
|
width: 111 |
||||
|
# 验证码宽度 |
||||
|
heigth: 36 |
||||
|
# 内容长度 |
||||
|
length: 2 |
||||
|
# 字体名称,为空则使用默认字体,如遇到线上乱码,设置其他字体即可 |
||||
|
font-name: |
||||
|
# 字体大小 |
||||
|
font-size: 25 |
||||
|
|
||||
|
#jwt |
||||
|
jwt: |
||||
|
header: Authorization |
||||
|
# 令牌前缀 |
||||
|
token-start-with: Bearer |
||||
|
# 必须使用最少88位的Base64对该令牌进行编码 |
||||
|
base64-secret: ZmQ0ZGI5NjQ0MDQwY2I4MjMxY2Y3ZmI3MjdhN2ZmMjNhODViOTg1ZGE0NTBjMGM4NDA5NzYxMjdjOWMwYWRmZTBlZjlhNGY3ZTg4Y2U3YTE1ODVkZDU5Y2Y3OGYwZWE1NzUzNWQ2YjFjZDc0NGMxZWU2MmQ3MjY1NzJmNTE0MzI= |
||||
|
# 令牌过期时间 此处单位/毫秒 ,默认2小时,可在此网站生成 https://www.convertworld.com/zh-hans/time/milliseconds.html |
||||
|
token-validity-in-seconds: 7200000 |
||||
|
# 在线用户key |
||||
|
online-key: online-token- |
||||
|
# 验证码 |
||||
|
code-key: code-key- |
||||
|
# token 续期检查时间范围(默认30分钟,单位默认毫秒),在token即将过期的一段时间内用户操作了,则给用户的token续期 |
||||
|
detect: 1800000 |
||||
|
# 续期时间范围,默认 1小时,这里单位毫秒 |
||||
|
renew: 3600000 |
||||
|
|
||||
|
# IP 本地解析 |
||||
|
ip: |
||||
|
local-parsing: true |
||||
|
|
||||
|
#是否允许生成代码,生产环境设置为false |
||||
|
generator: |
||||
|
enabled: false |
||||
|
|
||||
|
#如果生产环境要开启swagger,需要配置请求地址 |
||||
|
#springfox: |
||||
|
# documentation: |
||||
|
# swagger: |
||||
|
# v2: |
||||
|
# host: # 接口域名或外网ip |
||||
|
|
||||
|
#是否开启 swagger-ui |
||||
|
swagger: |
||||
|
enabled: false |
||||
|
|
||||
|
# 文件存储路径 |
||||
|
file: |
||||
|
mac: |
||||
|
path: ~/file/ |
||||
|
avatar: ~/avatar/ |
||||
|
linux: |
||||
|
path: /home/eladmin/file/ |
||||
|
avatar: /home/eladmin/avatar/ |
||||
|
windows: |
||||
|
path: C:\eladmin\file\ |
||||
|
avatar: C:\eladmin\avatar\ |
||||
|
# 文件大小 /M |
||||
|
maxSize: 100 |
||||
|
avatarMaxSize: 5 |
||||
|
logging: |
||||
|
file: |
||||
|
path: /app/jar/logs |
||||
|
config: classpath:logback-spring.xml |
||||
|
|
||||
|
# Sa-Token配置 |
||||
|
sa-token: |
||||
|
# token 名称 (同时也是cookie名称) |
||||
|
token-name: Authorization |
||||
|
# token 有效期,单位s 默认30天, -1代表永不过期 |
||||
|
timeout: 2592000 |
||||
|
# token 临时有效期 (指定时间内无操作就视为token过期) 单位: 秒 |
||||
|
activity-timeout: -1 |
||||
|
# 是否允许同一账号并发登录 (为true时允许一起登录, 为false时新登录挤掉旧登录) |
||||
|
is-concurrent: true |
||||
|
# 在多人登录同一账号时,是否共用一个token (为true时所有登录共用一个token, 为false时每次登录新建一个token) |
||||
|
is-share: false |
||||
|
# token风格 |
||||
|
token-style: random-128 |
||||
|
# 是否输出操作日志 |
||||
|
is-log: false |
||||
|
jwt-secret-key: opsjajisdnnca0sdkksdfaaasdfwwq |
||||
|
# token 前缀 |
||||
|
token-prefix: Bearer |
||||
|
sso: |
||||
|
# Ticket有效期 (单位: 秒),默认五分钟 |
||||
|
ticket-timeout: 300 |
||||
|
# 所有允许的授权回调地址 |
||||
|
allow-url: "*" |
||||
|
# 是否打开单点注销功能 |
||||
|
is-slo: true |
||||
|
|
||||
|
# ------- SSO-模式三相关配置 (下面的配置在SSO模式三并且 is-slo=true 时打开) |
||||
|
# 是否打开模式三 |
||||
|
isHttp: true |
||||
|
# 接口调用秘钥(用于SSO模式三的单点注销功能) |
||||
|
secretkey: kQwIOrYvnXmSDkwEiFngrKidMcdrgKor |
||||
|
# ---- 除了以上配置项,你还需要为 Sa-Token 配置http请求处理器(文档有步骤说明) |
||||
|
is-read-cookie: true |
||||
|
is-print: false |
||||
|
# 未登录 StpUtil.getTokenSession() 设置值,获取值 @SaIgnore 得忽略接口 |
||||
|
token-session-check-login: false |
||||
|
alone-redis: |
||||
|
# Redis数据库索引(默认为0) |
||||
|
database: 9 |
||||
|
# Redis服务器地址 |
||||
|
host: 127.0.0.1 |
||||
|
# Redis服务器连接端口 |
||||
|
port: 6379 |
||||
|
# Redis服务器连接密码(默认为空) |
||||
|
password: |
||||
|
# 连接超时时间 |
||||
|
timeout: 10s |
Loading…
Reference in new issue