https://github.com/helpermethod/membrane-spring-boot-starter
A Spring Boot Starter for Membrane Service Proxy.
https://github.com/helpermethod/membrane-spring-boot-starter
java java-8 reverse-proxy spring-boot spring-boot-starter
Last synced: 3 months ago
JSON representation
A Spring Boot Starter for Membrane Service Proxy.
- Host: GitHub
- URL: https://github.com/helpermethod/membrane-spring-boot-starter
- Owner: helpermethod
- License: apache-2.0
- Created: 2017-04-24T18:54:07.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2017-05-11T10:19:43.000Z (about 8 years ago)
- Last Synced: 2025-02-05T03:32:41.969Z (5 months ago)
- Topics: java, java-8, reverse-proxy, spring-boot, spring-boot-starter
- Language: Java
- Homepage:
- Size: 104 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Membrane Spring Boot Starter
[](https://circleci.com/gh/helpermethod/membrane-spring-boot-starter)
[](https://www.versioneye.com/user/projects/59109d639e070f003f7cb97c)
[](https://codecov.io/gh/helpermethod/membrane-spring-boot-starter)
[](https://raw.githubusercontent.com/helpermethod/membrane-spring-boot-starter/master/LICENSE)A Spring Boot Starter for [Membrane Service Proxy](https://github.com/membrane/service-proxy).
## Features
* seamless integration with Spring Boot
* typesafe Java 8 DSL for Service Proxy configuration## Example
```java
@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);
}
}
```