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.
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:
1. Improve the document
2. Add configurable log
3. Complete the Java China BBS
4. Maintain and optimize the code
Blade Framework based on the Apache2 License
Blog:https://biezhi.me
Mail: biezhi.me#gmail.com
QQ Group: 1013565