btgxq-partybuilding/src/main/resources/application-test.yml
Renpc-kilig d43d786188 merge
2020-10-22 16:35:56 +08:00

135 lines
3.5 KiB
YAML

server:
port: 8085
url: http://192.168.0.111:8085/partybuilding
title: 稀土高新区党建平台
servlet:
context-path: /partybuilding
tomcat:
uri-encoding: UTF-8
max-threads: 500
max-connections: 10000
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:
url: jdbc:mysql://127.0.0.1:3306/db_party?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: 123456
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
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
cache:
type: ehcache
ehcache:
config: classpath:ehcache.xml
# 数据库
mybatis:
config-location: classpath:mybatis/mybatis-config.xml
mapper-locations: classpath*:mybatis/mapper/**/*.xml
# 文档
swagger:
title: 接口文档
description: 城市管理系统相关接口文档
service-url: http://http://www.sucstep.com/
version: 1.0
swagger-base-package: com.cm
# 文件
file:
uploadPath: /Users/wenc/Desktop/filetest/
imageTypes: png,jpg,jpeg,gif,blob
videoTypes: mp4,rmvb
audioTypes: mp3,wmv,wav
fileTypes: doc,docx,xls,xlsx,ppt,pptx,txt,zip,rar,apk
# 安全
security:
oauth2:
oauth-server: http://49.233.36.36:8868/usercenter
oauth-logout: ${security.oauth2.oauth-server}/logout?redirect_uri=${server.url}
client:
client-id: bdbc8252b02d48abb42a800774e02ef8
client-secret: ZUl5bjJ5enNJSk9zMEVxSFRGYkttTzd4aWs3eDVDRVpvYjJ4VC9Rem1Gc21ac2wwZTJHWk5NbXh3L3h3U2c4Rg==
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:
- /index
- /index.html
- /logout.html
- /default.html
- /app/**
- /assets/**
save-paths:
- /save*/**
- /add*/**
delete-paths:
- /delete*/**
- /remove*/**
update-paths:
- /update*/**
- /edit*/**
query-paths:
- /get*/**
- /query*/**
- /find*/**
- /list*/**
- /count*/**
- /map*/**
- /select*/**
# 日志
logging:
# file: C:\\services\\logs\\servicecity-logs.log
# file: D:\project\logs\city\servicecity-logs.log
level:
root: error
com.cm: debug