performing IO the easier way.
- A powerful framework helps building different IO Runner easily.
- Easily to implement Reactor clients
- Implemented runners
io.github.yuankui.easyio.runner.http.demo.V2exServiceTest#query
@RunWith(HttpRunner.class)
@Host("https://www.v2ex.com")
public interface V2exService {
@Get("/api/members/show.json")
UserInfo getUserWithName(@Query("username") String userName);
}
@Configuration
@Import(HttpConfiguration.class)
@EasyIOScan("io.github.yuankui.easyio.runner.http.demo")
public class V2exServiceTest {
@Test
public void query() {
ApplicationContext context =
new AnnotationConfigApplicationContext(V2exServiceTest.class);
V2exService v2exService = context.getBean(V2exService.class);
UserInfo result = v2exService.getUserWithName("yuankui");
System.out.println("result = " + result);
}
}
- MQRunner
- RedisRunner
- HBaseRunner
- EsRunner
- JDBCRunner
- MyBatis
- Retrofit
- Jpa