Skip to content

YIminta/Netty-Blink

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Netty-Blink

简介

基于 Netty4 实现的快速、轻量级 WEB 框架。

                    
                     ▄▄▄▄       ██▓        ██▓    ███▄    █     ██ ▄█▀
                    ▓█████▄    ▓██▒       ▓██▒    ██ ▀█   █     ██▄█▒ 
                    ▒██▒ ▄██   ▒██░       ▒██▒   ▓██  ▀█ ██▒   ▓███▄░ 
                    ▒██░█▀     ▒██░       ░██░   ▓██▒  ▐▌██▒   ▓██ █▄ 
                    ░▓█  ▀█▓   ░██████▒   ░██░   ▒██░   ▓██░   ▒██▒ █▄
                    ░▒▓███▀▒   ░ ▒░▓  ░   ░▓     ░ ▒░   ▒ ▒    ▒ ▒▒ ▓▒
                    ▒░▒   ░    ░ ░ ▒  ░    ▒ ░   ░ ░░   ░ ▒░   ░ ░▒ ▒░
                     ░    ░      ░ ░       ▒ ░      ░   ░ ░    ░ ░░ ░ 
                     ░             ░  ░    ░              ░    ░  ░   
                          ░                                           

快速启动

启动类

public class App {

    public static void main(String[] args) throws Exception {
        BlinkServer.start(App.class) ;
    }
}

配置接口

@BlinkController("/home")
public class HomeRoute {

    @BlinkMethod("/test")
    public String home(String name) {
        return "Welcome come home NettyHttp:" + name;
    }
}

启动访问 http://localhost:54123/home?name=张三

img.png

说明

@BlinkController 注解定义的接口的根路径@BlinkMethod定义了方法的访问路径此项目为一个简单的 Http Web 框架轮子其中可以拓展项很多比如过滤器Body传参Cookie文件上传等等...

About

基于 Netty4 实现的快速、轻量级 WEB 框架

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published