com.github.zhujk.resp.props.RespProperties Maven / Gradle / Ivy
package com.github.zhujk.resp.props;
import com.github.zhujk.resp.core.Resp;
import org.springframework.boot.context.properties.ConfigurationProperties;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
@ConfigurationProperties("resp")
public class RespProperties {
private Class> respClass = Resp.class;
private List> ignoredClasses = new ArrayList<>();
private List defaultIgnorePathPatterns = new ArrayList<>(Arrays.asList("/error", "/actuator/**", "/swagger-resources/**", "/v2/api-docs/**"));
private List extraIgnorePathPatterns = new ArrayList<>();
public Class> getRespClass() {
return respClass;
}
public void setRespClass(Class> respClass) {
this.respClass = respClass;
}
public List> getIgnoredClasses() {
return ignoredClasses;
}
public void setIgnoredClasses(List> ignoredClasses) {
this.ignoredClasses = ignoredClasses;
}
public List getDefaultIgnorePathPatterns() {
return defaultIgnorePathPatterns;
}
public void setDefaultIgnorePathPatterns(List defaultIgnorePathPatterns) {
this.defaultIgnorePathPatterns = defaultIgnorePathPatterns;
}
public List getExtraIgnorePathPatterns() {
return extraIgnorePathPatterns;
}
public void setExtraIgnorePathPatterns(List extraIgnorePathPatterns) {
this.extraIgnorePathPatterns = extraIgnorePathPatterns;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy