This project is based on Vert.x, the idea came from Spring-Boot framework. It could help developers focus on business requirements instead of more details of Vert.x. The project contains two parts "Up" and "Zero". "Up" means running up, "Zero" means no configuration provided, you could run your project with default configuration only.
Micro Service architecture is a future focused method to design and build mature system and help more companies to implement project faster, based on this idea, Vertx Zero Up Framework came out. It's micro-service oriented framework and will be verified by real projects. Also it provide a tool set to help developers to do correct things. The last point is that because of Event Driven Model, it's high performance framework.
This framework contains four sub-projects, all these projects are put in vertx-gaia
project
vertx-gaia/vertx-co
: Core Library of Zero Up Frameworkvertx-gaia/vertx-tp
: Third part integration components in Zero Up Frameworkvertx-gaia/vertx-up
: Zero Up Engine with nested vert.x web containervertx-gaia/vertx-rx
: Zero Up Engine with nested rxjava web container instead of web containervertx-import
: Zero Usage dependency project to perform development, provide uniform dependency for your projects.vertx-zeus/*
: Zero Examples, it contains all the tutorials of this framework
If you want to use Zero framework, you can add following dependency into you pom.xml
to use Zero:
Before 0.4.5.1 ( Direct )
<dependency>
<groupId>cn.vertxup</groupId>
<artifactId>vertx-up</artifactId>
<version>0.4.5</version>
</dependency>
From 0.4.5.1 ( Inherit )
<parent>
<artifactId>vertx-import</artifactId>
<groupId>cn.vertxup</groupId>
<version>0.4.5.1</version>
</parent>
In your project, you can provide main entry only as following to run Zero ( Annotated with @Up
) .
import io.vertx.up.VertxApplication;
import io.vertx.up.annotations.Up;
@Up
public class Driver {
public static void main(final String[] args) {
VertxApplication.run(Driver.class);
}
}
Once the Zero is up, you can see following logs in your console ( The default port is 6083 ):
[ ZERO ] ZeroHttpAgent Http Server has been started successfully. \
Endpoint: http://0.0.0.0:6083/
For all tutorial testing cases, you can import following resource with Postman Tool
https://www.getpostman.com/collections/d64b2efe4d47599efe6e
- Standalone Mode
- D10001 - Getting Start
- D10002 - Origin Story, Hi Zero
- D10003 - JSR311, @Path...EndPoint
- D10004 - JSR311, @GET,@POST...Http Method
- D10005 - JSR311, @QueryParam...Parameters
- D10006 - JSR311, @PathParam...Parameters
- D10007 - JSR311, @FormParam...Parameters
- D10008 - JSR311, @HeaderParam...Parameters
- D10009 - JSR311, @CookieParam...Parameters
- D10010 - Zero JSR311, @BodyParam...Parameters
- D10011 - Zero JSR311, @BodyParam...Pojo
- D10012 - Zero JSR311, @StreamParam...Parameters
- D10013 - Zero JSR311, @StreamParam...File/FileUpload
- D10014 - Zero JSR311, @SessionParam...Parameters
- D10015 - By Typed Parameters
- D10016 - JSR311, @Consumes...Media Type
- D10017 - JSR311, @Produces...Media Type
- D10018 - Non-Blocking, Enable EventBus
- D10019 - Non-Blocking, Mode 1 Sync Mode
- D10020 - Non-Blocking, Mode 2 Ping Mode
- D10021 - Non-Blocking, Mode 3 One Way Mode
- D10022 - Non-Blocking, Mode 4 Async Mode ( Java Style )
- D10023 - Non-Blocking, Mode 4 Experimental extension
- D10024 - Non-Blocking, Mode 5 Async Mode ( vert.x style )
- D10025 - ( Recommend ) Non-Blocking, Mode 5 Experimental extension
- D10026 - JSR330, @Inject Simple Java Object
- D10027 - JSR330, @Inject One Implementation
- D10028 - Zero JSR330, @Inject Multi Implementation
- D10029 - JSR303, @NotNull
- D10030 - JSR303, @NotNull message
- D10031 - JSR303, @NotNull message template
- D10032 - JSR303, @DefaultValue for parameters
- D10033 - JSR303, @Null for value
- D10034 - JSR303, @AssertTrue/@AssertFalse for boolean
- D10035 - JSR303, @Min/@Max for numeric
- D10036 - JSR303, @DecimalMin/@DecimalMax for decimal
- D10037 - JSR303, @Size usage
- D10038 - JSR303, @Digits for decimal
- D10039 - JSR303, @Future, @Past for date
- D10040 - JSR303, @Pattern for regular expression
- D10041 - JSR303, 2.x version
- D10042 - JSR303, Pojo First
- D10043 - Zero JSR303, Body Validation
- D10044 - Programming Styles
- D10045 - Interface Style
- D10046 - Utility X Turn-On
- D10047 - Utility X, JsonObject Processing
- D10048 - Utility X, Pager Processing
- D10049 - Utility X, Sorter Processing
- D10050 - Utility X, Errors
- D10051 - Utility X, JsonArray/Unique Extract
- D10052 - Utility X, User Data
- D10053 - Utility X, Normalized Response
- D10054 - Utility X Input, Agent Mode
- D10055 - Utility X Input, Interface Style
- D10056 - Utility X Basic Future
- D10057 - Utility X, thenParallel
- D10058 - Utility X, thenParallelArray/Json
- D10059 - Utility X, thenScatterJson
- D10060 - Utility X, thenError
- D10061 - Jooq/mysql, Configuration
- D10062 - Jooq/CRUD, Read Operation
- D10063 - Jooq/CRUD, Write Operation
- D10064 - Jooq/CRUD, Fetch One Operation
- D10065 - Jooq/CRUD, Fetch List Operation
- D10066 - Jooq/CRUD, Filter Syntax
- D10067 - Jooq/CRUD, Paging/Sorting
- Micro Mode
- Error Code List
You also could use following function in your coding to get Logger component.
// Zero Logger initialized, connect to vert.x logging system directly but uniform managed by zero.
import io.vertx.up.log.Annal;
// Then in your class
public final class Statute {
private static final Annal LOGGER = Annal.get(Statute.class);
......
}