A Spring Boot Starter for Membrane Service Proxy.
- seamless integration with Spring Boot
- typesafe Java 8 DSL for Service Proxy configuration
@EnableMembrane
@SpringBootApplication
public class Application {
@Bean
public ProxiesConfiguration proxies() {
return proxies -> proxies
.serviceProxy(serviceProxy -> serviceProxy
.matches(matcher -> matcher.pathPrefix("/restnames/"))
.target(target -> target.host("www.thomas-bayer.com")));
}
public static void main(String[] args) {
SpringApplication.run(Application.class, args);
}
}