84 lines
2.3 KiB
YAML
84 lines
2.3 KiB
YAML
|
server:
|
||
|
port: 7011
|
||
|
url: http://192.168.0.103:7011/usercenter
|
||
|
system-title: 统一用户管理系统
|
||
|
system-sub-title: 智慧城市
|
||
|
servlet:
|
||
|
context-path: /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_smart_city_usercenter?useUnicode=true&characterEncoding=utf8&characterSetResults=utf8&autoReconnect=true&failOverReadOnly=false&useSSL=false&serverTimezone=UTC&nullCatalogMeansCurrent=true
|
||
|
db-type: mysql
|
||
|
driver-class-name: com.mysql.cj.jdbc.Driver
|
||
|
username: root
|
||
|
password: root
|
||
|
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:
|
||
|
base-package-list: ink.wgink,com.cn
|
||
|
|
||
|
file:
|
||
|
# ????????????
|
||
|
upload-path: /Users/wanggeng/Desktop/UploadFiles/
|
||
|
# ????
|
||
|
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
|
||
|
|
||
|
logging:
|
||
|
file:
|
||
|
name: /Users/wanggeng/Desktop/UploadFiles/logs/usercenter-logs.log
|
||
|
level:
|
||
|
root: error
|
||
|
org.springframework.boot.autoconfigure.security.servlet: debug
|
||
|
ink.wgink: debug
|
||
|
com.cn: debug
|