![](https://img-blog.csdnimg.cn/20201014180756930.png?x-oss-process=image/resize,m_fixed,h_224,w_224)
SSM
文章平均质量分 54
SSM框架
van久
学习中进步
展开
-
SSM中 实现在Controller中添加事务管理
本人使用:集成开发环境:idea 项目管理工具:maven 数据库:oracle 框架:Spring+SpringMVC+myBatis一般而言,事务都是加在Service层的,但也可以加在Controller层。。 看了不少人的博客,总结出两个方法:在controller层写编程式事务 将事务配置定义在Spring MVC的应用...原创 2018-09-19 16:39:24 · 9291 阅读 · 1 评论 -
SSM中 Quartz(定时器)的使用
本人使用:集成开发环境:idea 项目管理工具:maven 数据库:oracle 框架:Spring+SpringMVC+myBatis主要步骤:在pom.xml中加入插件依赖 编写需要定时执行的方法类 编写spring-quartz.xml配置文件 在spring-mybatis配置文件中引入具体实现:1、在pom.xml中引入quartz.jar<d...原创 2018-09-14 15:59:54 · 1612 阅读 · 4 评论 -
SSM中使用Generator自动生成实体、mapper和dao层
该篇文章借鉴于 使用MyBatis Generator自动生成实体、mapper和dao层本人使用:集成开发环境:idea 项目管理工具:maven 数据库:oracle 框架:Spring+SpringMVC+myBatis主要步骤:在pom.xml中加入插件依赖 写mbgConfiguration.xml文件,jdbc.properties文件 写/SSM/src/ma...原创 2018-09-14 10:52:46 · 1638 阅读 · 0 评论 -
SSM中 使用PageHelper分页插件
本人使用:集成开发环境:idea 项目管理工具:maven 数据库:oracle 框架:Spring+SpringMVC+myBatis主要步骤:在pom.xml中加入插件依赖 在Spring-myBatis.xml中配置相关内容 在Controller中使用,或测试具体实现: 1、引入插件 pagehelper.jar【使用时注意版本】<depende...原创 2018-09-14 11:20:02 · 4423 阅读 · 0 评论 -
SSM中 实现日志记录(AOP+log4j2)
本人使用:集成开发环境:idea 项目管理工具:maven 数据库:oracle 框架:Spring+SpringMVC+myBatis主要步骤:在pom.xml中引入插件依赖 log4j2.xml文件配置 web.xml文件配置 编写日志管理类LogInterceptor.class spring-mvc.xml中配置AOP【可以使用注解和自定义注解,我这使用的是xml】...原创 2018-09-21 11:28:13 · 6966 阅读 · 4 评论