新增配置文件,

This commit is contained in:
wanggeng 2021-10-16 00:11:22 +08:00
parent 90728bd520
commit b2c1c01aa3
3 changed files with 182 additions and 2 deletions

12
pom.xml
View File

@ -56,6 +56,18 @@
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-actuator</artifactId>
</dependency>
<!-- session共享 -->
<!--
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-data-redis</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.session</groupId>
<artifactId>spring-session-data-redis</artifactId>
</dependency>
-->
<!-- session共享 -->
<dependency>
<groupId>org.springframework</groupId>

View File

@ -0,0 +1,165 @@
server:
port: 7011
url: http://1.180.60.42:8084/usercenter
title: 统一用户管理平台
login-page-name: 统一用户管理平台
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
application:
name: sso-server
servlet:
multipart:
max-file-size: 1GB
max-request-size: 1GB
datasource:
druid:
url: jdbc:mysql://127.0.0.1:3306/db_cloud_v2_test?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: TSkj@0471.123
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
mybatis:
config-location: classpath:mybatis/mybatis-config.xml
mapper-locations: classpath*:mybatis/mapper/**/*.xml
management:
endpoints:
web:
exposure:
include: '*'
enabled-by-default: true
endpoint:
health:
show-details: always
oauthClient:
clientId: 4995b2989c274e76917a8c6144d4ab3b
clientSecret: ektSeDMwekFDZzl0WnpFQ0ZKZGo1T3NHZkpwODNsdHpmbGU0KzVheHVTQW1ac2wwZTJHWk5NbXh3L3h3U2c4Rg==
swagger:
title: 接口文档
description: 用户相关接口文档
service-url: http://www.wgink.ink
version: 1.0
swagger-base-package: com.cm
file:
uploadPath: /root/develop/projects_test/uploadFiles/
imageTypes: png,jpg,jpeg,gif,blob
videoTypes: mp4,rmvb
audioTypes: mp3,wmv
fileTypes: doc,docx,xls,xlsx,ppt,pptx,txt,zip,rar,apk,pdf
maxFileCount: 6
# 访问控制
access-control:
pass-paths:
- /index.html
- /logout.html
- /default.html
- /assets/**
- /api/oauthclient/listoauthclient
- /api/oauthclient/countoauthclient
- /api/user/countuser
- /api/file/uploadfile
save-paths:
- /save*/**
- /add*/**
delete-paths:
- /delete*/**
- /remove*/**
update-paths:
- /update*/**
- /edit*/**
query-paths:
- /get*/**
- /query*/**
- /find*/**
- /list*/**
- /count*/**
logging:
file: /root/develop/projects_test/logs/usercenter/serviceuser-logs.log
level:
root: error
com.cm: debug
# 短信服务
sms:
active: true
type: default
default-sms:
account: xd001382
password: xd001382136
sign: 【腾狮科技】
template:
verification-code: '{sign} 您的验证码为 {content}, 有效时间为120秒若非本人操作请忽略。'
# 邮件服务
email:
active: true
smtp: smtp.qq.com
port: 587
sender-email: 450292408@qq.com
sender-password: pezxpunlxzqgbhhd
cc-persons:
- 450292408@qq.com
- 76158045@qq.com
socket:
central-control:
active: false
server:
port: 8888
# 最大连接数
so-backlog: 1024
# 服务端超时断连(秒)
read-idle-time-second: 10
# 离线通知时间分钟默认10分钟
offline-notice-minute: 10
# 离线通知次数
offline-notice-count: 3
# 异常通知最大值
exception-notice-count: 10

View File

@ -26,10 +26,13 @@ spring:
multipart:
max-file-size: 1GB
max-request-size: 1GB
redis:
host: 192.168.0.156
port: 6379
datasource:
druid:
# url: jdbc:mysql://49.233.36.36:6688/db_cloud?useUnicode=true&characterEncoding=utf8&characterSetResults=utf8&autoReconnect=true&failOverReadOnly=false&useSSL=false&serverTimezone=UTC
url: jdbc:mysql://192.168.0.151:3306/db_btyjj_usercenter?useUnicode=true&characterEncoding=utf8&characterSetResults=utf8&autoReconnect=true&failOverReadOnly=false&useSSL=false&serverTimezone=UTC
url: jdbc:mysql://127.0.0.1:3306/db_jnhb_usercenter?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: wanggeng
@ -160,7 +163,7 @@ open-platform:
userinfo-url: https://oapi.dingtalk.com/sns/getuserinfo_bycode
# 必须有一个APP来辅助钉钉扫码登陆
app:
active: true
active: false
agent-id: 295981340
app-key: dingxz2jzohb7dft9iw7
app-secret: MWjSN1PUML-tCjgiSCOUR62Fs_-bdJSaHcorWhLZsd6pKTw6YL-USdsW87QWLxd6