1
0
mirror of https://gitee.com/bookshelfplus/bookshelfplus synced 2025-09-24 02:20:39 +08:00
Code Issues Projects Releases Wiki Activity GitHub Gitee
Files
bookshelfplus/bookshelfplus/src/main/java/plus/bookshelf/Common/ThirdParty/ThirdPartyConfig.java

39 lines
1.2 KiB
Java

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;
}