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 - fantj2016/easy-springmvc: 手动实现简单的mvc框架

BranchesTags
Open more actions menu

Latest commit

 

History

5 Commits
5 Commits

Folders and files

NameName
Last commit message
Last commit date
src/main
src/main
 
 
.gitignore
.gitignore
 
 
README.md
README.md
 
 
mvc-workflow.png
mvc-workflow.png
 
 
mvnw
mvnw
 
 
pom.xml
pom.xml
 
 

Repository files navigation

Easy-MVC

一个简单的springmvc的源码实现,参考springMVC的核心功能及源码实现。

项目中只有一个Servlet的依赖:

        <dependency>
            <groupId>javax.servlet</groupId>
            <artifactId>servlet-api</artifactId>
            <version>2.4</version>
            <scope>provided</scope>
        </dependency>

How to use?

与spring&spring-mvc用法相同

How to work ?

IOC容器的实现

我们都知道,mvc围绕着DispatchServlet来展开工作,但是也需要IOC容器的支撑。

DispatchServlet.init() 来实现IOC容器的加载。

mvc功能实现

DispatchServlet.doPost/doGet() 来实现从客户端发起请求到页面渲染的工作,其工作流程图如下:

About

手动实现简单的mvc框架

Resources

Readme
Activity

Stars

5 stars

Watchers

0 watching

Forks

1 fork
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402792 — 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.