feat:授权模式
This commit is contained in:
@@ -24,4 +24,11 @@ spring:
|
||||
|
||||
user:
|
||||
auth:
|
||||
issuer: http://127.0.0.1:38011
|
||||
issuer: http://127.0.0.1:38011
|
||||
# Web 应用前端回调地址:
|
||||
# http://localhost:8080/login/oauth2/code/oauth-client-init
|
||||
# Postman 测试用:
|
||||
# https://oauth.pstmn.io/v1/callback
|
||||
# 移动端 APP 自定义 Scheme:
|
||||
# myapp://callback
|
||||
redirectUrl: http://localhost:8080/login/oauth2/code/oauth-client-init
|
||||
34
xs-server/src/main/resources/application-test.yml
Normal file
34
xs-server/src/main/resources/application-test.yml
Normal file
@@ -0,0 +1,34 @@
|
||||
spring:
|
||||
datasource:
|
||||
dynamic:
|
||||
primary: master
|
||||
datasource:
|
||||
master:
|
||||
url: jdbc:mysql://rm-bp15t34gqx62jm069ro.mysql.rds.aliyuncs.com:3306/xservice-user?useUnicode=true&characterEncoding=utf-8&serverTimezone=Asia/Shanghai&allowMultiQueries=true
|
||||
username: root
|
||||
password: xb#UWqnhH24&XpX
|
||||
driver-class-name: com.mysql.cj.jdbc.Driver
|
||||
sshConnect: false
|
||||
redis:
|
||||
host: r-bp1wt59a6nfyt4e3ltpd.redis.rds.aliyuncs.com
|
||||
port: 6379
|
||||
password: Admin@123 # 如果无密码可以省略
|
||||
database: 0
|
||||
timeout: 5000
|
||||
lettuce:
|
||||
pool:
|
||||
max-active: 8
|
||||
max-idle: 8
|
||||
min-idle: 0
|
||||
max-wait: 1000
|
||||
|
||||
user:
|
||||
auth:
|
||||
issuer: http://127.0.0.1:38011
|
||||
# Web 应用前端回调地址:
|
||||
# http://localhost:8080/login/oauth2/code/oauth-client-init
|
||||
# Postman 测试用:
|
||||
# https://oauth.pstmn.io/v1/callback
|
||||
# 移动端 APP 自定义 Scheme:
|
||||
# myapp://callback
|
||||
redirectUrl: http://localhost:8080/login/oauth2/code/oauth-client-init
|
||||
Reference in New Issue
Block a user