lvdong / blade

:rocket: a simple, elegant Java Web Framework!

Home Page:http://bladejava.com/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

a concise and powerful web development framework

@biezhi on weibo Hex.pm Build Status release

中文

What Is Blade?

blade Is a concise and powerful web development framework. If you like it, can be Star and Fork, thanks!

  • Simple MVC
    Use Java language to complete the MVC more concise.

  • Restful
    Provide a Restful style routing interface.

  • Multiple routing configuration
    Routing configuration in the form of more functional routing, annotations routing, routing reflection way.

  • Coding/JSON/configuration file
    Blade offers a variety of configurations, including JSON, the Properties file, hard coding.

  • Plug-in extension mechanism
    Blade extensions support you use third party components, modular development of more convenient.

  • Template engine Plugin
    Support access to mainstream template engine, there are beetl, jetbrick, velocity engine.

  • Support JDK1.6 +
    Support jdk1.6 or higher version.

  • The source code of less than 100kb
    The source code of the blade framework is less than 100 KB, learn easy, get started quickly, the code is simple.

Example

public class App extends Bootstrap{

	Logger logger = Logger.getLogger(App.class);
	@Override
	public void init() {
		// register router
		Blade.regsiter("/hello", SayHi.class, "hello");
		
		// anonymous router,java8 so simple
		Blade.get("/get", new Router() {
			@Override
			public String handler(Request request, Response response) {
				System.out.println("come get!!");
				System.out.println(request.query("name"));
				return "get";
			}
		});
		
		// multiple routing, java8 syntax
		Blade.get("/", "/index").run(request, response) -> {
			System.out.println("come index!!");
			return "index";
		});
	}
	
}

OK, all this may seem simple, refer to the guidelines for use more ready-made examples for your reference:

Plan

1. Improve the document
2. Add configurable log
3. Complete the Java China BBS
4. Maintain and optimize the code

Update

update log

licenses

Blade Framework based on the Apache2 License

Contact

Blog:https://biezhi.me

Mail: biezhi.me#gmail.com

QQ Group: 1013565

About

:rocket: a simple, elegant Java Web Framework!

http://bladejava.com/


Languages

Language:Java 100.0%