OAuth2.0文档

This commit is contained in:
click33
2021-07-19 01:12:55 +08:00
parent 6d44299902
commit de7ccf05aa
22 changed files with 535 additions and 44 deletions

View File

@@ -3,9 +3,8 @@ package com.pj;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
/**
* 启动OAuth2-Client端
* 启动:Sa-OAuth2 ClientServer
* @author kong
*/
@SpringBootApplication
@@ -16,7 +15,8 @@ public class SaOAuth2ClientApplication {
System.out.println("\nSa-Token-OAuth Client端启动成功\n\n" + str);
}
static String str = "首先在host文件 (C:\\WINDOWS\\system32\\drivers\\etc\\hosts) 添加以下内容: \r\n" +
static String str = "-------------------- Sa-Token-OAuth2 示例 --------------------\n\n" +
"首先在host文件 (C:\\windows\\system32\\drivers\\etc\\hosts) 添加以下内容: \r\n" +
" 127.0.0.1 sa-oauth-server.com \r\n" +
" 127.0.0.1 sa-oauth-client.com \r\n" +
"再从浏览器访问:\r\n" +