server:
|
port: ${PORT:8199}
|
host: ${HOST:localhost}
|
spring:
|
jpa:
|
properties:
|
hibernate:
|
dialect: org.hibernate.dialect.Oracle10gDialect
|
show-sql: ture
|
application:
|
name: lxzn-dev-admin
|
datasource:
|
url: jdbc:mysql://127.0.0.1:3316/lxzn_qlj_nc?serverTimezone=Asia/Shanghai&useSSL=false&allowPublicKeyRetrieval=true&tinyInt1isBit=false&nullCatalogMeansCurrent=true&characterEncoding=utf8
|
username: root
|
password: 123456
|
driver-class-name: com.mysql.cj.jdbc.Driver
|
initialSize: 5 #初始建立连接数量
|
minIdle: 5 #最小连接数量
|
maxActive: 20 #最大连接数量
|
maxWait: 10000 #获取连接最大等待时间,毫秒
|
timeBetweenEvictionRunsMillis: 60000 #配置间隔检测连接是否有效的时间(单位是毫秒)
|
minEvictableIdleTimeMillis: 300000 #连接在连接池的最小生存时间(毫秒)
|
validationQuery: SELECT 1
|
testWhileIdle: true
|
testOnBorrow: false #申请连接时检测连接是否有效
|
testOnReturn: false #归还连接时检测连接是否有效
|
poolPreparedStatements: true
|
#配置监控统计拦截的filters,去掉后监控界面sql无法统计,'wall'用于防火墙
|
filters: stat,wall,log4j
|
maxPoolPreparedStatementPerConnectionSize: 20
|
useGlobalDataSourceStat: true
|
#慢SQL记录 如果上面validationQuery: SELECT 1 没有配置,而你配置了就会报错null
|
connectionProperties: druid.stat.mergeSql=true;druid.stat.slowSqlMillis=500
|
redis:
|
host: ${REDIS_HOST:127.0.0.1}
|
port: ${REDIS_PORT:6379}
|
timeout: 5000s #连接超时 毫秒
|
password: '123456'
|
jedis:
|
pool:
|
maxActive: 3
|
maxIdle: 3
|
minIdle: 1
|
maxWait: -1 #连接池最大等行时间 -1没有限制
|
database: 5
|
activiti:
|
check-process-definitions: true
|
database-schema-update: true
|
db-history-used: true
|
history-level: full
|
async-executor-activate: false
|
servlet:
|
multipart:
|
#默认支持文件上传.
|
enabled: true
|
#支持文件写入磁盘.
|
file-size-threshold: 0
|
# 上传文件的临时目录
|
location:
|
# 最大支持文件大小
|
max-file-size: 1024MB
|
# 最大支持请求大小
|
max-request-size: 10240MB
|
mybatis-plus:
|
mapper-locations: classpath*:com.lxzn.ucenter.dao/*Mapper.xml,classpath*:com.lxzn.nc.dao/*Mapper.xml,classpath*:com.lxzn.base.dao/*Mapper.xml,classpath*:com.lxzn.activiti.dao/*Mapper.xml
|
configuration:
|
log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
|
global-config:
|
db-config:
|
#logic-delete-field: delete_flag #全局逻辑删除字段值 3.3.0开始支持,详情看下面。
|
logic-delete-value: 1 # 逻辑已删除值(默认为 1)
|
logic-not-delete-value: 0
|
id-type: id_worker_str
|
type-aliases-package: com.lxzn.framework.domain #实体类扫描路径
|
auth:
|
header: Authorization
|
cookieName: uid
|
tokenValiditySeconds: 7200 #token存储到redis的过期时间
|
clientId: XcWebApp
|
clientSecret: XcWebApp
|
cookieDomain: ${COOKIE_DOMAIN:localhost} #需要修改为现网服务器ip
|
cookieMaxAge: 7200
|
auth_server: http://${server.host}:${server.port}
|
#文件上传目录(注意Linux和Windows上的目录结构不同)
|
#file.uploadFolder=/root/uploadFiles/
|
fileHomePath: ${UPLOAD_FOLDER:d://lxzn_storage}
|
fileNCPath: ${NC_FOLDER:D://NC} # NC文件位置
|
ncSend:
|
addOrDelete: false #//是否删除seed 中的之前文件
|
#staticAccessPath: /api/file/** # 当前项目的静态资源访问配置在nginx中
|
activiti:
|
enable: false # true 启用审批 false 不启用审批
|
license:
|
tip_days: 5 #提前N天提醒用户序列号过期
|
path: D:/demo/license.txt #序列号读取地址
|
securedoc: #园区网与网闸通讯客户端
|
whether: true #是否启用 true / false
|
serverIp: 127.0.0.1 #数据服务端IP
|
serverPort: 8399 #数据服务端接口
|
username: admin #定义账号
|
pwd: 123 #定义密码
|
addressToken: /outer/appAuth #服务段获取token地址
|
addressUploadFile: /outer/fileUpload #服务段上传地址
|
localFilePath: D:/test/a/ #接收地址
|
servicePath: D:/test/b/ #发送地址
|
copyFilePath: D:/test/bak_a/ #文件备份地址
|
logIp: 127.0.0.1 #日志系统地址
|
logPort: 8888 #日志系统端口
|
serviceIntranet: #园区网与网闸通讯服务段
|
filePath: D:\\test\\b #集成客户端保存地址
|
newFilePath: D:/test/bak_sql/ #文件备份地址
|
appIdCheck: admin #token 用户名
|
passwordCheck: 123 #token 密码
|
logIp: 127.0.0.1
|
logPort: 8888
|
clientIp: 127.0.0.1 #客户端IP
|
fileNumPath: D:/demo/fileNum.txt #顺序号记录地址
|
dnc:
|
server:
|
url: http://localhost:8199
|
ncPdm:
|
file_path:
|
d://lxzn_storage/plm
|
fileOldNcPath: dnc//plm_bak #旧文件记录地址
|
webservice:
|
url: http://20.10.193.21:9308/webservice/mes/eqiupment/v1/mdc2mes.asmx?wsdl
|
namespace: http://equipment.com
|
method: NCProgram
|