计算机系统应用教程网站

网站首页 > 技术文章 正文

springboot框架的极致细腻的脚手架(SpringBoot_v2)

btikc 2024-09-30 13:15:35 技术文章 11 ℃ 0 评论

SpringBoot_v2项目是努力打造springboot框架的极致细腻的脚手架。 原生纯净,可在线生成controller、mapperxml、dao、service、hrml、sql代码,极大减少开发难度,增加开发进度神器脚手架!! 不求回报,你使用快乐就是这个项目最大的快乐!

前言

SpringBoot_v2项目是努力打造springboot框架的极致细腻的脚手架。包括一套漂亮的前台。无其他杂七杂八的功能,原生纯净。

项目介绍

基于springboot的一款纯净脚手架。努力打造完美注释跟文档。方便快速二次开发。

组织架构

Springboot
├─doc 项目SQL语句以及文档
│
├─common 公共模块
│ ├─base Base继承通用类
│ ├─conf springBoot所有配置
│ ├─domain 前台返回包
│ ├─exception 异常处理包
│ ├─interceptor 拦截器
│ ├─domain 前台返回包
│ ├─quartz Spring定时器
│ └─support 工具包
│
├─controller 请求访问模块
│ ├─admin 模版后台请求包
│ └─HomeController.java 首页访问类
│
├─Mapper Dao模块
│ ├─auto mybatis-generator.xml自动生成Dao
│ └─custom 自定义Dao
│
├─Model 实体类模块
│ ├─auto mybatis-generator.xml自动生成实体包
│ └─custom 自定义实体
│
├─Service 服务层模块[没写抽象模块,因为我觉得没什么用,可能我能力不足]
│
├─shiro 权限模块
│ ├─config shiro配置
│ ├─service shiro服务层
│ └─util shiro通用方法
│
├─util 工具模块
│
├─SpringbootSwagger2Application 启动类
│ 
├─SpringbootWebInitializer tomcat启动类
│
├─test 测试类
│
├─resources 配置文件夹
│ ├─ehcache shiro权限缓存配置
│ ├─generator 自动生成模板以及配置目录
│ │ ├─template 模板文件假
│ │ │ ├─controller anction模板
│ │ │ ├─html html页面模板
│ │ │ ├─mapper dao模板
│ │ │ ├─mapperxml daoxml模板
│ │ │ ├─model 实体模板
│ │ │ ├─service service模板
│ │ │ └─sql sql模板
│ │ └─generator.properties 自动生成配置文件
│ ├─mybatis mybatis Mapper.xml生成文件夹
│ │ ├─auto自动生成的Mapper.xml文件夹
│ │ └─custom 手写Mapper.xml文件夹
│ │
│ ├─static 静态文件存放文件夹[后台模版就放在此文件夹下面。所有的模版页面都在下面]
│ ├─templates 前台HTML存放文件夹
│ ├─application-dev.yml 开发环境配置
│ ├─application-prod.yml 生产环境配置
│ ├─application.yml springboot配置
│ ├─banner1.txt springboot 启动动画
│ ├─logback.xml log4j配置文件
│ └─mybatis-generator.xml mybates自动生成 xml、dao、model
│ 
└─pom.xml maven.xml

#技术选项

前端技术

jar版本

开发环境

  • JDK8.0
  • mysql5.5.40 OR msql 8.0
  • eclipse

部署流程

  1. 导入doc文件夹里面的test.sql到数据库
  2. 确认自己的mysql版本 进行修改jar 在pom.xml 73-84行
  3. 修改application-dev.yml 里面自己数据库版本对应的jdbc链接
  4. 正常启动run SpringbootSwagger2Application.java

打包发布编译流程

  • maven编译安装pom.xml文件即可打包成war

登陆地址

  • http://localhost:8080 默认帐号密码: admin/admin
  • swagger http://localhost:8080/swagger-ui.html

启动类

  • SpringbootSwagger2Application 启动类

数据模型

界面风格

后台代码注释风格

前端代码注释风格

代码自动生成功能

项目地址

https://gitee.com/bdj/SpringBoot_v2

本文暂时没有评论,来添加一个吧(●'◡'●)

欢迎 发表评论:

最近发表
标签列表