lyh
2026-01-29 e530a7943898221ba3a32731bf1cab154c3a1ab9
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
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:
    driver-class-name: dm.jdbc.driver.DmDriver
    url: jdbc:dm://LOCALHOST:5236?zeroDateTimeBehavior=convertToNull&useUnicode=true&characterEncoding=utf-8&schema=LXZN_NC_ADMIN_430
    username: SYSDBA
    password: Lyh10225217
    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}
#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:
    d://lxzn_storage/plm
 product:
    root: 1580366134186582017
user:
  userIdYml: 1254966905669160962