{"id":13607840,"url":"https://github.com/JoeyBling/SpringBoot_MyBatisPlus","last_synced_at":"2025-04-12T14:31:20.507Z","repository":{"id":22410943,"uuid":"96171629","full_name":"JoeyBling/SpringBoot_MyBatisPlus","owner":"JoeyBling","description":"SpringBoot集成MyBatisPlus","archived":false,"fork":false,"pushed_at":"2022-07-06T20:22:14.000Z","size":4951,"stargazers_count":308,"open_issues_count":9,"forks_count":142,"subscribers_count":14,"default_branch":"master","last_synced_at":"2025-04-06T18:15:54.751Z","etag":null,"topics":["bootstrap","mybatis","mybatisplus","mysql","redis","spring","springboot","sql"],"latest_commit_sha":null,"homepage":"http://bootplus.diandianys.com/admin","language":"JavaScript","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/JoeyBling.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null},"funding":{"github":null,"patreon":null,"open_collective":null,"ko_fi":null,"tidelift":null,"community_bridge":null,"liberapay":null,"issuehunt":null,"otechie":null,"custom":"https://zhousiwei.gitee.io/ibooks/about/#%E6%89%93%E8%B5%8F"}},"created_at":"2017-07-04T03:27:10.000Z","updated_at":"2025-04-04T14:37:04.000Z","dependencies_parsed_at":"2022-08-07T10:15:38.962Z","dependency_job_id":null,"html_url":"https://github.com/JoeyBling/SpringBoot_MyBatisPlus","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/JoeyBling%2FSpringBoot_MyBatisPlus","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JoeyBling%2FSpringBoot_MyBatisPlus/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JoeyBling%2FSpringBoot_MyBatisPlus/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JoeyBling%2FSpringBoot_MyBatisPlus/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/JoeyBling","download_url":"https://codeload.github.com/JoeyBling/SpringBoot_MyBatisPlus/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248581124,"owners_count":21128107,"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":["bootstrap","mybatis","mybatisplus","mysql","redis","spring","springboot","sql"],"created_at":"2024-08-01T19:01:22.049Z","updated_at":"2025-04-12T14:31:17.056Z","avatar_url":"https://github.com/JoeyBling.png","language":"JavaScript","readme":"# SpringBoot集成MyBatisPlus\n\n\n### 纯jar包集成SpringBoot请参考：[bootplus](https://github.com/JoeyBling/bootplus)\n\n\u003e **GitHub：[https://github.com/JoeyBling/SpringBoot_MyBatisPlus](https://github.com/JoeyBling/SpringBoot_MyBatisPlus)**\n\n\u003e **码云：[https://gitee.com/zhousiwei/springboot_mybatisplus](https://gitee.com/zhousiwei/springboot_mybatisplus)**\n\n\u003e **欢迎使用和Star支持，如使用过程中碰到问题，可以提出Issue，我会尽力完善**\n\n### 项目结构\n\n--------------------------------------------\n```lua\nwstro\n├── sql  -- 项目SQL语句\n│\n├── App -- 项目启动类\n│\n├── config -- 配置信息\n│\n├── controller -- 控制器\n|    ├── admin -- 后台管理员控制器\n│\n├── service -- 业务逻辑接口\n|    ├── impl -- 业务逻辑接口实现类\n│\n├── dao -- 数据访问接口\n│\n├── entity--  数据持久化实体类\n│\n├── datasources -- 多数据源工具类\n│\n├── shiro -- Shiro验证框架\n│\n├── task -- Quartz定时任务\n│\n├── util -- 工具类\n|    ├── FreeMarker -- 自定义FreeMarker标签\n│\n├── resources\n|    ├── mapper -- SQL对应的XML文件\n|    ├── templates -- FreeMarker模版\n│\n├── webapp\n|    ├── statics -- 静态资源\n|    ├── upload -- 上传文件\n|    ├── WEB-INF\n|    |    ├── templates -- 页面FreeMarker模版\n```\n\n### 技术选型：\n--------------------------------------------\n- 核心框架：`Spring Boot 1.5.1`\n- 安全框架：`Apache Shiro`\n- 视图框架：`Spring MVC`\n- 持久层框架：`MyBatis`、`MyBatisPlus`\n- 缓存技术：`EhCache`、`Redis`\n- 定时器：`Quartz`\n- 数据库连接池：`Druid`\n- 日志管理：`SLF4J`、`Log4j`\n- 模版技术：`FreeMarker`\n- 页面交互：`BootStrap`、`Layer`等\n\n### 本地部署\n--------------------------------------------\n- 创建数据库**wstro**，数据库编码为UTF-8\n- 执行**sql/wstro.sql**文件，初始化数据\n- 修改**application-dev.properties**，更新MySQL账号和密码\n- 修改**application-dev.properties**，更改Redis连接信息\n- 如果不想要Redis服务,注解掉`RedisConfig.java`的`@Configuration`注解\n- Eclipse、IDEA运行```App.java```，则可启动项目\n- 项目访问路径：http://localhost/admin\n- 账号密码：**admin/admin**\n- 多数据源配置：需要自己实现，参考`DataSourceConfig.java`\n\n### 演示效果图：\n--------------------------------------------\n![](https://images.gitee.com/uploads/images/2019/0308/142257_190114f4_1251167.png \"Swagger管理\")\n![](https://images.gitee.com/uploads/images/2019/0308/142257_ca1ca7bb_1251167.png \"菜单管理\")\n![](https://images.gitee.com/uploads/images/2019/0308/142256_080fd2e4_1251167.png \"新建用户\")\n![](https://images.gitee.com/uploads/images/2019/0308/142257_4e58e80c_1251167.png \"新建角色\")\n![](https://images.gitee.com/uploads/images/2019/0308/142257_b87a3779_1251167.png \"新建菜单\")\n![](https://images.gitee.com/uploads/images/2019/0308/142257_3b6c2e24_1251167.png \"用户信息\")\n","funding_links":["https://zhousiwei.gitee.io/ibooks/about/#%E6%89%93%E8%B5%8F"],"categories":["Projects Using MyBatis-Plus"],"sub_categories":["Tutorials"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FJoeyBling%2FSpringBoot_MyBatisPlus","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FJoeyBling%2FSpringBoot_MyBatisPlus","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FJoeyBling%2FSpringBoot_MyBatisPlus/lists"}