09 2017 档案

摘要:Spring和Hibernate整合的时候我们经常会有如下的配置代码 1,非JPA支持的配置 <!-- 配置 Hibernate 的 SessionFactory 实例: 通过 Spring 提供的 LocalSessionFactoryBean 进行配置 --> <!-- FacotryBean 阅读全文
posted @ 2017-09-21 14:45 路途寻码人 阅读(7116) 评论(0) 推荐(0) 编辑
摘要:出自:http://blog.csdn.net/qq_26525215 @EnableAspectJAutoProxy @EnableAspectJAutoProxy注解 激活Aspect自动代理 开启对AspectJ自动代理的支持。 在用到AOP的自动代理的时候用,如果你理解了Java的动态代理, 阅读全文
posted @ 2017-09-21 10:42 路途寻码人 阅读(1215) 评论(0) 推荐(0) 编辑
摘要:出自:跟我学shiro 简介 Apache Shiro 是 Java 的一个安全框架。目前,使用 Apache Shiro 的人越来越多,因为它相当简单,对比 Spring Security,可能没有 Spring Security 做的功能强大,但是在实际工作时 可能并不需要那么复杂的东西,所以使 阅读全文
posted @ 2017-09-20 17:23 路途寻码人 阅读(362) 评论(0) 推荐(0) 编辑
摘要:manytomany关系中,使用 fetch = FetchType.LAZY 来做懒加载,加快些性能。但是却一直出错,原因是session被关闭,要保持session,需要事务。 Hibernate JPA 阅读全文
posted @ 2017-09-18 15:55 路途寻码人 阅读(879) 评论(0) 推荐(0) 编辑
摘要:我是先将下拉选项的值通过datagrid的url查出来了,在每一行的row中 具体解析如下: onBeginEdit是将row中的下拉项数据拿出来并动态加载到Combobox 中,onBeforeLoad很重要,不然执行onLoadSuccess方法的时候,Combobox还没有动态加载下拉选项,导 阅读全文
posted @ 2017-09-17 16:38 路途寻码人 阅读(4391) 评论(0) 推荐(0) 编辑
摘要:出自:http://blog.csdn.net/u013628152/article/details/51184641 1. findByIds(List ids) 如果参数的类型是List, 则在使用时,collection属性要必须指定为 list <select id="findByIdsMa 阅读全文
posted @ 2017-09-17 15:23 路途寻码人 阅读(3286) 评论(0) 推荐(0) 编辑
摘要:引入:http://blog.csdn.net/sanzhongguren/article/details/71191290 在spring reference中提到一个解决spring jar包之间版本冲突的解决方案,原文如下 It is possible to accidentally mix 阅读全文
posted @ 2017-09-14 16:49 路途寻码人 阅读(818) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示