泉州最专业手机网站建设定制,做简历的网站viso,营销软件网站建设,网站建设的电话销售目录
#x1f95e;1.整体架构图
#x1f355;2.微服务划分图
#x1f354;3.开发环境
#x1f354;4.搭建git
#x1f32d;5.快速搭建服务
#x1f37f;6.数据库搭建
#x1f9c2;7.获取脚手架
#x1f953;8.代码生成器
#x1f373;9.创建公共模块 …
目录
1.整体架构图
2.微服务划分图
3.开发环境
4.搭建git
5.快速搭建服务
6.数据库搭建
7.获取脚手架
8.代码生成器
9.创建公共模块
10.创建各个服务的CRUD 1.整体架构图 2.微服务划分图 3.开发环境 idea2021.2jdk1.8maven3.8.1 4.搭建git
小张这里使用gitee~创建仓库完成后复制ssh 在idea中进行创建 5.快速搭建服务
1.建工程 1.在工程模块下创建服务模块2.注意jdk和maven版本 2.提交到gitee
1.add源码到暂缓区 2.commit提交到本地库 3.push到gitee 6.数据库搭建
1.连接到图形化工具 2.创建相应的数据库并cv建表语句 7.获取脚手架
纯手工搭建前后端费时费力费脑直接gilt clone~ 将后端renren-fast和前端renren-fast-vue克隆到本地 删除文件中的 .git ~ 并修改后端数据后分别启动~ 8.代码生成器 删除 .git 并将其加入gulimall工程~ 修改mysql配置 配置相关生成策略 9.创建公共模块
创建公共模块gulimall-common
1.所需类
直接从renren-fast里面复制 2.加pom dependencies!--mybatis-plus--dependencygroupIdcom.baomidou/groupIdartifactIdmybatis-plus-boot-starter/artifactIdversion3.4.2/version/dependency!--lombok--dependencygroupIdorg.projectlombok/groupIdartifactIdlombok/artifactIdversion1.18.28/version/dependencydependencygroupIdorg.apache.geronimo.bundles/groupIdartifactIdhttpcore/artifactIdversion4.0.1_1/version/dependencydependencygroupIdcommons-lang/groupIdartifactIdcommons-lang/artifactIdversion2.6/version/dependency!--mysql--dependencygroupIdmysql/groupIdartifactIdmysql-connector-java/artifactIdversion8.0.33/version/dependency!--servlet-api--dependencygroupIdjavax.servlet/groupIdartifactIdservlet-api/artifactIdversion2.5/versionscopeprovided/scope/dependency/dependencies
10.创建各个服务的CRUD 这里只展示gulimall_ware模块其他模块照猫画虎 1.代码生成器运行生成代码 2.复制main文件夹到原项目 3.添加yml配置
server:port: 11000spring:datasource:driver-class-name: com.mysql.jdbc.Driverurl: jdbc:mysql://192.168.20.129:3306/gulimall_wmsusername: rootpassword: rootmybatis-plus:mapper-locations: classpath:/mapper/**/*.xmlglobal-config:db-config:id-type: auto
4.启动服务测试