Provides better integration of the Apache Thrift library with Spring Boot.
Add the dependency:
<dependencies>
<dependency>
<groupId>io.github.jmkeyes</groupId>
<artifactId>thrift-spring-boot-starter</artifactId>
<version>1.0.0</version>
</dependency>
</dependencies>
Enable the scanning of @ThriftController
annotations:
@SpringBootApplication
@EnableThriftController
public class Application {
public static void main(String[] args) {
SpringApplication.run(Application.class, args);
}
}
Assuming you have a MyThriftService
binding:
@ThriftController("/MyThriftService")
public class ExampleController implements ExampleService.Iface {
@Override
public void execute() {
// We're not in Kansas any more!
}
}
- Clone this repository.
- Create your branch:
git checkout -b feature/branch
- Commit your changes:
git commit -am "I am developer."
- Push your changes:
git push origin feature/branch
- Create a PR of your branch against the
master
branch.