io.github.nichetoolkit.rest.configure.RestExceptionProperties Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of rest-toolkit-core Show documentation
Show all versions of rest-toolkit-core Show documentation
Rest toolkit core project for Spring Boot
package io.github.nichetoolkit.rest.configure;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.boot.context.properties.NestedConfigurationProperty;
import org.springframework.stereotype.Component;
/**
* RestExceptionProperties
* @author Cyan ([email protected])
* @version v1.0.0
*/
@Component
@ConfigurationProperties(prefix = "nichetoolkit.rest.error")
public class RestExceptionProperties {
@NestedConfigurationProperty
private ConsoleLog consoleLog = new ConsoleLog();
public ConsoleLog getConsoleLog() {
return consoleLog;
}
public void setConsoleLog(ConsoleLog consoleLog) {
this.consoleLog = consoleLog;
}
public static class ConsoleLog {
private Boolean restExceptionEnabled = false;
private Boolean commonExceptionEnabled = false;
public Boolean getRestExceptionEnabled() {
return restExceptionEnabled;
}
public void setRestExceptionEnabled(Boolean restExceptionEnabled) {
this.restExceptionEnabled = restExceptionEnabled;
}
public Boolean getCommonExceptionEnabled() {
return commonExceptionEnabled;
}
public void setCommonExceptionEnabled(Boolean commonExceptionEnabled) {
this.commonExceptionEnabled = commonExceptionEnabled;
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy