zone.cogni.lib.http.headers.HttpHeadersConfiguration Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of httpheaders Show documentation
Show all versions of httpheaders Show documentation
Library for various usages.
The newest version!
package zone.cogni.lib.http.headers;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.validation.annotation.Validated;
@Configuration
public class HttpHeadersConfiguration {
@Bean
public CreateHttpHeaderFilter httpHeaderFilter() {
return new CreateHttpHeaderFilter(httpHeadersProperties());
}
@Bean
@ConfigurationProperties("cognizone.http")
@Validated
public HttpHeadersProperties httpHeadersProperties() {
return new HttpHeadersProperties();
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy