{"id":18600590,"url":"https://github.com/houbb/mvc","last_synced_at":"2026-01-19T03:01:31.705Z","repository":{"id":250738169,"uuid":"230104421","full_name":"houbb/mvc","owner":"houbb","description":"High performance web mvc framework for java.(高性能 java web mvc 框架)","archived":false,"fork":false,"pushed_at":"2024-07-29T16:02:03.000Z","size":37,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-07-15T14:24:59.736Z","etag":null,"topics":["java-web","mvc","spring","web"],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/houbb.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGE_LOG.md","contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-12-25T13:07:13.000Z","updated_at":"2024-07-29T16:02:06.000Z","dependencies_parsed_at":"2024-07-29T21:42:16.359Z","dependency_job_id":"b1b360c9-8779-445c-9fb4-80e596d21ffe","html_url":"https://github.com/houbb/mvc","commit_stats":null,"previous_names":["houbb/mvc"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/houbb/mvc","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/houbb%2Fmvc","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/houbb%2Fmvc/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/houbb%2Fmvc/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/houbb%2Fmvc/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/houbb","download_url":"https://codeload.github.com/houbb/mvc/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/houbb%2Fmvc/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28559347,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-19T00:46:33.223Z","status":"online","status_checked_at":"2026-01-19T02:00:08.049Z","response_time":67,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["java-web","mvc","spring","web"],"created_at":"2024-11-07T02:04:34.516Z","updated_at":"2026-01-19T03:01:31.687Z","avatar_url":"https://github.com/houbb.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# mvc\n\n[mvc](https://github.com/houbb/mvc) 是一款简化版本的 spring mvc 框架，主要用于 mvc 原理的学习。\n\n\u003e [自己手写 spring mvc 简单实现](https://houbb.github.io/2018/09/27/java-servlet-tutorial-21-fake-mvc-simple)\n\n[![Build Status](https://travis-ci.com/houbb/mvc.svg?branch=master)](https://travis-ci.com/houbb/mvc)\n[![Maven Central](https://maven-badges.herokuapp.com/maven-central/com.github.houbb/mvc/badge.svg)](http://mvnrepository.com/artifact/com.github.houbb/mvc)\n[![](https://img.shields.io/badge/license-Apache2-FF0080.svg)](https://github.com/houbb/mvc/blob/master/LICENSE.txt)\n[![Open Source Love](https://badges.frapsoft.com/os/v2/open-source.svg?v=103)](https://github.com/houbb/mvc)\n\n# 快速开始\n\n## 准备\n\n- JDK 1.7\n\n- Maven 3.x+\n\n## 下载\n\n```\n$  git clone https://github.com/houbb/mvc.git\n```\n\n## 启动\n\n- 编译\n\n```\n$   mvc clean install\n```\n\n- 运行\n\nmvc-test 模块，使用 tomcat 插件运行\n\n## 访问\n\n[http://localhost:8081/index/echo?param=1](http://localhost:8081/index/echo?param=1)\n\n页面返回\n\n```\nEcho :1\n```\n\n# 入门使用\n\n## maven 引入\n\n```xml\n\u003cdependency\u003e\n    \u003cgroupId\u003ecom.github.houbb\u003c/groupId\u003e\n    \u003cartifactId\u003emvc-core\u003c/artifactId\u003e\n    \u003cversion\u003e0.0.2\u003c/version\u003e\n\u003c/dependency\u003e\n```\n\n## 使用\n\n和 spring mvc 类似\n\n```java\nimport com.github.houbb.mvc.annotation.Controller;\nimport com.github.houbb.mvc.annotation.RequestMapping;\nimport com.github.houbb.mvc.annotation.RequestParam;\n\nimport javax.servlet.http.HttpServletRequest;\nimport javax.servlet.http.HttpServletResponse;\nimport java.io.IOException;\n\n@Controller\n@RequestMapping(\"/index\")\npublic class IndexController {\n\n    @RequestMapping(\"/print\")\n    public void print(@RequestParam(\"param\") String param) {\n        System.out.println(param);\n    }\n\n    @RequestMapping(\"/echo\")\n    public void echo(HttpServletRequest request,\n                     HttpServletResponse response,\n                     @RequestParam(\"param\") String param) {\n        try {\n            response.getWriter().write(\"Echo :\" + param);\n        } catch (IOException e) {\n            e.printStackTrace();\n        }\n    }\n\n}\n```\n\n# 后期 Road-Map\n\n- [ ] 全覆盖 spring-mvc 特性\n\n- [ ] IOC 与 MVC 整合\n\n# 拓展阅读\n\n[Java Servlet 教程-20-自己手写实现 spring mvc 整体思路](https://houbb.github.io/2018/09/27/java-servlet-tutorial-20-fake-mvc)\n\n[Java Servlet 教程-21-自己手写 spring mvc 简单实现](https://houbb.github.io/2018/09/27/java-servlet-tutorial-21-fake-mvc-simple)\n\n[Spring Web MVC-00-重学 mvc 系列](https://houbb.github.io/2019/12/25/springmvc-00-index)\n\n[mvc-01-Model-View-Controller 概览](https://houbb.github.io/2016/05/14/mvc-01-overview)\n\n[web mvc-03-JFinal](https://houbb.github.io/2016/05/14/mvc-03-jfinal-intro)\n\n[web mvc-04-Apache Wicket](https://houbb.github.io/2016/05/14/mvc-04-apache-whicket-intro)\n\n[web mvc-05-JSF JavaServer Faces](https://houbb.github.io/2016/05/14/mvc-05-jsf-intro)\n\n[web mvc-06-play framework intro](https://houbb.github.io/2016/05/14/mvc-06-play-framework-intro)\n\n[web mvc-07-Vaadin](https://houbb.github.io/2016/05/14/mvc-07-Vaadin)\n\n[web mvc-08-Grails](https://houbb.github.io/2016/05/14/mvc-08-Grails)\n\n# 从零手写组件系列\n\n[java 从零手写 spring ioc 控制反转](https://github.com/houbb/ioc)\n\n[java 从零手写 spring mvc](https://github.com/houbb/mvc)\n\n[java 从零手写 jdbc-pool 数据库连接池](https://github.com/houbb/jdbc-pool)\n\n[java 从零手写 mybatis](https://github.com/houbb/mybatis)\n\n[java 从零手写 hibernate](https://github.com/houbb/hibernate)\n\n[java 从零手写 rpc 远程调用](https://github.com/houbb/rpc)\n\n[java 从零手写 mq 消息组件](https://github.com/houbb/rpc)\n\n[java 从零手写 cache 缓存](https://github.com/houbb/cache)\n\n[java 从零手写 nginx4j](https://github.com/houbb/nginx4j)\n\n[java 从零手写 tomcat](https://github.com/houbb/minicat)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhoubb%2Fmvc","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhoubb%2Fmvc","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhoubb%2Fmvc/lists"}