application-sys.yml 2.2 KB
Newer Older
ibizdev's avatar
ibizdev committed
1 2 3 4 5
#nacos配置中心、数据源
spring:
  cloud:
    nacos:
      discovery:
ibizdev's avatar
ibizdev committed
6
        server-addr: 172.16.240.110:8848
ibizdev's avatar
ibizdev committed
7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
  cache:
    redis:
      time-to-live: 3600
    caffeine:
      spec: initialCapacity=5,maximumSize=500,expireAfterWrite=3600s
  redis:
    host: 172.16.100.243
    port: 6379
    password:
    database: 0
    lettuce:
      pool:
        max-active: 32
        max-wait: 300ms
        max-idle: 16
        min-idle: 8
ibizdev's avatar
ibizdev committed
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
  datasource:
    username: BPMEHR
    password: 'sys'
    url: jdbc:oracle:thin:@172.16.170.71:1521:localorcl
    driver-class-name: oracle.jdbc.driver.OracleDriver
    filters: stat,wall,log4j2
    #配置初始化大小/最小/最大
    initial-size: 1
    min-idle: 1
    max-active: 20
    #获取连接等待超时时间
    max-wait: 60000
    #间隔多久进行一次检测,检测需要关闭的空闲连接
    time-between-eviction-runs-millis: 60000
    #一个连接在池中最小生存的时间
    min-evictable-idle-time-millis: 300000
    validation-query: SELECT 1 FROM DUAL
    test-while-idle: true
    test-on-borrow: false
    test-on-return: false
    #打开PSCache,并指定每个连接上PSCache的大小。oracle设为true,mysql设为false。分库分表较多推荐设置为false
    pool-prepared-statements: false
    max-pool-prepared-statement-per-connection-size: 20
    isSyncDBSchema: false
    defaultSchema: BPMEHR
    conf: classpath:liquibase/master.xml
ibizdev's avatar
ibizdev committed
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

#Mybatis-plus配置
mybatis-plus:
  global-config:
    refresh-mapper: true
    db-config:
      # 全局逻辑已删除默认值
      logic-delete-value: 0
      # 全局逻辑未删除默认值
      logic-not-delete-value: 1
  mapper-locations: classpath*:/mapper/*/*/*.xml
  configuration:
    jdbc-type-for-null: 'null'
    map-underscore-to-camel-case: false

#阿里sentinel熔断器
feign:
  sentinel:
    enabled: true

#Log配置
logging:
  level:
    cn.ibizlab.ehr: debug
    org.springframework.boot.autoconfigure: ERROR

#zuul网关超时设置
ribbon:
  ReadTimeout: 60000
  ConnectTimeout: 60000

#系统是否开启权限验证、是否开启缓存
ibizdev's avatar
ibizdev committed
81
#缓存级别:无缓存(无配置项)、一级缓存(L1)、二级缓存(L2)
ibizdev's avatar
ibizdev committed
82 83
ibiz:
  enablePermissionValid: false
ibizdev's avatar
ibizdev committed
84
  cacheLevel: L1 #(L1)一级本地caffeine缓存;(L2)caffeine缓存+Redis缓存
ibizdev's avatar
ibizdev committed
85