调整OAuth2客户端配置字段
This commit is contained in:
parent
159deb799b
commit
60b0923f1d
@ -17,15 +17,33 @@ import org.springframework.stereotype.Component;
|
||||
@ConfigurationProperties(prefix = "server")
|
||||
public class OAuth2ClientServerProperties {
|
||||
|
||||
/**
|
||||
* 服务端口
|
||||
*/
|
||||
private Integer port;
|
||||
/**
|
||||
* 访问地址
|
||||
*/
|
||||
private String url;
|
||||
/**
|
||||
* WebSocket 地址
|
||||
*/
|
||||
private String ws;
|
||||
private String title;
|
||||
private String portalUrl;
|
||||
private String loginPageName;
|
||||
/**
|
||||
* 系统主标题
|
||||
*/
|
||||
private String systemTitle;
|
||||
/**
|
||||
* 默认 index 页面
|
||||
*/
|
||||
private String defaultIndexPage;
|
||||
/**
|
||||
* 默认 home 页面
|
||||
*/
|
||||
private String defaultHomePage;
|
||||
|
||||
public Integer getPort() {
|
||||
return port;
|
||||
return port == null ? 0 : port;
|
||||
}
|
||||
|
||||
public void setPort(Integer port) {
|
||||
@ -41,34 +59,34 @@ public class OAuth2ClientServerProperties {
|
||||
}
|
||||
|
||||
public String getWs() {
|
||||
return ws;
|
||||
return ws == null ? "" : ws.trim();
|
||||
}
|
||||
|
||||
public void setWs(String ws) {
|
||||
this.ws = ws;
|
||||
}
|
||||
|
||||
public String getTitle() {
|
||||
return title == null ? "" : title.trim();
|
||||
public String getSystemTitle() {
|
||||
return systemTitle == null ? "" : systemTitle.trim();
|
||||
}
|
||||
|
||||
public void setTitle(String title) {
|
||||
this.title = title;
|
||||
public void setSystemTitle(String systemTitle) {
|
||||
this.systemTitle = systemTitle;
|
||||
}
|
||||
|
||||
public String getPortalUrl() {
|
||||
return portalUrl == null ? "" : portalUrl.trim();
|
||||
public String getDefaultIndexPage() {
|
||||
return defaultIndexPage == null ? "" : defaultIndexPage.trim();
|
||||
}
|
||||
|
||||
public void setPortalUrl(String portalUrl) {
|
||||
this.portalUrl = portalUrl;
|
||||
public void setDefaultIndexPage(String defaultIndexPage) {
|
||||
this.defaultIndexPage = defaultIndexPage;
|
||||
}
|
||||
|
||||
public String getLoginPageName() {
|
||||
return loginPageName == null ? "" : loginPageName.trim();
|
||||
public String getDefaultHomePage() {
|
||||
return defaultHomePage == null ? "" : defaultHomePage.trim();
|
||||
}
|
||||
|
||||
public void setLoginPageName(String loginPageName) {
|
||||
this.loginPageName = loginPageName;
|
||||
public void setDefaultHomePage(String defaultHomePage) {
|
||||
this.defaultHomePage = defaultHomePage;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user