2021-03-19 09:35:26 +08:00
|
|
|
|
server:
|
2021-05-06 17:56:48 +08:00
|
|
|
|
port: 7004
|
|
|
|
|
url: http://106.12.218.237:8001/pollutant
|
2021-03-25 00:10:47 +08:00
|
|
|
|
title: 污染物上报系统
|
2021-03-19 09:35:26 +08:00
|
|
|
|
servlet:
|
|
|
|
|
context-path: /pollutant
|
|
|
|
|
|
|
|
|
|
spring:
|
|
|
|
|
thymeleaf:
|
|
|
|
|
prefix: classpath:/templates/
|
|
|
|
|
suffix: .html
|
|
|
|
|
mode: HTML5
|
|
|
|
|
encoding: UTF-8
|
|
|
|
|
cache: false
|
|
|
|
|
main:
|
|
|
|
|
allow-bean-definition-overriding: true
|
|
|
|
|
application:
|
|
|
|
|
name: sso-server
|
|
|
|
|
servlet:
|
|
|
|
|
multipart:
|
|
|
|
|
max-file-size: 1GB
|
|
|
|
|
max-request-size: 1GB
|
|
|
|
|
datasource:
|
|
|
|
|
druid:
|
2021-05-06 17:56:48 +08:00
|
|
|
|
url: jdbc:mysql://localhost:8668/db_pollutant_data?useUnicode=true&characterEncoding=utf8&characterSetResults=utf8&autoReconnect=true&failOverReadOnly=false&useSSL=false&serverTimezone=UTC
|
2021-03-19 09:35:26 +08:00
|
|
|
|
db-type: mysql
|
2021-03-25 00:10:47 +08:00
|
|
|
|
driver-class-name: com.mysql.jdbc.Driver
|
2021-03-19 09:35:26 +08:00
|
|
|
|
username: root
|
2021-05-06 17:56:48 +08:00
|
|
|
|
password: TSkj@0471.123
|
2021-03-19 09:35:26 +08:00
|
|
|
|
initial-size: 2
|
|
|
|
|
min-idle: 2
|
|
|
|
|
max-active: 10
|
|
|
|
|
# 配置获取连接等待超时的时间
|
|
|
|
|
max-wait: 60000
|
|
|
|
|
# 配置间隔多久才进行一次检测,检测需要关闭的空闲连接,单位是毫秒
|
|
|
|
|
time-between-eviction-runs-millis: 60000
|
|
|
|
|
# 配置一个连接在池中最小生存的时间,单位是毫秒
|
|
|
|
|
min-evictable-idle-time-millis: 300000
|
|
|
|
|
validation-query: SELECT 1 FROM DUAL
|
|
|
|
|
test-while-idle: true
|
|
|
|
|
test-on-borrow: false
|
|
|
|
|
test-on-return: false
|
|
|
|
|
# 打开PSCache,并且指定每个连接上PSCache的大小
|
|
|
|
|
pool-prepared-statements: true
|
|
|
|
|
max-pool-prepared-statement-per-connection-size: 10
|
|
|
|
|
# 配置监控统计拦截的filters,去掉后监控界面sql无法统计,'wall'用于防火墙
|
|
|
|
|
filter:
|
|
|
|
|
commons-log:
|
|
|
|
|
connection-logger-name: stat,wall,log4j
|
|
|
|
|
stat:
|
|
|
|
|
log-slow-sql: true
|
|
|
|
|
slow-sql-millis: 2000
|
|
|
|
|
# 通过connectProperties属性来打开mergeSql功能;慢SQL记录
|
|
|
|
|
connection-properties: druid.stat.mergeSql=true;druid.stat.slowSqlMillis=5000
|
|
|
|
|
# 合并多个DruidDataSource的监控数据
|
|
|
|
|
use-global-data-source-stat: true
|
|
|
|
|
|
2021-03-25 00:10:47 +08:00
|
|
|
|
api-path:
|
|
|
|
|
user-center: ${security.oauth2.oauth-server}
|
2021-05-06 17:56:48 +08:00
|
|
|
|
inspection: http://106.12.218.237:8081/inspection
|
2021-03-27 00:04:05 +08:00
|
|
|
|
system:
|
|
|
|
|
# 预警通知上限
|
|
|
|
|
alarm-notice-limit: 5
|
2021-05-06 17:56:48 +08:00
|
|
|
|
netty:
|
|
|
|
|
port: 1991
|
2021-03-25 00:10:47 +08:00
|
|
|
|
# 安全
|
|
|
|
|
security:
|
|
|
|
|
oauth2:
|
2021-05-06 17:56:48 +08:00
|
|
|
|
oauth-server: http://106.12.218.237:8001/usercenter
|
2021-03-25 00:10:47 +08:00
|
|
|
|
oauth-logout: ${security.oauth2.oauth-server}/logout?redirect_uri=${server.url}
|
|
|
|
|
client:
|
2021-05-06 17:56:48 +08:00
|
|
|
|
client-id: e8c97882fbad4e1c8ca12e63b1a7baa5
|
|
|
|
|
client-secret: M0ZnWGpHdExzZEUrM3BZYzB0M1ZjZ0xNSkk1QXFzQkZ1dlNtSmozOFgxWW1ac2wwZTJHWk5NbXh3L3h3U2c4Rg==
|
2021-03-25 00:10:47 +08:00
|
|
|
|
user-authorization-uri: ${security.oauth2.oauth-server}/oauth_client/authorize
|
|
|
|
|
access-token-uri: ${security.oauth2.oauth-server}/oauth_client/token
|
|
|
|
|
grant-type: authorization_code
|
|
|
|
|
resource:
|
|
|
|
|
jwt:
|
|
|
|
|
key-uri: ${security.oauth2.oauth-server}/oauth_client/token_key
|
|
|
|
|
token-info-uri: ${security.oauth2.oauth-server}/oauth_client/check_token
|
|
|
|
|
user-info-uri: ${security.oauth2.oauth-server}/user
|
|
|
|
|
authorization:
|
|
|
|
|
check-token-access: ${security.oauth2.oauth-server}/oauth_client/token_key
|
|
|
|
|
|
2021-03-19 09:35:26 +08:00
|
|
|
|
mybatis:
|
|
|
|
|
config-location: classpath:mybatis/mybatis-config.xml
|
|
|
|
|
mapper-locations: classpath*:mybatis/mapper/**/*.xml
|
|
|
|
|
|
|
|
|
|
logging:
|
2021-05-06 17:56:48 +08:00
|
|
|
|
file: /tenlion/projects/logs/pollutant/pollutant-logs.log
|
2021-03-19 09:35:26 +08:00
|
|
|
|
level:
|
|
|
|
|
root: error
|
2021-03-25 13:42:21 +08:00
|
|
|
|
com.cm.tenlion: debug
|
2021-03-19 09:35:26 +08:00
|
|
|
|
|
2021-03-25 00:10:47 +08:00
|
|
|
|
# 文档
|
2021-03-19 09:35:26 +08:00
|
|
|
|
swagger:
|
2021-03-25 00:10:47 +08:00
|
|
|
|
title: 接口文档
|
|
|
|
|
description: 隐患排查系统接口文档
|
2021-05-06 17:56:48 +08:00
|
|
|
|
service-url: http://106.12.218.237:8001/pollutant
|
2021-03-25 00:10:47 +08:00
|
|
|
|
version: 1.0
|
|
|
|
|
swagger-base-package: com.cm
|
2021-03-19 09:35:26 +08:00
|
|
|
|
|
|
|
|
|
# 文件上传管理
|
|
|
|
|
file:
|
|
|
|
|
# 文件的保存路径
|
2021-05-06 17:56:48 +08:00
|
|
|
|
upload-path: /tenlion/projects/uploadFiles/
|
2021-03-19 09:35:26 +08:00
|
|
|
|
# 图片类型
|
|
|
|
|
image-types: png,jpg,jpeg,gif,blob
|
|
|
|
|
# 视频类型
|
|
|
|
|
video-types: mp4,rmvb
|
|
|
|
|
# 音频类型
|
|
|
|
|
audio-types: mp3,wmv
|
|
|
|
|
# 文件类型
|
|
|
|
|
file-types: doc,docx,xls,xlsx,ppt,pptx,txt,zip,rar,apk,pdf
|
|
|
|
|
# 同时上传最大支持数
|
|
|
|
|
max-file-count: 6
|
|
|
|
|
# 图片输出压缩质量,大于0,默认0.4
|
|
|
|
|
image-output-quality: 0.4
|
|
|
|
|
# 媒体最大时长(单位:秒)
|
|
|
|
|
media-max-duration:
|
|
|
|
|
# 后台
|
|
|
|
|
backend:
|
|
|
|
|
video: 10
|
|
|
|
|
audio: 60
|
|
|
|
|
# 微信
|
|
|
|
|
wechat:
|
|
|
|
|
video: 10
|
|
|
|
|
audio: 60
|
|
|
|
|
# app
|
|
|
|
|
app:
|
|
|
|
|
video: 10
|
2021-03-25 00:10:47 +08:00
|
|
|
|
audio: 60
|
|
|
|
|
|
|
|
|
|
# 访问控制
|
|
|
|
|
access-control:
|
|
|
|
|
pass-paths:
|
|
|
|
|
- /index.html
|
|
|
|
|
- /logout.html
|
|
|
|
|
- /default.html
|
|
|
|
|
- /assets/**
|
|
|
|
|
- /route/file/downloadfile/**
|
|
|
|
|
- /api/file/uploadfile
|
|
|
|
|
- /api/file/uploadimage
|
|
|
|
|
- /api/file/uploadvideo
|
|
|
|
|
- /api/file/uploadaudio
|
|
|
|
|
save-paths:
|
|
|
|
|
- /**/save*/**
|
|
|
|
|
- /**/add*/**
|
|
|
|
|
delete-paths:
|
|
|
|
|
- /**/delete*/**
|
|
|
|
|
- /**/remove*/**
|
|
|
|
|
update-paths:
|
|
|
|
|
- /**/update*/**
|
|
|
|
|
- /**/edit*/**
|
|
|
|
|
query-paths:
|
|
|
|
|
- /**/get*/**
|
|
|
|
|
- /**/query*/**
|
|
|
|
|
- /**/find*/**
|
|
|
|
|
- /**/list*/**
|
|
|
|
|
- /**/count*/**
|