| 严重: Servlet.service() for servlet jsp threw exception org.hibernate.LazyInitializationException: could not initialize proxy - no Session
用hibernate的daosupporr继承类读取所有内容表,放到request中,jsp页面显示。 如果读取内容表外键关联的类别表的内容就出错。
hibernate3 many-to-one的默认选项为lazy="proxy"
把many-to-one或one-to-many的属性lazy改为lazy="false"

|