Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

nurmuhammad/rvc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

History

47 Commits

Repository files navigation

rvc

Getting started

public class HelloWorld {
 public static void main(String[] args) {
 new RvcServer()
 .before(() -> {
 Response.get().gzip();
 })
 .get("/hello", () -> "Hello world!")
 .start();
 }
}

Or you can use

Main.java

public class Main {
 public static void main(String[] args) throws Exception {
 RvcServer rvcServer = new RvcServer().port(4567);
 rvcServer.init();
 rvcServer.classes(
 WelcomeController.class
 /* add more classes here */
 )
				.start();
 }
}

WelcomeController.java

import rvc.ann.*;
@Controller
public class WelcomeController {
 @GET
 Object index(){
 return "hello world";
 }
 @GET
 @Json
 Object toJson(){
 return "hello, world".split(",");
 }
}

Start you code and enter to these urls

http://localhost:4567/to-json

http://localhost:4567/index

Here my real project using this "framework".

https://github.com/nurmuhammad/rvcjava-cms

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

AltStyle によって変換されたページ (->オリジナル) /