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
#技术选项
![87f2f268a5e85a4b2a2fc5901c425efd.png](https://i-blog.csdnimg.cn/blog_migrate/5ab4e3965b7e398a3113c54b87d9e346.jpeg)
前端技术
![899efdd3ea6d05114c09209460e82a0a.png](https://i-blog.csdnimg.cn/blog_migrate/f49209bc8dfe18d412dde163154c61b7.jpeg)
jar版本
![e398530e8220863104b7dfa11a69882a.png](https://i-blog.csdnimg.cn/blog_migrate/52e8c18fa766fb5ede7e1dd3e9727442.jpeg)
开发环境
- JDK8.0
- mysql5.5.40 OR msql 8.0
- eclipse
部署流程
- 导入doc文件夹里面的test.sql到数据库
- 确认自己的mysql版本 进行修改jar 在pom.xml 73-84行
- 修改application-dev.yml 里面自己数据库版本对应的jdbc链接
- 正常启动run SpringbootSwagger2Application.java
打包发布编译流程
- maven编译安装pom.xml文件即可打包成war
登陆地址
- http://localhost:8080 默认帐号密码: admin/admin
- swagger http://localhost:8080/swagger-ui.html
启动类
- SpringbootSwagger2Application 启动类
数据模型
![d7de1487d42dfa73f7cda23c173f13d1.png](https://i-blog.csdnimg.cn/blog_migrate/d1efef2ff611f5e2d8fa9900645fd700.jpeg)
界面风格
![158797b8d42edf737639ee70c301ab3d.png](https://i-blog.csdnimg.cn/blog_migrate/41dd400111e6b52409e89ef753c39a61.jpeg)
![b52d41245139543b8602570f8c5a6e1f.png](https://i-blog.csdnimg.cn/blog_migrate/9326ca0a3e1521ac9151e32e6e47f658.jpeg)
![f6eb86936b34d7f5ed89265325fef9cd.png](https://i-blog.csdnimg.cn/blog_migrate/0019aec077eaf726b896be3e1e83cd40.jpeg)
![6c8de65059a6aa366a6df655bca0fc6e.png](https://i-blog.csdnimg.cn/blog_migrate/99f5e919c8d2a384d0875f1aa34d09a7.jpeg)
![d1138b6db8a19b354023a4fe983b1961.png](https://i-blog.csdnimg.cn/blog_migrate/084f58c51e1d6ef609d0eed293c795a6.jpeg)
![a98852ecef54c2ec00a00a95630e5f88.png](https://i-blog.csdnimg.cn/blog_migrate/692b2ea304da1906914d5d65d325ff4b.jpeg)
后台代码注释风格
![b52c41f7937f10a198877ca4a2beb4de.png](https://i-blog.csdnimg.cn/blog_migrate/8dfd63856b521f7c113eb75a94ebea82.jpeg)
![6752415064d167da84664ad32dffe18c.png](https://i-blog.csdnimg.cn/blog_migrate/809759e90686269a80d056aa065ea37a.jpeg)
![0b63193a1ee16267e678ce8a1f742767.png](https://i-blog.csdnimg.cn/blog_migrate/6fefe0d6eb861e8a1ebf4d58d160db2a.jpeg)
![34c62585c27093bb5891c64c007bfe2e.png](https://i-blog.csdnimg.cn/blog_migrate/22412555d46458d25297fb6d8197b03d.jpeg)
前端代码注释风格
![77ecf242d1f0d04db5bdc64585a843a8.png](https://i-blog.csdnimg.cn/blog_migrate/20216b93127ff1fb85477b600f8dd756.jpeg)
![862079a4f2f14e68ab303b34c2879122.png](https://i-blog.csdnimg.cn/blog_migrate/17c675242e7a9b251e9cdb3c24437cb9.jpeg)
代码自动生成功能
![7c02b9b4bf9aed1a56ed1906643480d0.png](https://i-blog.csdnimg.cn/blog_migrate/db1bb7dcee3e230d91714d7c8f4f59e9.jpeg)
![c3fc2f7a22cabd5a675fef21b34219b4.png](https://i-blog.csdnimg.cn/blog_migrate/2afec89745c9a1e8906251952efd3f40.jpeg)
项目地址
https://gitee.com/bdj/SpringBoot_v2