server:
|
port: ${PORT:8199}
|
host: ${HOST:localhost}
|
spring:
|
application:
|
name: lxzn-dev-admin
|
jpa: #国产化需要
|
properties:
|
hibernate:
|
dialect: org.hibernate.dialect.Oracle10gDialect
|
show-sql: ture
|
datasource:
|
url: ${MSSQL_URL:jdbc:sqlserver://127.0.0.1:1433;databaseName=lxzn_nc_430}
|
username: sa
|
password:
|
type: com.alibaba.druid.pool.DruidDataSource
|
driverClassName: com.microsoft.sqlserver.jdbc.SQLServerDriver
|
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: 10000ms #连接超时 毫秒
|
password: "123456"
|
jedis:
|
pool:
|
maxActive: 3
|
maxIdle: 3
|
minIdle: 1
|
maxWait: -1ms #连接池最大等行时间 -1没有限制
|
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}
|
cookieMaxAge: 7200
|
auth_server: http://${server.host}:${server.port}
|
#文件上传目录(注意Linux和Windows上的目录结构不同)
|
#file.uploadFolder=/root/uploadFiles/
|
fileHomePath: ${UPLOAD_FOLDER:d://lxzn_storage}
|
fileNcGateway: ${UPLOAD_FOLDER:d://abc}
|
#staticAccessPath: /api/file/** # 当前项目的静态资源访问配置在nginx中
|
activiti:
|
enable: true # true 启用审批 false 不启用审批
|
securedoc:
|
serverIp: 127.0.0.1
|
serverPort: 8199
|
identifier: testUser
|
binFileLabel: <secAttrib><secrecy>5</secrecy></secAttrib>
|
editFileLabel: <secAttrib><secrecy>5</secrecy><status>2</status></secAttrib>
|
webservice:
|
mes:
|
uri:
|
pdm:
|
uri: http://192.168.2.234:8081/YZHTCNCProgram/PLMServices?wsdl
|
ncPdm:
|
file_path:
|
dnc//lxzn_storage/plm
|
product:
|
root: 1583346581232537602
|
user:
|
userIdYml: 1583346581232537602
|