1
0
mirror of https://gitee.com/bookshelfplus/bookshelfplus synced 2025-09-21 01:10:39 +08:00
Code Issues Projects Releases Wiki Activity GitHub Gitee

第三方快捷登录前端按钮;后端跳转逻辑;数据库映射完成

This commit is contained in:
2022-04-03 23:40:03 +08:00
parent a54e96de38
commit f62bfed97f
16 changed files with 1326 additions and 9 deletions

View File

@@ -0,0 +1,38 @@
package plus.bookshelf.Common.ThirdParty;
import lombok.Data;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.PropertySource;
import org.springframework.stereotype.Component;
@Component
@ConfigurationProperties(prefix = "thirdparty")
@PropertySource("thirdparty.properties")
@Data
public class ThirdPartyConfig {
// Gitee
@Value("${thirdparty.gitee.clientid}")
private String giteeClientId;
@Value("${thirdparty.gitee.clientsecret}")
private String giteeClientsecret;
@Value("${thirdparty.gitee.redirecturi}")
private String giteeRedirecturi;
// QQ
@Value("${thirdparty.qq.clientid}")
private String qqClientid;
@Value("${thirdparty.qq.clientsecret}")
private String qqClientsecret;
@Value("${thirdparty.qq.redirecturi}")
private String qqRedirecturi;
//GitHub
@Value("${thirdparty.github.clientid}")
private String githubClientid;
@Value("${thirdparty.github.clientsecret}")
private String githubClientsecret;
@Value("${thirdparty.github.redirecturi}")
private String githubRedirecturi;
}