月球大数据地理空间分析展示平台-【后端】-月球后台服务
13693261870
2024-03-04 7c52b18f9ca518424e1bae4451b553daca882ed5
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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
server:
  tomcat:
    uri-encoding: UTF-8
    max-connections: 5000
    max-http-form-post-size: 50MB
    threads:
      max: 2000
  port: 9000
  servlet:
    context-path: /MoonServer
 
spring:
  application:
    name: MoonServer
  # redis
  redis:
    database: 1
    #host: 192.168.20.83
    host: 127.0.0.1
    port: 6369
    password: rediS_5L#F4_Server
    timeout: 10000  # 连接超时时长(毫秒)
    lettuce:
      pool:
        max-active: 1000  # 连接池最大连接数(使用负值表示没有限制)
        max-wait: -1      # 连接池最大阻塞等待时间(使用负值表示没有限制)
        max-idle: 10      # 连接池中的最大空闲连接
        min-idle: 5       # 连接池中的最小空闲连接
  # session
  session:
    timeout: PT20M # 20分钟
  # 设置上传文件大小
  servlet:
    multipart:
      enabled: true
      max-file-size: 204800MB
      max-request-size: 1048576MB
  # jackson
  jackson:
    time-zone: GMT+8
    date-format: yyyy-MM-dd HH:mm:ss
    locale: zh_CN
  thymeleaf:
    cache: false
  # datasource
  datasource:
    name: prod
    # JDBC 基本配置 &currentSchema=public
    #url: jdbc:postgresql://127.0.0.1:5433/moon?useAffectedRows=true
    url: jdbc:postgresql://192.168.11.204:5433/moon?useAffectedRows=true
    #url: jdbc:postgresql://103.85.165.99:25432/moon?useAffectedRows=true
    username: postgres
    #password: postgres
    password: Postgres!_14_moon
    driver-class-name: org.postgresql.Driver
    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=5000
    # 超过时间限制是否回收
    removeAbandoned: true
    # 超时时间;单位为秒。180秒=3分钟
    removeAbandonedTimeout: 180
    # 关闭 abanded 连接时输出错误日志
    logAbandoned: true
    # 配置连接池信息
    druid:
      ## 初始化大小,最小,最大
      initial-size: 5
      min-idle: 5
      max-active: 100
      ## 配置获取连接等待超时的时间,ms
      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
      # servlet配置
      stat-view-servlet:
        # sql监控开关
        enabled: true
        # 访问内置监控页面的路径,内置监控页面的首页是/druid/index.html
        url-pattern: /druid/*
        # 是否允许清空统计数据,重新计算  true:允许  false:不允许
        reset-enable: false
        # 配置监控页面访问账号密码
        #login-username: admin
        #login-password: ad_!Druid!_min
        # 允许访问的地址,如果allow没有配置或者为空,则允许所有访问
        allow:
        # 拒绝访问的地址,deny优先于allow
        deny:
 
# mybatis
mybatis-plus:
  type-aliases-package: com.moon.server.entity
  config-location: classpath:mybatis.xml
  mapper-locations: classpath:mapper/**/*.xml
 
# logging
logging:
  config: classpath:logback-spring.xml
 
# restTemplate config
remote:
  maxTotalConnect: 0
  maxConnectPerRoute: 1000
  connectTimeout: 30000
  readTimeout: -1
 
# http://172.16.2.10:50001
shujian:
  ak: ak=mf72ff9295c740ec0f37e61433e8a3ad8d
  url1: http://219.153.49.10:7511
  url5: http://219.153.49.10:7511
  path: share/YQData/upload/
  domName: 自动发布影像图层组
  demName: 自动发布高程图层组
 
# 系统配置
sys:
  # 管理员ID
  admin: admin
  # IIS的主机地址
  iisHost: 127.0.0.1
  # FME服务地址
  fmeUrl: http://127.0.0.1:88/
  # 出图服务
  exportServer: http://127.0.0.1/MoonExp
  # Gdal驱动目录
  gdal_path: E:\terrait\TianJin\Zip\release-1928-x64-dev\release-1928-x64\bin
  # 瓦片地址
  tile_path: E:\data\99.public\soft\LFData\2d\tiles
  path:
    # 下载目录
    download: D:\Moon\download
    # 上传目录
    upload: D:\Moon\upload
    # 临时目录
    temp: D:\Moon\temp
    # 坡度分析
    slopFile: D:\Moon\dtm\dtm100m_slope_moon2000.tif
  # 上传附件表
  attachTabs: