84 lines
1.7 KiB
Java
84 lines
1.7 KiB
Java
package ru.ulstu.configuration;
|
|
|
|
import org.hibernate.validator.constraints.NotBlank;
|
|
import org.springframework.boot.context.properties.ConfigurationProperties;
|
|
import org.springframework.stereotype.Component;
|
|
import org.springframework.validation.annotation.Validated;
|
|
|
|
@Component
|
|
@ConfigurationProperties(prefix = "ng-tracker")
|
|
@Validated
|
|
public class ApplicationProperties {
|
|
@NotBlank
|
|
private String baseUrl;
|
|
|
|
@NotBlank
|
|
private String undeadUserLogin;
|
|
|
|
private boolean devMode;
|
|
|
|
private boolean useHttps;
|
|
|
|
private boolean checkRun;
|
|
|
|
private String debugEmail;
|
|
|
|
private String driverPath;
|
|
|
|
public boolean isUseHttps() {
|
|
return useHttps;
|
|
}
|
|
|
|
public void setUseHttps(boolean useHttps) {
|
|
this.useHttps = useHttps;
|
|
}
|
|
|
|
public String getBaseUrl() {
|
|
return baseUrl;
|
|
}
|
|
|
|
public void setBaseUrl(String baseUrl) {
|
|
this.baseUrl = baseUrl;
|
|
}
|
|
|
|
public String getUndeadUserLogin() {
|
|
return undeadUserLogin;
|
|
}
|
|
|
|
public void setUndeadUserLogin(String undeadUserLogin) {
|
|
this.undeadUserLogin = undeadUserLogin;
|
|
}
|
|
|
|
public boolean isDevMode() {
|
|
return devMode;
|
|
}
|
|
|
|
public void setDevMode(boolean devMode) {
|
|
this.devMode = devMode;
|
|
}
|
|
|
|
public boolean isCheckRun() {
|
|
return checkRun;
|
|
}
|
|
|
|
public void setCheckRun(boolean checkRun) {
|
|
this.checkRun = checkRun;
|
|
}
|
|
|
|
public String getDebugEmail() {
|
|
return debugEmail;
|
|
}
|
|
|
|
public void setDebugEmail(String debugEmail) {
|
|
this.debugEmail = debugEmail;
|
|
}
|
|
|
|
public String getDriverPath() {
|
|
return driverPath;
|
|
}
|
|
|
|
public void setDriverPath(String driverPath) {
|
|
this.driverPath = driverPath;
|
|
}
|
|
}
|