管道基础大数据平台系统开发-【后端】-Server
src/main/resources/application.yml
@@ -9,13 +9,31 @@
    name: land
spring:
  # redis
  redis:
    database: 0
    host: 127.0.0.1
    port: 6379
    password: rediS_5L#F4_Server
    timeout: 6000  # 连接超时时长(毫秒)
    pool:
      max-active: 1000  # 连接池最大连接数(使用负值表示没有限制)
      max-wait: -1      # 连接池最大阻塞等待时间(使用负值表示没有限制)
      max-idle: 10      # 连接池中的最大空闲连接
      min-idle: 5       # 连接池中的最小空闲连接
  # session
  session:
    timeout: PT20M # 20分钟
  # jackson
  jackson:
    time-zone: GMT+8
    date-format: yyyy-MM-dd HH:mm:ss
    locale: zh_CN
  # datasource
  datasource:
    name: prod
    # JDBC 基本配置
    url: jdbc:postgresql://192.168.20.39:5433/langfang?useAffectedRows=true
    url: jdbc:postgresql://127.0.0.1:5432/langfang?useAffectedRows=true
    username : postgres
    password: postgres
    driver-class-name: org.postgresql.Driver
@@ -30,7 +48,6 @@
    removeAbandonedTimeout: 180
    # 关闭 abanded 连接时输出错误日志
    logAbandoned: true
    # 配置连接池信息
    druid:
      ## 初始化大小,最小,最大
@@ -53,7 +70,7 @@
      test-on-borrow: false
      # 如果为true(默认false),当应用使用完连接,连接池回收连接的时候会判断该连接是否还可用
      test-on-return: false
      # servlet配置
      stat-view-servlet:
        # sql监控开关
        enabled: true
@@ -90,20 +107,12 @@
            log-slow-sql: true
            slow-sql-millis: 2000
    redis:
      host: 192.168.20.39
      port: 6379
      password: rediS_5L#F4_Server
      database: 1
    jackson:
      time-zone: GMT+8
      date-format: yyyy-MM-dd HH:mm:ss
# mybatis
mybatis:
  type-aliases-package: com.lf.server.mapper
  config-location: classpath:mybatis.xml
  mapper-locations: classpath:mapper/**/*.xml
# logging
logging:
  config: classpath:logback-spring.xml
@@ -126,4 +135,4 @@
    # 共享目录
    share: D:\LF\share
    # 临时目录
    temp: D:\LF\temp
    temp: D:\LF\temp