Commit 05066dfa authored by oleg.pahhomov's avatar oleg.pahhomov

SA0140-413 format

parent 708ef7d9
......@@ -25,39 +25,39 @@ import javax.servlet.Filter;
@SpringBootApplication
public class DashboardApplication {
public static void main(String[] args) {
SpringApplication.run(DashboardApplication.class, args);
}
@Bean
public RestTemplate restTemplate(RestTemplateBuilder builder) {
return builder.interceptors(new RestTemplateInterceptor())
.requestFactory(() -> new BufferingClientHttpRequestFactory(new SimpleClientHttpRequestFactory()))
.build();
}
@Bean
public HttpClient httpClient(){
return HttpClientBuilder.create()
.addInterceptorFirst((HttpRequestInterceptor) new ApacheHttpClientInterceptor())
.addInterceptorFirst((HttpResponseInterceptor) new ApacheHttpClientInterceptor())
.build();
}
@Bean
public PasswordEncoder encoder() {
return new BCryptPasswordEncoder();
}
@Bean
public CacheManager cacheManager() {
return new CaffeineCacheManager();
}
@Profile("logging")
@Bean(name = "TeeFilter")
public Filter teeFilter() {
return new ch.qos.logback.access.servlet.TeeFilter();
}
public static void main(String[] args) {
SpringApplication.run(DashboardApplication.class, args);
}
@Bean
public RestTemplate restTemplate(RestTemplateBuilder builder) {
return builder.interceptors(new RestTemplateInterceptor())
.requestFactory(() -> new BufferingClientHttpRequestFactory(new SimpleClientHttpRequestFactory()))
.build();
}
@Bean
public HttpClient httpClient() {
return HttpClientBuilder.create()
.addInterceptorFirst((HttpRequestInterceptor) new ApacheHttpClientInterceptor())
.addInterceptorFirst((HttpResponseInterceptor) new ApacheHttpClientInterceptor())
.build();
}
@Bean
public PasswordEncoder encoder() {
return new BCryptPasswordEncoder();
}
@Bean
public CacheManager cacheManager() {
return new CaffeineCacheManager();
}
@Profile("logging")
@Bean(name = "TeeFilter")
public Filter teeFilter() {
return new ch.qos.logback.access.servlet.TeeFilter();
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment