127 lines
3.6 KiB
YAML
127 lines
3.6 KiB
YAML
|
server:
|
|||
|
port: 8080
|
|||
|
url: http://192.168.0.109:8080/population
|
|||
|
system-title: 人口信息平台
|
|||
|
system-sub-title: 人口信息平台
|
|||
|
servlet:
|
|||
|
context-path: /population
|
|||
|
nav-page: http://192.168.0.155:7011/usercenter
|
|||
|
|
|||
|
spring:
|
|||
|
login-url: /oauth/login
|
|||
|
login-failure: /oauth/login?error
|
|||
|
login-process: /userlogin
|
|||
|
assets-matchers: /assets/**
|
|||
|
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_cloud_population_v2?useUnicode=true&characterEncoding=utf8&characterSetResults=utf8&autoReconnect=true&failOverReadOnly=false&useSSL=false&serverTimezone=UTC
|
|||
|
db-type: mysql
|
|||
|
driver-class-name: com.mysql.cj.jdbc.Driver
|
|||
|
username: root
|
|||
|
password: 123456
|
|||
|
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
|
|||
|
|
|||
|
# 安全
|
|||
|
security:
|
|||
|
oauth2:
|
|||
|
oauth-server: http://192.168.0.155:7011/usercenter
|
|||
|
oauth-logout: ${security.oauth2.oauth-server}/logout?redirect_uri=${server.url}
|
|||
|
client:
|
|||
|
client-id: 569c6a8521884080b78d508d9a31c6d4
|
|||
|
client-secret: WUgxMjFHd0kwdW5hUFdJUU12c1VRbW42MGFBWTNOMVZleDBlRmFXK0szbmxIdG9KZmEyTjJIRnI0dG1McEdEVA==
|
|||
|
user-authorization-uri: ${security.oauth2.oauth-server}/oauth2_client/authorize
|
|||
|
access-token-uri: ${security.oauth2.oauth-server}/oauth2_client/token
|
|||
|
grant-type: authorization_code
|
|||
|
resource:
|
|||
|
jwt:
|
|||
|
key-uri: ${security.oauth2.oauth-server}/oauth2_client/token_key
|
|||
|
token-info-uri: ${security.oauth2.oauth-server}/oauth2_client/check_token
|
|||
|
user-info-uri: ${security.oauth2.oauth-server}/user
|
|||
|
authorization:
|
|||
|
check-token-access: ${security.oauth2.oauth-server}/oauth2_client/token_key
|
|||
|
api-path:
|
|||
|
user-center: http://192.168.0.155:7011/usercenter
|
|||
|
|
|||
|
# 数据库
|
|||
|
mybatis:
|
|||
|
config-location: classpath:mybatis/mybatis-config.xml
|
|||
|
mapper-locations: classpath*:mybatis/mapper/**/*.xml
|
|||
|
|
|||
|
access-control:
|
|||
|
role-permission: false
|
|||
|
pass-paths:
|
|||
|
|
|||
|
# 文档
|
|||
|
swagger:
|
|||
|
base-package-list: ink.wgink,cn.com.tenlion
|
|||
|
|
|||
|
# 文件
|
|||
|
file:
|
|||
|
# 文件的保存路径
|
|||
|
upload-path: D:/ideaWorkspace/uploadfiles/population
|
|||
|
# 图片类型
|
|||
|
image-types: png,jpg,jpeg,gif,blob
|
|||
|
# 视频类型
|
|||
|
video-types: mp4,rmvb
|
|||
|
# 音频类型
|
|||
|
audio-types: mp3,wmv,amr
|
|||
|
# 文件类型
|
|||
|
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
|
|||
|
audio: 60
|
|||
|
|
|||
|
# 日志
|
|||
|
logging:
|
|||
|
file:
|
|||
|
name: D:/ideaWorkspace/uploadfiles/population.log
|
|||
|
level:
|
|||
|
root: error
|
|||
|
ink.wgink: debug
|
|||
|
cn.com.tenlion: debug
|