{"id":20875236,"url":"https://github.com/pushyzheng/schla-webmvc","last_synced_at":"2026-05-05T11:37:23.620Z","repository":{"id":115885808,"uuid":"174807414","full_name":"pushyzheng/schla-webmvc","owner":"pushyzheng","description":"A web-mvc auto-injection framework that is based on Netty","archived":false,"fork":false,"pushed_at":"2019-04-10T12:15:29.000Z","size":138,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"dev","last_synced_at":"2025-03-12T16:16:24.313Z","etag":null,"topics":["java","mvc-framework","netty","spring"],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/pushyzheng.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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-03-10T10:18:57.000Z","updated_at":"2019-09-08T11:10:46.000Z","dependencies_parsed_at":null,"dependency_job_id":"969070ca-9c50-4bee-b8cb-1aea2eb214e6","html_url":"https://github.com/pushyzheng/schla-webmvc","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/pushyzheng/schla-webmvc","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pushyzheng%2Fschla-webmvc","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pushyzheng%2Fschla-webmvc/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pushyzheng%2Fschla-webmvc/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pushyzheng%2Fschla-webmvc/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pushyzheng","download_url":"https://codeload.github.com/pushyzheng/schla-webmvc/tar.gz/refs/heads/dev","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pushyzheng%2Fschla-webmvc/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264003466,"owners_count":23542635,"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":["java","mvc-framework","netty","spring"],"created_at":"2024-11-18T06:43:20.172Z","updated_at":"2026-05-05T11:37:23.565Z","avatar_url":"https://github.com/pushyzheng.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# schla-webmvc\n\n## What's that\n\n`schla-webmvc` is a web MVC framework, which can inject services and components to controllers automatically.\n\nThe obvious merit is `schla-webmvc` is based on Netty that is an asynchronous event-driven network application framework.\n\n## Quick Start\n\nThe HelloWorld sample is very easy. The same to `SpringBoot`, you just call the `run ` method of `SchlaWebmvcApplication `class then you can start an HTTP application.\n\n```java\npublic class DemoApplication {\n    public static void main(String[] args) {\n        SchlaWebmvcApplication.run(DemoApplication.class);\n    }\n}\n```\n\nYou can define an API by `Cotroller`  annotation, you do as follows：\n\n```java\n@Controller\npublic class UserController {\n    \n    @GET(\"/users\")\n    public String main(HttpRequest request, HttpResponse response) {\n        return request.getUri();\n    }\n}\n```\n\nwhat's more, `schla-webmvc` don't like `SpringBoot`, it can define RESTful API by `RestController` annotation and the name of method will be defined as the request method：\n\n```java\n@RestController(value = \"/posts\", contentType = ContentType.JSON)\npublic class PostRestController {\n    \n    public String get() {\n        return \"PostRestController::get\";\n    }\n    \n    public String post(@RequestBody UserDTO userDTO) {\n        return \"PostRestController::post\";\n    }\n    \n    public String put(@RequestBody UserDTO userDTO) {\n        return \"PostRestController::put\";\n    }\n\n    public String delete(@RequestBody UserDTO userDTO) {\n        return \"PostRestController::delete\";\n    }\n}\n```\n\n## Package\n\nIf you want to package your project to jar, you must add the maven plugin as follows in your `pom.xml`:\n\n```xml\n\u003cbuild\u003e\n    \u003cplugins\u003e\n            \u003cgroupId\u003eorg.apache.maven.plugins\u003c/groupId\u003e\n            \u003cartifactId\u003emaven-shade-plugin\u003c/artifactId\u003e\n            \u003cexecutions\u003e\n                \u003cexecution\u003e\n                    \u003cphase\u003epackage\u003c/phase\u003e\n                    \u003cgoals\u003e\n                        \u003cgoal\u003eshade\u003c/goal\u003e\n                    \u003c/goals\u003e\n                    \u003cconfiguration\u003e\n                        \u003cfilters\u003e\n                            \u003cfilter\u003e\n                                \u003cartifact\u003e*:*\u003c/artifact\u003e\n                                \u003cexcludes\u003e\n                                    \u003cexclude\u003eMETA-INF/*.SF\u003c/exclude\u003e\n                                    \u003cexclude\u003eMETA-INF/*.DSA\u003c/exclude\u003e\n                                    \u003cexclude\u003eMETA-INF/*.RSA\u003c/exclude\u003e\n                                \u003c/excludes\u003e\n                            \u003c/filter\u003e\n                        \u003c/filters\u003e\n                        \u003ctransformers\u003e\n                            \u003ctransformer\n                                    implementation=\"org.apache.maven.plugins.shade.resource.ManifestResourceTransformer\"\u003e\n                                \u003cmainClass\u003echange your main class\u003c/mainClass\u003e\n                            \u003c/transformer\u003e\n                        \u003c/transformers\u003e\n                        \u003cartifactSet\u003e\n\n                        \u003c/artifactSet\u003e\n                    \u003c/configuration\u003e\n                \u003c/execution\u003e\n            \u003c/executions\u003e\n        \u003c/plugin\u003e\n    \u003c/plugins\u003e\n\u003c/build\u003e\n```\n\n## Features\n\n- Asynchronous HTTP request;\n- Auto-configure `Spring `with `mybatis`;\n- Supports `webSocket` protocol;\n- Depends on Spring;\n- Contains Redis \u0026 Mongo component.\n\n## contact me\n\nif you want to ask some questions or you want join me, you can contact with me by Email：\n\n- pushy.zhengzuqin@gmail.com\n- 1437876073@qq.com\n\n## License\n\n```\nMIT License\n\nCopyright (c) 2019 Pushy\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpushyzheng%2Fschla-webmvc","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpushyzheng%2Fschla-webmvc","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpushyzheng%2Fschla-webmvc/lists"}