{"id":21064086,"url":"https://github.com/telzhou618/restful-api","last_synced_at":"2025-05-16T02:32:21.049Z","repository":{"id":105141787,"uuid":"94855424","full_name":"telzhou618/restful-api","owner":"telzhou618","description":"自动生成Restful风格CRUD接口框架，节约时间关注业务","archived":false,"fork":false,"pushed_at":"2017-07-07T01:43:48.000Z","size":108,"stargazers_count":23,"open_issues_count":1,"forks_count":9,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-04-03T18:52:48.317Z","etag":null,"topics":["mybatis","mybatis-plus","restful","restful-api","spring-mvc","swagger2"],"latest_commit_sha":null,"homepage":null,"language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/telzhou618.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2017-06-20T06:04:32.000Z","updated_at":"2022-03-17T06:54:34.000Z","dependencies_parsed_at":"2023-03-13T14:48:26.672Z","dependency_job_id":null,"html_url":"https://github.com/telzhou618/restful-api","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/telzhou618%2Frestful-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/telzhou618%2Frestful-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/telzhou618%2Frestful-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/telzhou618%2Frestful-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/telzhou618","download_url":"https://codeload.github.com/telzhou618/restful-api/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254456058,"owners_count":22074088,"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":["mybatis","mybatis-plus","restful","restful-api","spring-mvc","swagger2"],"created_at":"2024-11-19T17:48:15.108Z","updated_at":"2025-05-16T02:32:21.025Z","avatar_url":"https://github.com/telzhou618.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"### restful-api\r\n### 自动生成Restful风格CRUD接口框架，节约时间关注业务\r\n\r\n### 技术选型\r\n-------------\r\nSpring MVC、Mybatis、Mybatis-Plus(Mybatis增强插件)、Mysql、Maven、swagger2\r\n\r\n### 基本功能\r\n-------------\r\n1. 自动生成restful风格CRUD接口，可覆盖，可扩展，可禁止\r\n2. AOP实现日志记录,开发者可实现LogApi接口灵活处理日志\r\n3. 全局异常处理,响应统一格式的异常消息\r\n4. 响应统一格式的JSON数据,日期格式化处理,JSONP支持\r\n\r\n### 接口文档\r\n-------------\r\n![image](https://github.com/alexdoop/restful-api/blob/master/imgs/p.png)\r\n\r\n### 快速开始\r\n-------------\r\n1. git clone https://github.com/alexdoop/restful-api.git\r\n2. cd ~/restful-api \u0026\u0026 mvn install\r\n3. cd restful-api-web \u0026\u0026 mvn jetty:run\r\n4. http://localhost:8080/swagger-ui.html\r\n\r\n### 接口生成\r\n-------------\r\n1. 创建表tb_user,字段id(int),userName(varchar),password(varchar),age(int)\r\n2. 使用test下的MysqlGenerator.java生成model,mapper,xml,service,并拷贝到当前项目对应的目录下\r\n3. 在controller包下创建UserController,继承CurdController,再无需编写任何代码即可拥有CRDU四个标准的Restful风格接口\r\n4. 重启项目,over,开发接口就是这么简单\r\n\r\n### 开发进度\r\n-------------\r\n正在努力开发中...\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftelzhou618%2Frestful-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftelzhou618%2Frestful-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftelzhou618%2Frestful-api/lists"}