{"id":18906721,"url":"https://github.com/tellsea/mybatis-plus-code","last_synced_at":"2025-04-15T04:31:40.980Z","repository":{"id":37318963,"uuid":"198245036","full_name":"Tellsea/mybatis-plus-code","owner":"Tellsea","description":"Mybatis Plus 代码生成器，核心实现功能一键生成 Controller、Service、ServiceImpl、Mapper、Mapper.xml","archived":false,"fork":false,"pushed_at":"2022-06-21T01:31:11.000Z","size":7081,"stargazers_count":29,"open_issues_count":2,"forks_count":16,"subscribers_count":1,"default_branch":"master","last_synced_at":"2023-03-04T07:41:26.160Z","etag":null,"topics":["common","freemarker","global","lombok","mybatis","mybatis-plus","spring-boot","thymeleaf","tkmybatis"],"latest_commit_sha":null,"homepage":"http://www.tellsea.cn/","language":"FreeMarker","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/Tellsea.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}},"created_at":"2019-07-22T14:54:24.000Z","updated_at":"2022-10-18T09:15:45.000Z","dependencies_parsed_at":"2022-09-10T04:17:06.291Z","dependency_job_id":null,"html_url":"https://github.com/Tellsea/mybatis-plus-code","commit_stats":null,"previous_names":[],"tags_count":null,"template":null,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Tellsea%2Fmybatis-plus-code","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Tellsea%2Fmybatis-plus-code/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Tellsea%2Fmybatis-plus-code/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Tellsea%2Fmybatis-plus-code/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Tellsea","download_url":"https://codeload.github.com/Tellsea/mybatis-plus-code/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":223658194,"owners_count":17181128,"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":["common","freemarker","global","lombok","mybatis","mybatis-plus","spring-boot","thymeleaf","tkmybatis"],"created_at":"2024-11-08T09:18:30.668Z","updated_at":"2024-11-08T09:18:31.678Z","avatar_url":"https://github.com/Tellsea.png","language":"FreeMarker","readme":"# Mybatis Plus 代码生成器\n\nStar一下，谢谢 🎉🎉\n\n核心实现功能一键生成 Controller、Service、ServiceImpl、Mapper、Mapper.xml\n\n参考文档，[Mybatis Plus 官网文档](https://mp.baomidou.com/guide/generator.html)\n\n## 项目特点\n\n- 使用简单，快速上手，直接运行 Main 函数即可\n- 定制每个模板，非常的灵活高效，模板位置在templates下\n- 集成了 全局异常处理、公共返回结果集处理，使逻辑处理更加清晰\n- 集成了TkMybatis，使操作持久层接口更加容易\n- 自定义TkMybatis批量更新方法，因为官方没有提供此接口\n- 抽离公共控制层、接口层、持久层，使方法调用更加简单\n\n## 使用方法\n\n首先创建数据库，名称为mybatis-plus-code，然后导入 doc/sql/mybatis-plus-code.sql 文件\n\n修改数据源配置，根据自己的实际地址修改,配置类位置为：`cn.tellsea.skeleton.core.mybatisplus.MybatisPlusCodeConfig`\n\n```java\ndsc.setUrl(\"jdbc:mysql://localhost:3306/mybatis-plus-code?characterEncoding=utf8\");\ndsc.setDriverName(\"com.mysql.jdbc.Driver\");\ndsc.setUsername(\"root\");\ndsc.setPassword(\"123456\");\n```\n\n接下来，找到Main方法，使用Java的方式运行即可。启动类路径：`cn.tellsea.skeleton.core.mybatisplus.MybatisPlusCode`\n\n\u003e 注意：GIF图偏大，建议下载后查看，这样不会产生卡顿现象\n\n![mybatis-plus-code](https://github.com/Tellsea/mybatis-plus-code/blob/master/doc/images/mybatis-plus-code.gif)\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftellsea%2Fmybatis-plus-code","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftellsea%2Fmybatis-plus-code","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftellsea%2Fmybatis-plus-code/lists"}