GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - zgcoding/fast-framework: 基于 JDK8 实现的轻量级 Java Web 框架

BranchesTags
Open more actions menu
 
 

Latest commit

 

History

38 Commits
38 Commits

Folders and files

NameName
Last commit message
Last commit date
doc/img
doc/img
 
 
fast-core
fast-core
 
 
fast-sample
fast-sample
 
 
.editorconfig
.editorconfig
 
 
.gitignore
.gitignore
 
 
ChangeLog.txt
ChangeLog.txt
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
README_EN.md
README_EN.md
 
 
pom.xml
pom.xml
 
 

Repository files navigation

泥瓦匠本意:
" 生产暂时不要用fast-framework, 是想让大家如何理解 MVC 框架的核心, 以后会带上系列实现文章"

maven-central License
[English Document]

fast-framework

轻量级 Java Web 框架

  • 基于 JDK 8 规范
  • 基于 Servlet 3.0 规范
  • 零配置
  • REST 服务接口 基于 JSON 传输
  • 目前提供 MVC ... 解决方案

作者与学习乐园

源码地址:我的GitHub地址
作者: 李强强 也叫 泥瓦匠
QQ群:编程之美 365234583 立即加入
欢迎阅读以下博文:
Fast-FrameWork系列文章:传送门

快速入门

1. 必备环境

  • Git 环境搭建
  • Maven 环境搭建

2. 下载 fast-framework 项目及 sample 案例

git clone https://github.com/JeffLi1993/fast-framework.git

3. Maven 编译 sample 案例

cd fast-framework // cd 到工程根目录

mvn clean install // 编译工程

4. 启动 sample 案例

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.

5. 访问 sample

GET 方式

在浏览器中打开 - text/plain; charset=UTF-8 :

GET http://localhost:8080/hello?name=BYSocket

会得到如下结果:
sample结果图

在浏览器中打开 - application/json; charset=UTF-8 :

GET http://localhost:8080/json?name=BYSocket

会得到如下结果:
sample结果图

POST 方式

在 POSTMan 或者 HTTP 客户端 :

POST localhost:8080/user/add HTTP/1.1
Content-Type: application/json
Cache-Control: no-cache
{
    "name":"BYSocket",
    "age":23
}

会得到如下结果:
sample结果图

About

基于 JDK8 实现的轻量级 Java Web 框架

Resources

Readme
Apache-2.0 license
Activity
Custom properties

Stars

0 stars

Watchers

1 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.