【SpringBootFrame】springboot集成mybatis、redis、shiro、druid、通用mapper、分页插件、swagger框架
- git项目
- 时间:2018-09-26 13:58
- 4202人已阅读
简介
springboot集成mybatis、redis、shiro、druid、通用mapper、分页插件、swagger框架
🔔🔔🔔好消息!好消息!🔔🔔🔔
有需要的朋友👉:联系凯哥
springboot集成mybatis、redis、shiro、druid、通用mapper、分页插件、swagger框架
运行环境
jdk1.8+
运行
直接运行(需将mysql和redis打开)
$ ./mvnw spring-boot:run #linux $ mvnw.cmd spring-boot:run #windows 或者使用idea/eclipse启动Application.class
IDE 导入ide后等待maven依赖下载完成后执行
目录说明
----------src/main/java ---------------com.tuling --------------------modal,controller,dao,service #不做过多说明,都懂 --------------------config #配置文件类 --------------------shiro #权限管理配置 -------------------- --------------------Application.java #项目启动类,直接运行启动项目 ----------resources ---------------mappers #mybatis mapper配置文件 ---------------trade.sql #系统首次启动执行的sql ---------------templates #模板文件(freemarker) ---------------static #静态文件目录 ---------------application.yml #应用主配置,数据源啥的都在这里
配置springboot热启动
设置idea ctrl+alt+s 选择Build,Exection,Deployment->Compiler-> 勾选Build project automatically
设置idea ctrl+alt+shift+/ 选择Registry -> 勾选compiler.automaket.allow.when.app.running
https://github.com/chenjunwen/SpringBootFrame