springboot+mybatis+shiro框架
来源:互联网 发布:井柏然手写字体软件 编辑:程序博客网 时间:2024/06/04 19:05
springboot+mybatis+shiro 分模块项目框架。
包含如下功能:
1.目录生成
2.权限控制
3.定时任务
4.bean注入
5.url过滤器
prent.xml
<?xml version="1.0" encoding="UTF-8"?><project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"><modelVersion>4.0.0</modelVersion><groupId>com.onem2.pingmi</groupId><artifactId>pingmi-parent</artifactId><packaging>pom</packaging><parent> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-parent</artifactId> <version>1.3.3.RELEASE</version> </parent><!--申明依赖关系--> <dependencies> <dependency><groupId>org.springframework.boot</groupId><artifactId>spring-boot-starter</artifactId></dependency><dependency><groupId>org.springframework.boot</groupId><artifactId>spring-boot-starter-test</artifactId><scope>test</scope></dependency><dependency><groupId>org.springframework.boot</groupId><artifactId>spring-boot-starter-web</artifactId></dependency><dependency><groupId>org.mybatis.spring.boot</groupId><artifactId>mybatis-spring-boot-starter</artifactId><version>1.1.1</version></dependency> <dependency> <groupId>mysql</groupId> <artifactId>mysql-connector-java</artifactId> </dependency><dependency><groupId>org.springframework.boot</groupId><artifactId>spring-boot-starter-tomcat</artifactId><scope>provided</scope></dependency> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-devtools</artifactId> <optional>true</optional></dependency><!-- shiro 权限 --><dependency><groupId>org.apache.shiro</groupId><artifactId>shiro-spring</artifactId><version>1.4.0</version></dependency><!-- velocity --><dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-velocity</artifactId> </dependency> </dependencies> <modules><module>pingmi-service</module><module>pingmi-web</module><module>pingmi-front</module></modules></project>
service.xml
<?xml version="1.0" encoding="UTF-8"?><project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"><modelVersion>4.0.0</modelVersion><artifactId>pingmi-service</artifactId><packaging>jar</packaging><parent><groupId>com.onem2.pingmi</groupId><artifactId>pingmi-parent</artifactId><version>1.0.0</version></parent><dependencies><!-- 壹平方工具包 --><dependency><groupId>com.qingbo.onem2</groupId><artifactId>onem2-base</artifactId><version>2.1.3-SNAPSHOT</version></dependency><!--pagehelper --> <dependency> <groupId>com.github.pagehelper</groupId> <artifactId>pagehelper-spring-boot-starter</artifactId> <version>1.1.1</version> </dependency> <!-- 阿里巴巴Json --> <dependency> <groupId>com.alibaba</groupId> <artifactId>fastjson</artifactId> <version>1.2.31</version> </dependency> </dependencies></project>
web.xml
<?xml version="1.0" encoding="UTF-8"?><project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"><modelVersion>4.0.0</modelVersion><artifactId>pingmi-web</artifactId><packaging>jar</packaging><parent><groupId>com.onem2.pingmi</groupId><artifactId>pingmi-parent</artifactId><version>1.0.0</version></parent><dependencies><dependency><groupId>com.onem2.pingmi</groupId><artifactId>pingmi-service</artifactId><version>1.0.0</version></dependency></dependencies></project>
front.xml
<?xml version="1.0" encoding="UTF-8"?><project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"><modelVersion>4.0.0</modelVersion><artifactId>pingmi-front</artifactId><packaging>war</packaging><parent><groupId>com.onem2.pingmi</groupId><artifactId>pingmi-parent</artifactId><version>1.0.0</version></parent><dependencies><dependency><groupId>org.springframework.boot</groupId><artifactId>spring-boot-starter-web</artifactId></dependency> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-devtools</artifactId> <optional>true</optional></dependency><dependency><groupId>com.onem2.pingmi</groupId><artifactId>pingmi-web</artifactId><version>1.0.0</version></dependency></dependencies></project>
启动配置
2.编译
run as --> maven install
源码下载地址:http://download.csdn.net/download/u012547633/10124803
注意:shiro 包要转移至 注解目录下面,否则无法扫描到
阅读全文
1 0
- springboot+mybatis+shiro框架
- SpringBoot整合shiro框架
- SpringBoot集成MyBatis框架
- SpringBoot+Mybatis框架Demo
- SpringBoot +shiro+mybatis plus+spring +redis
- springboot+shiro+mybatis实现角色权限控制
- springboot-shiro
- shiro验证【springboot mybatis个人博客系统(二)】
- IDEA上搭建maven项目整合springboot+mybatis+shiro
- shiro在SSM以及与Springboot+Mybatis中的实践
- springboot之集成mybatis mongo shiro druid redis jsp
- javaEE 后台框架 SpringMVC Mybatis Shiro druid
- java框架整合Springmvc+mybatis+shiro+bootstrap
- java框架整合Springmvc+mybatis+shiro+bootstrap
- Spring+Spring MVC+Shiro+Mybatis框架集成
- Spring+SpringMVC+Mybatis+Shiro框架整合-yellowcong
- springboot和mybatis两个框架结合教程
- 简单的SpringBoot+Mybatis框架整合
- C#多线程的基础整理(上)——Thread和ThreadPool
- listView中只显示一行的问题处理
- Ubuntu服务器打开/关闭mysql远程连接
- session理论以及解决分布式系统下的session共享问题
- 第一次参加ACM比赛 2017ICPC北京赛区
- springboot+mybatis+shiro框架
- KMP算法
- JavaSE基础之冒泡排序优化问题
- 学习一门新语言的步骤和基础
- 素数的求取
- SVN的学习之路三(注册和启动服务)
- construct 2 设计一款鸡汤类游戏
- JDBC01
- iframe里面使用外部整体框架属性
原创粉丝点击
热门IT博客
热门问题
老师的惩罚
人脸识别
我在镇武司摸鱼那些年
重生之率土为王
我在大康的咸鱼生活
盘龙之生命进化
天生仙种
凡人之先天五行
春回大明朝
姑娘不必设防,我是瞎子
揭阳方赛妹被审查
忻城谢大研被审查
人民检察院经审查
发明专利加快审查
发明专利实质审查费用
莱阳市长慕欣被审查
禹城市刘东顺被审查
池州徐贵被停职审查
昭通副市长龙进被审查
孝感中心医院李睿被审查
食品生产许可证审查细则
大理州袁丽娟被审查
公务员报考资格审查
涉密人员分类确定和上岗审查
审核员
信用卡审核
我来贷审核
审核
aps审核
抖音审核
审核英文
认证审核
供应商审核
iso审核
质量审核
内容审核
过程审核
财务审核
费用审核
造价审核
内部审核
审核报告
审核通过
审核中
考后审核
审核意见
审核 英文
合同审核
审核工作
结合审核
审核未通过