spring-boot-lll-starter自动化框架介绍

1. spring-boot-lll-starter自动化框架介绍

1.1. 前言

舔着脸来介绍一波我刚写的自动化框架,spring-boot-lll-starter框架是经由我企业实战总结的一套,适用于项目起始构建的框架,适配了管理后台和微服务项目两种方案的代码生成

我做了一个简短的demo视频,可以一下很清楚的看清楚我的项目做什么用的,视频点击这里

1.2. 介绍

1.2.1. 框架介绍

  1. 后台项目

spring-boot-lll-starter自动化框架介绍

  1. 公共基础包

spring-boot-lll-starter自动化框架介绍

  1. 代码生成项目

spring-boot-lll-starter自动化框架介绍

1.3. 操作步骤

1.3.1. 修改配置

  1. 修改配置文件bootstrap.xmlapplication-local

spring-boot-lll-starter自动化框架介绍

spring-boot-lll-starter自动化框架介绍

  1. 修改配置类ModifiedConstant

spring-boot-lll-starter自动化框架介绍

1.3.2. 执行方法

spring-boot-lll-starter自动化框架介绍

1.3.3. 执行效果

spring-boot-lll-starter自动化框架介绍

spring-boot-lll-starter自动化框架介绍

1.3.4. 改微服务模式

spring-boot-lll-starter自动化框架介绍

spring-boot-lll-starter自动化框架介绍

1.4. 统一业务码演示

  1. 我的business包下我准备了业务代码的统一实现,下面我假设两个微服务order和user,用order来调用user的一个方法,在user中我添加一个业务吗,则可以实现该业务功能

  2. user模块
    spring-boot-lll-starter自动化框架介绍

  3. order模块
    spring-boot-lll-starter自动化框架介绍

  4. 启动两个模块,访问localhost:8083/swagger-ui.html

界面
spring-boot-lll-starter自动化框架介绍

请求参数

spring-boot-lll-starter自动化框架介绍

返回结果
spring-boot-lll-starter自动化框架介绍

运行结果

spring-boot-lll-starter自动化框架介绍

1.5. 总结

我项目采用的是纯POST模式,使用该模式,我可以很好对入参进行统一封装,一开始规定好出入参的格式,我可以在此基础上做更多操作,比如统一的业务代码。当然如果你一定要用restful风格,你也可以用我的框架,我可以选择性的生成部分代码,只是Controller层和Service估计要你自己写了