Veladder

A ladder for helping springer use vertx web
Alternatives To Veladder
Project NameStarsDownloadsRepos Using ThisPackages Using ThisMost Recent CommitTotal ReleasesLatest ReleaseOpen IssuesLicenseLanguage
Pac4j2,242146129a day ago96September 08, 2022apache-2.0Java
Security engine for Java (authentication, authorization, multi frameworks): OAuth, CAS, SAML, OpenID Connect, LDAP, JWT...
Hsweb Iot Cloud257
4 years ago8JavaScript
本项目已迁移至 github.com/jetlinks
Clean Architecture Example241
3 years ago1Java
An example to create a clean architecture with Java 11
Cloudunit153
5 years agon,ullagpl-3.0Java
The Turnkey DevOps Platform
Spring Vertx Ext46
4 years ago2apache-2.0Java
A spring vertx mod which creates spring aware verticles
Spring Webflux Research37
5 years agoJava
spring webflux research
Vert.x Generator36
3 years agomitJava
Vert.X-generator是基于javafx8开发的图形界面Vert.x代码生成器,使用 Apache FreeMarker 作为代码文件的模板,用户可以一键将数据库中的表生成为任意风格的.java代码文件(比如经典的三层模型);
Helloworld Web22
18 days agoJava
Hello World web application in 39 different ways in Java
Gerry Common Framework Vertx20
2 years agoapache-2.0Java
Vert.x-Web 3.2.1 same as spring framework web, not dependent spring ,annotation develop. Vertx-RPC remote call, annotation .
Humpapi19
3 years agoJava
Alternatives To Veladder
Select To Compare


Alternative Project Comparisons
Readme

veladder

A ladder for helping springer use vertx web

spring风格的vertx web框架

Get start

veladder可以使用类似spring mvc的注解来构建web服务,大部分功能是通过注解扫描进行实现的。

@Slf4j
@RestController
public class HelloController {

    @RequestMapping("hello/world")
    public String helloWorld() {
        return "Hello world";
    }

    @RequestMapping("echo")
    public Map<String, Object> echo(String message, Long token, int code, RoutingContext ctx) {
        log.info("uri={}", ctx.request().absoluteURI());

        log.info("message={}, token={}, code={}", message, token, code);
        HashMap<String, Object> map = new HashMap<>();
        map.put("message", message);
        map.put("token", token);
        map.put("code", code);
        return map;
    }

    @RequestMapping(value = "hello/array")
    public List<Map.Entry<String, String>> 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<Map.Entry<String, String>> queryArray(List<Long> ids, TreeSet<String> 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
Popular Vertx Projects
Popular Spring Projects
Popular Frameworks Categories
Related Searches

Get A Weekly Email With Trending Projects For These Categories
No Spam. Unsubscribe easily at any time.
Java
Spring
Mybatis
Rxjava
Vertx