{"id":19253460,"url":"https://github.com/mars05/crud-intellij-plugin","last_synced_at":"2025-07-09T11:06:39.551Z","repository":{"id":190317544,"uuid":"184971390","full_name":"mars05/crud-intellij-plugin","owner":"mars05","description":"🛠︎一个用于代码生成的IDEA插件，可以根据数据库表结构，帮助您从不同的模板快速生成相关代码。","archived":false,"fork":false,"pushed_at":"2023-08-24T03:20:39.000Z","size":1680,"stargazers_count":306,"open_issues_count":4,"forks_count":80,"subscribers_count":11,"default_branch":"master","last_synced_at":"2025-06-13T11:43:03.487Z","etag":null,"topics":["code-generator","crud","idea-plugin","intellij-plugin","plugin","tools"],"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/mars05.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-05-05T03:00:42.000Z","updated_at":"2025-05-01T14:09:24.000Z","dependencies_parsed_at":null,"dependency_job_id":"6578f710-0170-41dd-b38d-1b6c296b8ce1","html_url":"https://github.com/mars05/crud-intellij-plugin","commit_stats":null,"previous_names":["mars05/crud-intellij-plugin"],"tags_count":10,"template":false,"template_full_name":null,"purl":"pkg:github/mars05/crud-intellij-plugin","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mars05%2Fcrud-intellij-plugin","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mars05%2Fcrud-intellij-plugin/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mars05%2Fcrud-intellij-plugin/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mars05%2Fcrud-intellij-plugin/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mars05","download_url":"https://codeload.github.com/mars05/crud-intellij-plugin/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mars05%2Fcrud-intellij-plugin/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264446715,"owners_count":23609632,"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":["code-generator","crud","idea-plugin","intellij-plugin","plugin","tools"],"created_at":"2024-11-09T18:31:07.925Z","updated_at":"2025-07-09T11:06:38.877Z","avatar_url":"https://github.com/mars05.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"![](./docs/crud-intellij-plugin.png)\n\n# crud-intellij-plugin\n\n[![LICENSE](https://img.shields.io/github/license/mars05/crud-intellij-plugin)](https://raw.githubusercontent.com/mars05/crud-intellij-plugin/master/LICENSE)\n[![Plugin Version](https://img.shields.io/github/v/release/mars05/crud-intellij-plugin)](https://github.com/mars05/crud-intellij-plugin/releases)\n[![Plugin Downloads](https://img.shields.io/jetbrains/plugin/d/12440-crud)](https://plugins.jetbrains.com/plugin/12440)\n[![GitHub Stars](https://img.shields.io/github/stars/mars05/crud-intellij-plugin?logo=github)](https://github.com/mars05/crud-intellij-plugin)\n[![Hits](https://hits.b3log.org/crud-hub/idea.svg)](https://github.com/mars05/crud-intellij-plugin)\n\n一个用于**代码生成**的插件，可以根据数据库表结构，帮助您从不同的模板快速生成相关代码。crud-intellij-plugin 插件不仅可以在IDEA中使用，在intellij系列产品中皆可使用。\n\n**相关链接:**\n\n- 官网: [Crud Hub](https://crud-hub.top/)\n\n- 在线文档: [Crud Hub Docs](https://crud-hub.top/docs/)\n\n- https://github.com/mars05/crud-hub\n\n**拥有的功能点:**\n\n- 项目生成: 创建一个新的项目\n\n- 代码生成: 在已有项目中，根据表结构生成代码，支持从数据库表、DDL、实体类生成模板代码\n\n- 多数据库: 全局维护数据库连接，目前支持**MySQL、PostgreSQL、Oracle**\n\n- 模板导入: 按需从模板市场导入或使用访问令牌导入自定义模板。模板使用说明请访问: [在线文档](https://crud-hub.top/docs/plugin/idea.html#%E6%A8%A1%E6%9D%BF%E5%AF%BC%E5%85%A5)\n\n## 插件安装\n- **插件市场:**  \u003ckbd\u003eFile\u003c/kbd\u003e \u003e \u003ckbd\u003eSettings\u003c/kbd\u003e \u003e \u003ckbd\u003ePlugins\u003c/kbd\u003e \u003e \u003ckbd\u003eMarketplace\u003c/kbd\u003e \u003e \u003ckbd\u003eSearch for \"crud\"\u003c/kbd\u003e \u003e \u003ckbd\u003eInstall Plugin\u003c/kbd\u003e\n\n![](./docs/install.jpg)\n\n- **本地安装**\n\n下载插件文件: [crud-plugin](https://github.com/mars05/crud-intellij-plugin/releases/download/v2.0.1/crud-plugin-2.0.1.zip)\n\n\n## 模板导入\n\n- **步骤1:** 打开Crud设置界面\n\n\u003ckbd\u003eFile\u003c/kbd\u003e \u003e \u003ckbd\u003eSettings\u003c/kbd\u003e \u003e \u003ckbd\u003eTools\u003c/kbd\u003e \u003e \u003ckbd\u003eCrud\u003c/kbd\u003e \u003e \u003ckbd\u003e模板导入\u003c/kbd\u003e\n\n![](./docs/mbdr.jpg)\n\n- **步骤2:** 市场搜索结果中点导入按钮或点击令牌导入，市场搜索的是开放的模板。对于不开放的模板，可以在 **Crud Hub** \u003e [我的模板](https://crud-hub.top/#/mytemplate/template) 设置访问令牌，然后通过访问令牌导入到插件中\n\n![](./docs/lpdr.jpg)\n\n- **步骤3:** 我的模板中可以管理已导入的模板。插件导入后的模板是离线模板，不会随 **Crud Hub** 中的模板修改可自动更新，在插件的**我的模板**中，可以点击刷新模板来和**Crud Hub**中的模板进行同步更新\n\n![](./docs/wdmb.jpg)\n\n## 项目生成\n\n打开创建项目的界面:  \u003ckbd\u003eNew\u003c/kbd\u003e \u003e \u003ckbd\u003eProject\u003c/kbd\u003e / \u003ckbd\u003eModule\u003c/kbd\u003e \u003e \u003ckbd\u003eCrud\u003c/kbd\u003e \u003e \u003ckbd\u003e模板项目选择\u003c/kbd\u003e\n\n![](./docs/xmsc.jpg)\n\n## 代码生成\n\n选中已有项目，鼠标右键: \u003ckbd\u003eCrud\u003c/kbd\u003e \u003e \u003ckbd\u003e代码生成\u003c/kbd\u003e \u003e \u003ckbd\u003e模板项目选择\u003c/kbd\u003e\n\n![](./docs/dmsc1.jpg)\n\n![](./docs/dmsc2.jpg)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmars05%2Fcrud-intellij-plugin","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmars05%2Fcrud-intellij-plugin","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmars05%2Fcrud-intellij-plugin/lists"}