tech.mhuang.pacebox.springboot.autoconfiguration.trace.TraceProperties Maven / Gradle / Ivy
The newest version!
package tech.mhuang.pacebox.springboot.autoconfiguration.trace;
import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import tech.mhuang.pacebox.springboot.autoconfiguration.ConfigConsts;
import java.util.Set;
import java.util.stream.Collectors;
import java.util.stream.Stream;
/**
* 自动Trace配置
*
* @author mhuang
* @since 1.0.0
*/
@Data
@ConfigurationProperties(prefix = ConfigConsts.TRACE)
public class TraceProperties {
private boolean enable;
private Set ignoreRequestMethod;
private Set defaultIgnoreRequestMethod = Stream.of("OPTIONS").collect(Collectors.toSet());
}