SpringBoot-Plus 先建立功能点是个好习惯,功能点被组织成一颗树,代表了系统应该提供功能的功能,我们看代码就会看到,功能点跟菜单,跟权限,和数据权限都有密切关系 1.2.2 添加代码 可以参考1.3业务代码生成生成初始化的代码,业务代码生成了14个文件,包含前后端所有代码,可以通过生成来了解代码习作规范 ...
spring-boot-plus是一套集成spring boot常用开发组件的后台快速开发框架,每个人都可以独立、快速、高效地开发项目!开源协议 MIT-License,任何个人或公司,均可基于此框架进行二次开发后,进行商业使用,无需授权!
.setDriverUrl("jdbc:mysql://localhost:3306/spring_boot_plus?useUnicode=true&characterEncoding=UTF-8&useSSL=false");// 包信息codeGenerator .setProjectPackagePath("io/geekidea/springbootplus") .setParentPackage("io.geekidea.springbootplus");// 组件作者等配置codeGenerator .setModuleName("foobar") ...
[spring-boot-plus swagger docs](https://spring-boot-plus.gitee.io/img/home/spring-boot-plus-swagger.png) ### [spring-boot-plus Java Api Docs](http://geekidea.io/spring-boot-plus-apidocs/)  ...
技术选型: Mybatis-Plus 这里我们选用了第三种方案(共享数据库,共享 Schema,共享数据表)来实现,也就意味着,每个数据表都需要有一个租户标识(tenant_id) 现在有数据库表(user)如下: 字段名 字段类型 描述 id int(11) 主键 name varchar(30) 姓名 tenant_id int(11) 多租户id 将tenant_id视为租户ID,用来...
:fire: Spring-Boot-Plus is an easy-to-use, high-speed, high-efficient,feature-rich, open source spring boot scaffolding. :rocket: - geekidea/spring-boot-plus
Mybatis-Plus 内置了如下数据库主键序列(如果内置支持不满足你的需求,可实现 IKeyGenerator 接口来进行扩展): DB2KeyGenerator H2KeyGenerator KingbaseKeyGenerator OracleKeyGenerator PostgreKeyGenerator 1 2 3 4 @Bean public OracleKeyGenerator oracleKeyGenerator(){ return new OracleKeyGenerator(); } (3)然后实...
克隆spring-boot-plus git clone https://github.com/geekidea/spring-boot-plus.git cd spring-boot-plus Maven 构建 默认使用local环境,对应配置文件:application-local.yml mvn clean package -Plocal 5分钟完成增删改查 1. 创建数据库表 -- --- Table structure for foo_bar-- ---DROPTABLEIFEXISTS`foo_...