随笔分类 - Struts+Hibernate+Spring
摘要:http://jinnianshilongnian.iteye.com/category/301336Spring4新特性——集成Bean Validation 1.1(JSR-349)到SpringMVC
阅读全文
摘要:Hibernate4的改动较大只有spring3.1以上版本能够支持,Spring3.1取消了HibernateTemplate,因为Hibernate4的事务管理已经很好了,不用Spring再扩展了。这里简单介绍了hibernate4相对于hibernate3配置时出现的错误,只列举了问题和解决方...
阅读全文
摘要:SpringMVC与SiteMesh2.4无缝整合并借助JSR303规范实现表单验证SiteMesh3.0的下载,简介与使用总结:springmvc结合sitemesh总共分三步:1、添加sitemesh-3.0.jar包2、添加sitemesh.xml3、在模板页面添加:
阅读全文
摘要:SpringMVC存取Session的两种方法
阅读全文
摘要:Spring @Autowired,@Resource,@Required注解的用法和作用Spring中 @Autowired标签与 @Resource标签 的区别Spring注解@Component、@Repository、@Service、@Controller区别
阅读全文
摘要:1:基于注解的SpringMVC简单介绍2:spring组件扫描使用详解3:springMvc 注解配置例子
阅读全文
摘要:no Session问题,即延迟加载延迟加载的问题是指当我们调用完action中的某个方法,在jsp页面要显示我们想要的信息的时候,发现在dao中打开的session已经关闭了。如下图,第一个箭头表示的是我们通过前台页面返回action,action会通过service层调用dao去访问数据库,当从...
阅读全文
摘要:今天在做ssh项目开发的时候遇到一个问题,保存数据的时候报错:Write operations are not allowed in read-only mode (FlushMode.NEVER/后参考这篇文章才知道出了什么问题:http://www.aichengxu.com/view/3741...
阅读全文
摘要:参考地址;http://blog.csdn.net/itdada/article/details/21344985
阅读全文
摘要:上一篇文章介绍了sitemesh3的使用,这篇文章来介绍如何结合struts2来配置和使用sitemesh,具体的如何使用sitemesh3我就不讲解了,这个你们可以看看我的上一篇博客。 首先你要添加struts和sitemesh相关的jar包: 添加完毕后,你要配置web.xml文件: ...
阅读全文