| | |
| | | uri-encoding: UTF-8 |
| | | max-connections: 1000 |
| | | port: 12316 |
| | | #servlet: |
| | | # context-path: /land |
| | | # servlet: |
| | | # context-path: /land |
| | | application: |
| | | name: land |
| | | |
| | | spring: |
| | | session: |
| | | timeout: PT20M # 20分钟 |
| | | |
| | | datasource: |
| | | name: prod |
| | | # JDBC 基本配置 |
| | | url: jdbc:postgresql://127.0.0.1:5432/langfang |
| | | username : postgres |
| | | password: postgres |
| | | url : jdbc:postgresql://192.168.20.39:5433/langfang |
| | | driver-class-name: org.postgresql.Driver |
| | | type: com.alibaba.druid.pool.DruidDataSource # 自定义数据源 |
| | | #druid 数据源专有配置 |
| | | initialSize: 5 |
| | | minIdle: 5 |
| | | maxActive: 20 |
| | | maxWait: 60000 |
| | | timeBetweenEvictionRunsMillis: 60000 |
| | | minEvictableIdleTimeMillis: 300000 |
| | | validationQuery: SELECT 1 FROM now() |
| | | testWhileIdle: true |
| | | testOnBorrow: false |
| | | testOnReturn: false |
| | | poolPreparedStatements: true |
| | | #配置监控统计拦截的filters,stat:监控统计、log4j:日志记录、wall:防御sql注入 |
| | | #如果允许时报错 java.lang.ClassNotFoundException: org.apache.log4j.Priority |
| | | type: com.alibaba.druid.pool.DruidDataSource |
| | | # 配置监控统计拦截的filters,stat:监控统计、log4j:日志记录、wall:防御sql注入 |
| | | filters: stat,wall,log4j |
| | | maxPoolPreparedStatementPerConnectionSize: 20 |
| | | useGlobalDataSourceStat: true |
| | | # 通过connectProperties属性来打开mergeSql功能;慢SQL记录 |
| | | connectionProperties: druid.stat.mergeSql=true;druid.stat.slowSqlMillis=500 |
| | | # 超过时间限制是否回收 |
| | | removeAbandoned: true |
| | | # 超时时间;单位为秒。180秒=3分钟 |
| | | removeAbandonedTimeout: 180 |
| | | # 关闭 abanded 连接时输出错误日志 |
| | | logAbandoned: true |
| | | |
| | | # 配置连接池信息 |
| | | druid: |
| | | ## 初始化大小,最小,最大 |
| | | initial-size: 5 |
| | | min-idle: 5 |
| | | max-active: 50 |
| | | ## 配置获取连接等待超时的时间 |
| | | max-wait: 60000 |
| | | # 配置间隔多久才进行一次检测,检测需要关闭的空闲连接,单位是毫秒 |
| | | time-between-eviction-runs-millis: 60000 |
| | | # 配置一个连接在池中最小生存的时间,单位是毫秒 |
| | | min-evictable-idle-time-millis: 300000 |
| | | max-pool-prepared-statement-per-connection-size: 50 |
| | | pool-prepared-statements: true |
| | | # 用来测试连接是否可用的SQL语句 |
| | | validation-query: SELECT 1 |
| | | # 应用向连接池申请连接,并且testOnBorrow为false时,连接池将会判断连接是否处于空闲状态,如果是,则验证这条连接是否可用 |
| | | test-while-idle: true |
| | | # 如果为true,默认是false,应用向连接池申请连接时,连接池会判断这条连接是否是可用的 |
| | | test-on-borrow: false |
| | | # 如果为true(默认false),当应用使用完连接,连接池回收连接的时候会判断该连接是否还可用 |
| | | test-on-return: false |
| | | |
| | | stat-view-servlet: |
| | | # sql监控开关 |
| | | enabled: true |
| | | # 访问内置监控页面的路径,内置监控页面的首页是/druid/index.html |
| | | url-pattern: /druid/* |
| | | # 是否允许清空统计数据,重新计算 true:允许 false:不允许 |
| | | reset-enable: false |
| | | # 配置监控页面访问账号密码 |
| | | login-username: druid_mg |
| | | login-password: ad_DruId!_min |
| | | # 允许访问的地址,如果allow没有配置或者为空,则允许所有访问 |
| | | allow: 127.0.0.1 |
| | | # 拒绝访问的地址,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 |
| | | |
| | | redis: |
| | | host: 192.168.20.39 |
| | | host: 127.0.0.1 |
| | | port: 6379 |
| | | password: |
| | | database: 1 |
| | |
| | | |
| | | # 系统配置 |
| | | sys: |
| | | path: E:\\Test\\LF\\ |
| | | path: |
| | | # 导入目录 |
| | | import: D:\LF\import |
| | | # 出图目录 |
| | | export: D:\LF\export |
| | | # 上传目录 |
| | | upload: D:\LF\upload |
| | | # 共享目录 |
| | | share: D:\LF\share |
| | | # 临时目录 |
| | | temp: D:\LF\temp |