diff --git a/doc/db/2pigxx.sql b/doc/db/2pigxx.sql index 78c8fe776..a40c8cf4a 100644 --- a/doc/db/2pigxx.sql +++ b/doc/db/2pigxx.sql @@ -13,6 +13,7 @@ Date: 12/10/2018 21:57:20 PM */ +USE pigxx; SET NAMES utf8; SET FOREIGN_KEY_CHECKS = 0; @@ -222,7 +223,7 @@ CREATE TABLE `sys_oauth_client_details` ( -- Records of `sys_oauth_client_details` -- ---------------------------- BEGIN; -INSERT INTO `sys_oauth_client_details` VALUES ('app', null, 'app', 'server', 'password,refresh_token', null, null, null, null, null, 'true', '1'), ('daemon', null, 'daemon', 'server', 'password,refresh_token', null, null, null, null, null, 'true', '1'), ('gen', null, 'gen', 'server', 'password,refresh_token', null, null, null, null, null, 'true', '1'), ('pig', null, 'pig', 'server', 'password,refresh_token,authorization_code', 'http://127.0.0.1:4040/sso1/login', null, null, null, null, 'true', '1'), ('test', null, 'test', 'server', 'password,refresh_token', null, null, null, null, null, 'true', '1'); +INSERT INTO `sys_oauth_client_details` VALUES ('app', null, 'app', 'server', 'password,refresh_token', null, null, null, null, null, 'true', '1'), ('daemon', null, 'daemon', 'server', 'password,refresh_token', null, null, null, null, null, 'true', '1'), ('gen', null, 'gen', 'server', 'password,refresh_token', null, null, null, null, null, 'true', '1'), ('pig', null, 'pig', 'server', 'password,refresh_token,authorization_code', 'http://localhost:4040/sso1/login,http://localhost:4041/sso1/login', null, null, null, null, 'true', '1'), ('test', null, 'test', 'server', 'password,refresh_token', null, null, null, null, null, 'true', '1'); COMMIT; -- ---------------------------- diff --git a/doc/db/3pigxx_ac.sql b/doc/db/3pigxx_ac.sql index cac339671..1f2e5d1c8 100644 --- a/doc/db/3pigxx_ac.sql +++ b/doc/db/3pigxx_ac.sql @@ -13,6 +13,7 @@ Date: 12/10/2018 21:57:09 PM */ +USE pigxx_ac; SET NAMES utf8; SET FOREIGN_KEY_CHECKS = 0; diff --git a/pigx-visual/pigx-sso-client-demo/src/main/java/com/pig4cloud/pigx/sso/PigxSsoClientDemoApplication.java b/pigx-visual/pigx-sso-client-demo/src/main/java/com/pig4cloud/pigx/sso/PigxSsoClientDemoApplication.java index 25a0f5a64..db078e32b 100644 --- a/pigx-visual/pigx-sso-client-demo/src/main/java/com/pig4cloud/pigx/sso/PigxSsoClientDemoApplication.java +++ b/pigx-visual/pigx-sso-client-demo/src/main/java/com/pig4cloud/pigx/sso/PigxSsoClientDemoApplication.java @@ -27,7 +27,7 @@ import org.springframework.cloud.client.SpringCloudApplication; *
* 单点登录客户端 * 1. 启动实例访问:http://localhost:4040/sso1/ 提示登录,然后获取到用户信息 - * 2. 再启动一个实例: http://localhost:4040/sso1/ 不需要登录即可获取当前用户信息 + * 2. 再启动一个实例: http://localhost:4041/sso1/ 不需要登录即可获取当前用户信息 */ @EnableOAuth2Sso @SpringCloudApplication