{"id":15014228,"url":"https://github.com/houbb/minicat","last_synced_at":"2026-02-27T01:02:43.592Z","repository":{"id":233131500,"uuid":"780689075","full_name":"houbb/minicat","owner":"houbb","description":"The mini tomcat.(手写从零实现简易版 tomcat。别称【嗅虎】心有猛虎，轻嗅蔷薇。)","archived":false,"fork":false,"pushed_at":"2024-04-12T16:41:51.000Z","size":124,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-04-14T02:53:13.592Z","etag":null,"topics":["jar","java","jboss","jetty","netty","servlet","tomcat","war","web"],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","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}},"created_at":"2024-04-02T01:13:26.000Z","updated_at":"2024-04-14T02:53:20.784Z","dependencies_parsed_at":"2024-04-14T02:53:18.968Z","dependency_job_id":"65638567-4957-4c6d-915f-7ab493ed35a3","html_url":"https://github.com/houbb/minicat","commit_stats":null,"previous_names":["houbb/minicat"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/houbb%2Fminicat","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/houbb%2Fminicat/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/houbb%2Fminicat/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/houbb%2Fminicat/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/houbb","download_url":"https://codeload.github.com/houbb/minicat/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244959449,"owners_count":20538625,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["jar","java","jboss","jetty","netty","servlet","tomcat","war","web"],"created_at":"2024-09-24T19:45:21.007Z","updated_at":"2026-02-27T01:02:43.555Z","avatar_url":"https://github.com/houbb.png","language":"Java","funding_links":[],"categories":["Web服务器"],"sub_categories":["微服务框架"],"readme":"# 项目简介\n\n```\n /\\_/\\  \n( o.o ) \n \u003e ^ \u003c\n```\n\nmini-cat 是简易版本的 tomcat 实现。别称【嗅虎】(心有猛虎，轻嗅蔷薇。)\n\n[![Maven Central](https://maven-badges.herokuapp.com/maven-central/com.github.houbb/minicat/badge.svg)](http://mvnrepository.com/artifact/com.github.houbb/minicat)\n[![Build Status](https://www.travis-ci.org/houbb/minicat.svg?branch=master)](https://www.travis-ci.org/houbb/minicat?branch=master)\n[![Coverage Status](https://coveralls.io/repos/github/houbb/minicat/badge.svg?branch=master)](https://coveralls.io/github/houbb/minicat?branch=master)\n\n# 特性\n\n- 简单的启动实现/netty 支持\n\n- servlet 支持\n\n- 静态网页支持\n\n- filter/listener 支持\n\n- wars 支持\n\n# 变更日志\n\n\u003e [变更日志](CHANGE_LOG.md)\n\n# 快速开始\n\n## maven 依赖\n\n```xml\n\u003cdependency\u003e\n    \u003cgroupId\u003ecom.github.houbb\u003c/groupId\u003e\n    \u003cartifactId\u003eminicat\u003c/artifactId\u003e\n    \u003cversion\u003e0.7.0\u003c/version\u003e\n\u003c/dependency\u003e\n```\n\n## 启动测试\n\n运行测试类 `MiniCatBootstrapMain#main`\n\n```java\nMiniCatBootstrap bootstrap = new MiniCatBootstrap();\nbootstrap.start();\n```\n\n启动日志：\n\n```\n[INFO] [2024-04-03 11:09:15.178] [main] [c.g.h.m.s.s.WebXmlServletManager.register] - [MiniCat] register servlet, url=/my, servlet=com.github.houbb.minicat.support.servlet.MyMiniCatHttpServlet\n[INFO] [2024-04-03 11:09:15.180] [Thread-0] [c.g.h.m.b.MiniCatBootstrap.startSync] - [MiniCat] start listen on port 8080\n[INFO] [2024-04-03 11:09:15.180] [Thread-0] [c.g.h.m.b.MiniCatBootstrap.startSync] - [MiniCat] visit url http://127.0.0.1:8080\n```\n\n页面访问：[http://127.0.0.1:8080](http://127.0.0.1:8080)\n\n响应：\n\n```\nhttp://127.0.0.1:8080\n```\n\n## 测试\n\nservlet: http://127.0.0.1:8080/my\n\nhtml: http://127.0.0.1:8080/index.html\n\n# 系列教程\n\n[从零手写实现 apache Tomcat-01-入门介绍](https://houbb.github.io/2016/11/07/web-server-tomcat-02-hand-write-overview)\n\n[从零手写实现 apache Tomcat-02-web.xml 入门详细介绍](https://houbb.github.io/2016/11/07/web-server-tomcat-02-hand-write-web-xml)\n\n[从零手写实现 tomcat-03-基本的 socket 实现](https://houbb.github.io/2016/11/07/web-server-tomcat-03-hand-write-simple-socket)\n\n[从零手写实现 tomcat-04-请求和响应的抽象](https://houbb.github.io/2016/11/07/web-server-tomcat-04-hand-write-request-and-resp)\n\n[从零手写实现 tomcat-05-servlet 处理支持](https://houbb.github.io/2016/11/07/web-server-tomcat-05-hand-write-servlet-web-xml)\n\n[从零手写实现 tomcat-06-servlet bio/thread/nio/netty 池化处理](https://houbb.github.io/2016/11/07/web-server-tomcat-06-hand-write-thread-pool)\n\n[从零手写实现 tomcat-07-war 如何解析处理三方的 war 包？](https://houbb.github.io/2016/11/07/web-server-tomcat-07-hand-write-war)\n\n[从零手写实现 tomcat-08-tomcat 如何与 springboot 集成？](https://houbb.github.io/2016/11/07/web-server-tomcat-08-hand-write-embed)\n\n[从零手写实现 tomcat-09-servlet 处理类](https://houbb.github.io/2016/11/07/web-server-tomcat-09-hand-write-servlet)\n\n[从零手写实现 tomcat-10-static resource 静态资源文件](https://houbb.github.io/2016/11/07/web-server-tomcat-10-hand-write-static-resource)\n\n[从零手写实现 tomcat-11-filter 过滤器](https://houbb.github.io/2016/11/07/web-server-tomcat-11-hand-write-filter)\n\n[从零手写实现 tomcat-12-listener 监听器](https://houbb.github.io/2016/11/07/web-server-tomcat-12-hand-write-listener)\n\n\n# ROAD-MAP\n\n- [x] servlet 标准支持\n- [x] 请求线程池支持\n- [x] NIO 实现\n- [x] netty 实现\n- [x] 加载 war 包\n- [x] listener 的实现\n- [] error/welcome 页面？\n- [] printWriter 等兼容不够优雅\n- [] 内嵌支持？\n- [] session\n- [] 注解的解析支持\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhoubb%2Fminicat","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhoubb%2Fminicat","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhoubb%2Fminicat/lists"}