
net.guerlab.spring.commons.properties.ResponseAdvisorProperties Maven / Gradle / Ivy
package net.guerlab.spring.commons.properties;
import java.util.ArrayList;
import java.util.List;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.cloud.context.config.annotation.RefreshScope;
/**
* http响应数据处理配置参数
* 符合以下条件之一将不会被包装成{@link net.guerlab.web.result.Result}类型
*
* - 请求路径符合排除列表前缀
* - 使用了{@link net.guerlab.spring.commons.annotation.IgnoreResponseHandler}注解
*
*
* @author guer
*
*/
@RefreshScope
@ConfigurationProperties("spring.response-advisor")
public class ResponseAdvisorProperties {
/**
* 排除路径
*/
private List excluded = new ArrayList<>();
/**
* 返回排除路径
*
* @return 排除路径
*/
public List getExcluded() {
return excluded;
}
/**
* 设置排除路径
*
* @param excluded
* 排除路径
*/
public void setExcluded(List excluded) {
this.excluded = excluded;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy