# SpringBoot-Template **Repository Path**: fhd1992/spring-boot-template ## Basic Information - **Project Name**: SpringBoot-Template - **Description**: 前后端分离,springboot后端接口模板项目,有easyexcel导入导出,ehcache缓存,swagger接口文档,activemq中间件,druid监控页面,多线程定时任务,异常统一处理,验证码图片生成,pagehelper分页,shiro授权和认证,jwt生成token - **Primary Language**: Java - **License**: GPL-2.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 5 - **Forks**: 2 - **Created**: 2020-09-24 - **Last Updated**: 2024-07-10 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # SpringBoot-Template #### 介绍 springboot后端接口模板项目,有easyexcel导入导出,ehcache缓存,swagger接口文档,activemq中间件,druid监控页面,多线程定时任务,异常统一处理, 验证码图片生成,pagehelper分页,shiro授权和认证,jwt生成token #### 软件架构 软件架构说明 springboot2.3.3 + mybatis + easyexcel2.2.6 + ehcache + swagger + activemq + druid1.1.22 + pagehelper + shiro + jwt #### 安装教程 1. sql文件夹有数据库表,使用Navicat等工具直接运行创建表 2. activemq需要自行安装,运行SpringbootApplicationTests里面内容可测试 3. https://gitee.com/fhd1992/springboot-mybatis-generator 配套的逆向工程代码生成 #### 使用说明 1. com.example.springboot.common.config 有activemq,swagger3,全局异常配置 2. com.example.springboot.modules.excel.ExcelController 有导入导出接口 3. com.example.springboot.SpringbootApplicationTests 有activemq测试, 需打开com.example.springboot.modules.activemq.consumer.ActiveMqConsumer 注解的注释 4. http://localhost:8100/springboot/swagger-ui/ 项目启动后可直接打开swagger3页面 5. http://localhost:8100/springboot/druid/sql.html 项目启动后可直接打开druid监控页面,执行接口可查看SQL监控 6. com.example.springboot.modules.schedule.ScheduleConfig 打开注释可测试定时任务 7. com.example.springboot.modules.student.web.StudentController 可测试ehcache,有注解缓存和使用工具缓存, 工具缓存的缓存空间名称需在application.properties中定义,ehcache.xml中定义缓存空间的属性 8. http://localhost:8100/springboot/verifycode/getVerifyCode 生成验证码图片 9. http://localhost:8100/springboot/user/findUserList 测试shiro权限 先登录获取token,赋值Authorization请求头调用接口 10. http://localhost:8100/springboot/api/login 登陆接口 账号,密码可去数据库查找