btxtgxq-system-bigdata/src/main/resources/application.yml
2024-05-08 10:15:31 +08:00

179 lines
6.0 KiB
YAML

server:
port: 8087
url: http://192.168.0.4:8087/bigdata
title: bigdata
servlet:
context-path: /bigdata
spring:
thymeleaf:
prefix: classpath:/templates/
suffix: .html
mode: HTML5
encoding: UTF-8
cache: false
main:
allow-bean-definition-overriding: true
servlet:
multipart:
max-file-size: 1GB
max-request-size: 1GB
datasource:
druid:
db1:
# url: jdbc:mysql://192.168.0.151:3306/db_btgxq_bigdata?useUnicode=true&characterEncoding=utf8&characterSetResults=utf8&autoReconnect=true&failOverReadOnly=false&useSSL=false
url: jdbc:mysql://192.168.0.151:3306/db_btgxq?useUnicode=true&characterEncoding=utf8&characterSetResults=utf8&autoReconnect=true&failOverReadOnly=false&useSSL=false
db-type: mysql
driver-class-name: com.mysql.jdbc.Driver
username: root
password: root
mapper-locations: classpath*:mybatis/mapper/**/*.xml
db2:
# url: jdbc:mysql://192.168.0.151:3306/db_btgxq_city?useUnicode=true&characterEncoding=utf8&characterSetResults=utf8&autoReconnect=true&failOverReadOnly=false&useSSL=false
url: jdbc:mysql://192.168.0.151:3306/db_btgxq?useUnicode=true&characterEncoding=utf8&characterSetResults=utf8&autoReconnect=true&failOverReadOnly=false&useSSL=false
db-type: mysql
driver-class-name: com.mysql.jdbc.Driver
username: root
password: root
mapper-locations: classpath*:mybatis/db2-mapper/**/*.xml
db3:
# url: jdbc:mysql://192.168.0.151:3306/db_baotou_city?useUnicode=true&characterEncoding=utf8&characterSetResults=utf8&autoReconnect=true&failOverReadOnly=false&useSSL=false
url: jdbc:mysql://192.168.0.151:3306/db_btgxq?useUnicode=true&characterEncoding=utf8&characterSetResults=utf8&autoReconnect=true&failOverReadOnly=false&useSSL=false
db-type: mysql
driver-class-name: com.mysql.jdbc.Driver
username: root
password: root
mapper-locations: classpath*:mybatis/db3-mapper/**/*.xml
initial-size: 2
min-idle: 2
max-active: 5
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
pool-prepared-statements: true
max-pool-prepared-statement-per-connection-size: 10
filter:
commons-log:
connection-logger-name: stat,wall,log4j
stat:
log-slow-sql: true
slow-sql-millis: 2000
connection-properties: druid.stat.mergeSql=true;druid.stat.slowSqlMillis=5000
use-global-data-source-stat: true
# 数据库
mybatis:
config-location: classpath:mybatis/mybatis-config.xml
mapper-locations: classpath*:mybatis/mapper/**/*.xml
# 文档
swagger:
title: 接口文档
description: 党建大数据接口文档
service-url: https://baidu.com/
version: 1.0
swagger-base-package: com.cm
# 文件
file:
uploadPath: C:\Users\TS-QD1\Desktop\UploadFiles\
imageTypes: png,jpg,jpeg,gif,blob
videoTypes: mp4
audioTypes: mp3,wav,amr
fileTypes: doc,docx,xls,xlsx,ppt,pptx,txt,zip,rar,apk,pdf
maxFileCount: 6
# 安全
security:
oauth2:
oauth-server: http://192.168.0.4:7021/usercenter
oauth-logout: ${security.oauth2.oauth-server}/logout?redirect_uri=${server.url}
client:
client-id: fe091a27049d476fb66cc60d4d865939
client-secret: aENJYmpSZjFFblloWXJGenVKRENZNFpZRkYxN3A4SWVjYTJNc0hFenUrQW1ac2wwZTJHWk5NbXh3L3h3U2c4Rg==
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
api-path:
user-center: ${security.oauth2.oauth-server}
# 访问控制
access-control:
pass-paths:
- /old.html
- /old.html
- /logout.html
- /default.html
- /assets/**
- /route/file/downloadfile/**
save-paths:
- /**/save*/**
- /**/add*/**
delete-paths:
- /**/delete*/**
- /**/remove*/**
update-paths:
- /**/update*/**
- /**/edit*/**
query-paths:
- /**/get*/**
- /**/query*/**
- /**/find*/**
- /**/list*/**
- /**/count*/**
# 日志
logging:
file: E:\Users\TS-QD1\Desktop\UploadFiles\logs\bigdata\logs.log
level:
root: debug
org.mybatis: debug
com.cm: debug
# 访问其他项目
server-other:
port: 8085
titile: 党建
# servicecity-url: http://192.168.0.111:8084/servicecity
# party-url: http://192.168.0.111:8085/partybuilding
# servicecity-url: http://192.168.0.109:8083/servicecity
servicecity-url: http://192.168.0.4:7022/servicecity
deptassesst-Url: http://192.168.0.4:7022/servicecity
party-url: http://219.147.99.164:8082/partybuilding
logo-url: http://219.147.99.164:8082/partybuilding
population-url: http://219.147.99.164:8082/population
send-url: http://192.168.0.103:7002/social
# 考核相关配置
score:
# 街镇村考核扣分
boss-grossscore: 40 # 立案情况
boss-everyone: 0.2 # 每条案件扣分
person-grossscore: 20 # 人口管理总分
meeting-grossscore: 20 # 党组织建设总分
case-grossscore: 20 # 督察总分
case-everyone: 0.2 # 督察扣分
grossscore: 100 # 街镇村加减分最高分
lowscore: 0 # 街镇村加减分最低分
#部门考核分数配置
dept-settlescore: 40 #案件处理情况总得分
dept-settlescore-1: 1 #案件处理情况得分值
dept-settlescore-2: 0.5 #案件处理情况扣分值
dept-settlescore-3: 20 #处理结果总分值
dept-settlescore-4: 1 #案件督查扣分值
dept-settlescore-5: 40 #案件处置时效默认分值
dept-eventscore-up: 100 #最终得分上限
dept-eventscore-down: 0 #最终得分下限