轻量级 Java Web 框架 – https://github.com/JeffLi1993/fast-framework
源码地址:我的 GitHub地址
作者:李强强 也叫 泥瓦匠
QQ群:编程之美 365234583 立即加入
git clone https://github.com/JeffLi1993/fast-framework.git
cd fast-framework // cd 到工程根目录 mvn clean install // 编译工程
cd fast-sample // cd 到 sample 案例工程根目录 mvn jetty:run // 启动 sample 工程
Console 出现如下结果,表示服务器成功启动:
... [INFO] Started ServerConnector@f1a45f8{HTTP/1.1}{0.0.0.0:8080} [INFO] Started @5133ms [INFO] Started Jetty Server [INFO] Starting scanner at interval of 10 seconds.
在浏览器中打开:
http://localhost:8080/hello?name=BYSocket
会得到如下结果: