随笔分类 - 框架整合
框架整合的配置文件与思路
摘要:断断续续学习hibernate也有一段时间了,在这里研究一下SSH开发环境的搭建过程,自己简单的搭建一个SSH的开发环境。采用maven搭建。 0.项目结构: 1.导包:(maven项目) pom.xml配置文件 2.配置文件介绍: 1.db.properties和log4j.properties
阅读全文
摘要:前几天在spring整合Redis的时候使用了手动的方式,也就是可以手动的向redis添加缓存与清除缓存,参考:http://www.cnblogs.com/qlqwjy/p/8562703.html 今天想的将spring注解整合Redis缓存弄明白,于是通过查阅资料,先做记录如下: 大致步骤如下
阅读全文
摘要:SSM:是Spring+Struts+Mybatis ,另外还使用了PageHelper 前言: 这里主要是利用redis去做mybatis的二级缓存,mybaits映射文件中所有的select都会刷新已有缓存,如果不存在就会新建缓存,所有的insert,update操作都会更新缓存。(这里需要明白
阅读全文
摘要:0.配置文件目录 1.Spring配置 applicationContext-dao.xml applicationContext-service.xml applicationContext-action.xml 2.Struts配置 struts.xml (主配置文件) Exam.xml 3.m
阅读全文
摘要:0.包结构: 配置文件结构: 1.spring配置文件 applicationContext-dao.xml (配置连接池,mybatis会话工厂,扫描mybatis文件的包,扫描action包与扫描service包,事务的控制) 2.struts配置: struts.xml (主配置文件,需要放在
阅读全文
摘要:依赖传递 只添加了一个struts2-core依赖,发现项目中出现了很多jar,这种情况 叫 依赖传递 查找坐标 依赖版本冲突的解决 1、 第一声明优先原则 2、 路径近者优先原则 自己添加jar包(自己明确的添加Jar包) 3、 排除原则 4、 版本锁定原则 Maven中整合Spring3.0+S
阅读全文
摘要:Jar包 Spring配置 applicationContext-dao.xml applicationContext-action.xml applicationContext-service.xml Mybatis配置 sqlMapConfig.xml Struts配置 struts.xml S
阅读全文
摘要:Jar包 Web.xml中配置shiro的filter spring的配置文件 applicationContext-dao.xml SpringfMVC的配置 springmvc.xml Mybatis的配置 sqlMapConfig.xml Shiro的配置 applicationContext
阅读全文
摘要:1.包结构: 2.spring配置:基本的DAO配置以及扫描Mapper(扫描出来的Mapper为首字母小写) 3.mybatis配置(主要就一个定义别名) 4.springMVC配置(主要就是配置扫描Service和Controller) 5.Service使用注解注入Mapper(主要就是自己添
阅读全文
摘要:目录结构: 1.导包 2.配置Spring(applicationContext.xml) 3.配置mybatis(sqlMapConfig.xml) 4.配置SpringMVC 5.web.xml配置spring监听器与springMVC前端控制器 6.总结 配置思路: 单独配置spring>单独
阅读全文
摘要:1.Spring3.2不能用于JDK1.8,只能用于JDK1.7。JDK1.8用spring4.0. 2.导入的jar包 3.目录结构: 4.配置Spring 配置数据库信息: 配置service 配置Action 4.配置Struts 5.配置mybatis 6.web.xml 7.总结: 要想使
阅读全文