# veladder **Repository Path**: mirrors_nintha/veladder ## Basic Information - **Project Name**: veladder - **Description**: A ladder for helping springer use vertx web,支持SpringMVC的注解来构建Vertx Web服务 - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-09-25 - **Last Updated**: 2026-07-19 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # veladder A ladder for helping springer use vertx web spring风格的vertx web框架 ## Get start veladder可以使用类似spring mvc的注解来构建web服务,大部分功能是通过注解扫描进行实现的。 ``` java @Slf4j @RestController public class HelloController { @RequestMapping("hello/world") public String helloWorld() { return "Hello world"; } @RequestMapping("echo") public Map echo(String message, Long token, int code, RoutingContext ctx) { log.info("uri={}", ctx.request().absoluteURI()); log.info("message={}, token={}, code={}", message, token, code); HashMap map = new HashMap<>(); map.put("message", message); map.put("token", token); map.put("code", code); return map; } @RequestMapping(value = "hello/array") public List> helloArray(long[] ids, String[] names, RoutingContext ctx) { log.info("ids={}", Arrays.toString(ids)); log.info("names={}", Arrays.toString(names)); return ctx.request().params().entries(); } @RequestMapping("query/list") public List> queryArray(List ids, TreeSet names, LinkedList rawList, RoutingContext ctx) { log.info("ids={}", ids); log.info("names={}", names); log.info("rawList={}", rawList); return ctx.request().params().entries(); } @RequestMapping("query/bean") public BeanReq queryBean(BeanReq req) { log.info("req={}", req); return req; } @RequestMapping(value = "post/body", method = HttpMethod.POST) public BeanReq postRequestBody(@RequestBody BeanReq req) { log.info("req={}", req); return req; } } ``` ## Spring-like Annotations - [x] RestController - [x] RequestMapping (目前不支持类上使用) - [x] RequestBody - [ ] GetMapping - [ ] PostMapping - [ ] PutMapping - [ ] DeleteMapping - [ ] PatchMapping ## RxJava2 - [x] upload file - [x] download file ## Database Access - [ ] mysql(jpa/mybatis) - [ ] mongodb ## Other - [x] package scan