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-ifx
:Chinese Service Plugins for different chinese local cloud services(**本土插件包)vertx-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 your wan't to study vert.x development skill, you can refer chinese tutorial:《Vert.x逐陆记》.
If you want to use Zero framework, you can add following dependency into you pom.xml
to use Zero:
<parent>
<artifactId>vertx-import</artifactId>
<groupId>cn.vertxup</groupId>
<version>0.4.7.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
(Postman link is rebuilding )
- Restful Web Service
- 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
- Async Non-Blocked
- 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
- JSR330 Dependenncy Injection
- JSR303 Bean Validation
- 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
- JSR340 Filter/Listener
- Programming Style & User-defined
- Utility X Tool Box
- 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
- Jooq for MySql
- Mongo
- Yaml Connfiguration
- D10068 - Configuration, vertx.yml
- D10069 - Configuration, vertx-server.yml
- D10070 - Configuration, vertx-inject.yml
- D10071 - Configuration, vertx-error.yml
- D10072 - Configuration, vertx-mysql.yml
- D10073 - Configuration, vertx-mongo.yml
- D10074 - Configuration, vertx-etcd3.yml
- D10075 - Configuration, vertx-rpc.yml
- D10102 - Configuration, vertx-redis.yml
- D10103 - Configuration, vertx-secure.yml
- D10106 - Configuration, vertx-tp.yml
- Native Support
- Micro Service Development
- D10082 - Micro, Environment Preparing
- D10083 - Micro, Rpc Mode
- D10084 - Micro, Configuration
- D10085 - Micro, Simple Rpc
- D10086 - Micro, Future with Utility X
- D10087 - Micro, Multi Rpc Calls
- D10088 - Micro Stream, Sender ( Agent ) to Terminator
- D10089 - Micro Stream, Consumer ( Worker ) to Terminator
- D10090 - Micro Stream, Consumer Sync Mode to Terminator
- D10091 - Micro Stream, Consumer Async Mode to Terminator
- D10092 - Micro Stream, Consumer T Mode to Terminator
- D10093 - Micro Stream, Originator/Coordinator/Terminator
- Security Module
- Chinese Plugins
- Third Part Reference
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);
......
}