public class ExampleFrontendApp extends ConsulConfigurer {
@Bean
public PostClient postClient() {
return client()
.requestInterceptor(new BasicAuthRequestInterceptor("test", "test123"))
.logLevel(Logger.Level.FULL)
.target(loadBalance(PostClient.class, "http://exampleService"));
}