管道基础大数据平台系统开发-【后端】-Server
1
13693261870
2022-09-28 bf06b8dea3474f7975349570a8ed4f35f582367c
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
server:
  tomcat:
    uri-encoding: UTF-8
  port: 12316
  #servlet:
  #  context-path: /land
  application:
    name: land
 
spring:
  datasource:
    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
    filters: stat,wall,log4j
    maxPoolPreparedStatementPerConnectionSize: 20
    useGlobalDataSourceStat: true
    connectionProperties: druid.stat.mergeSql=true;druid.stat.slowSqlMillis=500
    redis:
      host: 192.168.20.39
      port: 6379
      password:
      database: 1
    jackson:
      time-zone: GMT+8
      date-format: yyyy-MM-dd HH:mm:ss
 
mybatis:
  type-aliases-package: com.lf.server.mapper
  config-location: classpath:mybatis.xml
  mapper-locations: classpath:mapper/**/*.xml
 
logging:
  config: classpath:logback-spring.xml
 
# RestTemplate config
remote:
  maxTotalConnect: 0
  maxConnectPerRoute: 1000
  connectTimeout: 5000
  readTimeout: 30000
 
# 系统配置
sys:
  path: E:\\Test\\LF\\