管道基础大数据平台系统开发-【后端】-Server
1
13693261870
2023-05-06 24eb4c26f48f537354f37ebd86d2292acc0dfbf6
1
已修改1个文件
49 ■■■■■ 文件已修改
src/main/resources/application.yml 49 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/resources/application.yml
@@ -5,10 +5,10 @@
  port: 12316
  servlet:
    context-path: /server
  application:
    name: server
spring:
  application:
    name: server
  # redis
  redis:
    database: 0
@@ -16,11 +16,12 @@
    port: 6369
    password: rediS_5L#F4_Server
    timeout: 90000  # 连接超时时长(毫秒)
    pool:
      max-active: 1000  # 连接池最大连接数(使用负值表示没有限制)
      max-wait: -1      # 连接池最大阻塞等待时间(使用负值表示没有限制)
      max-idle: 10      # 连接池中的最大空闲连接
      min-idle: 5       # 连接池中的最小空闲连接
    lettuce:
      pool:
        max-active: 1000  # 连接池最大连接数(使用负值表示没有限制)
        max-wait: -1      # 连接池最大阻塞等待时间(使用负值表示没有限制)
        max-idle: 10      # 连接池中的最大空闲连接
        min-idle: 0       # 连接池中的最小空闲连接
  # session
  session:
    timeout: PT20M # 20分钟
@@ -48,12 +49,12 @@
    password: Postgres!_14_Lf
    #password: postgres
    driver-class-name: org.postgresql.Driver
    paltform: POSTGRESQL
    platform: POSTGRESQL
    type: com.alibaba.druid.pool.DruidDataSource
    # 配置监控统计拦截的filters,stat:监控统计、log4j:日志记录、wall:防御sql注入
    filters: stat,wall,log4j
    # 通过connectProperties属性来打开mergeSql功能;慢SQL记录
    connectionProperties: druid.stat.mergeSql=true;druid.stat.slowSqlMillis=500
    connectionProperties: druid.stat.mergeSql=true;druid.stat.slowSqlMillis=5000
    # 超过时间限制是否回收
    removeAbandoned: true
    # 超时时间;单位为秒。180秒=3分钟
@@ -65,9 +66,9 @@
      ## 初始化大小,最小,最大
      initial-size: 5
      min-idle: 5
      max-active: 50
      max-active: 100
      ## 配置获取连接等待超时的时间
      max-wait: 60000
      max-wait: 6000
      # 配置间隔多久才进行一次检测,检测需要关闭的空闲连接,单位是毫秒
      time-between-eviction-runs-millis: 60000
      # 配置一个连接在池中最小生存的时间,单位是毫秒
@@ -95,29 +96,8 @@
        #login-password: ad_!Druid!_min
        # 允许访问的地址,如果allow没有配置或者为空,则允许所有访问
        allow:
        # 拒绝访问的地址,deny优先于allow,如果在deny列表中,就算在allow列表中,也会被拒绝
        # 拒绝访问的地址,deny优先于allow
        deny:
        # 配置WebStatFilter,用于采集web关联监控的数据
        web-stat-filter:
          # web url监控
          enabled: true
          # session监控
          session-stat-enable: true
          # session的最大个数,默认100
          session-stat-max-count: 1000
          # 过滤所有url
          url-pattern: /*
          # 排除一些不必要的url
          exclusions: "*.js,*.gif,*.jpg,*.png,*.css,*.ico,/druid/*"
        # 自己配置监控统计拦截的filter
        filter:
          # 开启DruidDataSource的状态监控
          stat:
            enabled: true
            db-type: postgresql
            # 开启慢sql监控,超过2s 就认为是慢sql,记录到日志中
            log-slow-sql: true
            slow-sql-millis: 2000
# mybatis
#mybatis:
@@ -126,7 +106,8 @@
#  mapper-locations: classpath:mapper/**/*.xml
mybatis-plus:
  map-underscore-to-camel-case: true
  configuration:
    map-underscore-to-camel-case: true
  type-aliases-package: com.lf.server.entity
  config-location: classpath:mybatis.xml
  mapper-locations: classpath:mapper/**/*.xml