- Notifications
You must be signed in to change notification settings - Fork1
High performance web mvc framework for java.(高性能 java web mvc 框架)
License
NotificationsYou must be signed in to change notification settings
houbb/mvc
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
mvc 是一款简化版本的 spring mvc 框架,主要用于 mvc 原理的学习。
JDK 1.7
Maven 3.x+
$ git clone https://github.com/houbb/mvc.git- 编译
$ mvc clean install- 运行
mvc-test 模块,使用 tomcat 插件运行
http://localhost:8081/index/echo?param=1
页面返回
Echo :1<dependency> <groupId>com.github.houbb</groupId> <artifactId>mvc-core</artifactId> <version>0.0.2</version></dependency>
和 spring mvc 类似
importcom.github.houbb.mvc.annotation.Controller;importcom.github.houbb.mvc.annotation.RequestMapping;importcom.github.houbb.mvc.annotation.RequestParam;importjavax.servlet.http.HttpServletRequest;importjavax.servlet.http.HttpServletResponse;importjava.io.IOException;@Controller@RequestMapping("/index")publicclassIndexController {@RequestMapping("/print")publicvoidprint(@RequestParam("param")Stringparam) {System.out.println(param); }@RequestMapping("/echo")publicvoidecho(HttpServletRequestrequest,HttpServletResponseresponse,@RequestParam("param")Stringparam) {try {response.getWriter().write("Echo :" +param); }catch (IOExceptione) {e.printStackTrace(); } }}
全覆盖 spring-mvc 特性
IOC 与 MVC 整合
Java Servlet 教程-20-自己手写实现 spring mvc 整体思路
Java Servlet 教程-21-自己手写 spring mvc 简单实现
mvc-01-Model-View-Controller 概览
web mvc-05-JSF JavaServer Faces
About
High performance web mvc framework for java.(高性能 java web mvc 框架)
Topics
Resources
License
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Releases
No releases published
Packages0
No packages published
Uh oh!
There was an error while loading.Please reload this page.