随笔分类 -  SSH

Struts & Spring & Hibernate
JSP中使用Spring注入的Bean时需要注意的地方
摘要:遇到一个问题:在JSP中,使用Spring注入的Bean对象时,未能正确地获取到想要的对象。 郁闷的是,它也没报错。 使用DEBUG功能(好久不在JSP里写Java代码了,都忘了JSP也可以打断点调试),跟踪了一下代码,发现确实有了我想使用的类的实例,不过是个代理类。 想到反射、代理相关的知识,貌似知道问题在哪了。 赶紧试了一下,果然…… 阅读全文

posted @ 2014-06-28 13:56 Memory4Young 阅读(2488) 评论(0) 推荐(0)

【HIbernate异常】could not initialize proxy - no Session (已解决)
摘要:使用Hibernate时遇到异常:org.hibernate.LazyInitializationException: could not initialize proxy - no Session 阅读全文

posted @ 2014-06-19 21:17 Memory4Young 阅读(549) 评论(0) 推荐(0)

Hibernate —— ID的各种生成器(转)
摘要:Hibernate —— ID的各种生成器(Key Generator) 阅读全文

posted @ 2013-08-10 12:41 Memory4Young 阅读(1090) 评论(0) 推荐(0)

Hibernate 异常 —— No CurrentSessionContext configured
摘要:Hibernate 异常 —— No CurrentSessionContext configured 阅读全文

posted @ 2013-08-07 19:50 Memory4Young 阅读(507) 评论(0) 推荐(0)

Hibernate 异常 —— Unable to instantiate default tuplize
摘要:Hibernate 异常 —— Unable to instantiate default tuplize 阅读全文

posted @ 2013-08-06 21:28 Memory4Young 阅读(634) 评论(0) 推荐(0)

JUnit + Spring + Hibernate 集成测试,无法通过的问题
摘要:JUnit + Spring + Hibernate 集成测试,无法通过的问题。 阅读全文

posted @ 2013-08-01 18:46 Memory4Young 阅读(1078) 评论(0) 推荐(0)

Spring 异常 —— cvc-elt.1: Cannot find the declaration of element 'beans'
摘要:Spring 异常 —— cvc-elt.1: Cannot find the declaration of element 'beans' 的原因及解决办法。 阅读全文

posted @ 2013-07-31 12:46 Memory4Young 阅读(8348) 评论(2) 推荐(0)

导航