Here are the examples of the java api com.blade.Blade.of() taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.
3 Examples
19
Source : MainApp.java
with The Unlicense
from diegopacheco
with The Unlicense
from diegopacheco
public static void main(String[] args) {
Blade.of().get("/", ctx -> ctx.text("Hello Blade")).start();
}
19
Source : Application.java
with The Unlicense
from diegopacheco
with The Unlicense
from diegopacheco
public static void main(String[] args) {
Blade.of().start(Application.clreplaced, args);
}
16
Source : Application.java
with MIT License
from biezhi
with MIT License
from biezhi
public static void main(String[] args) {
CsrfOption csrfOption = CsrfOption.builder().build();
csrfOption.getUrlExclusions().add("/callback/youzan");
csrfOption.getUrlExclusions().add("/callback/payjs");
Blade.of().use(new CsrfMiddleware(csrfOption)).use(new XssMiddleware()).start(Application.clreplaced, args);
}