架构为:Struts2+Hibernate+Spring
WEB.XML<filter>
  <filter-name>hibernatefilter</filter-name>
  <filter-class>org.springframework.orm.hibernate3.support.OpenSessionInViewFilter</filter-class>
</filter><filter-mapping>
  <filter-name>hibernatefilter</filter-name>
  <url-pattern>*.action</url-pattern>
</filter-mapping> <context-param>
    <param-name>contextConfigLocation</param-name>
    <param-value>/WEB-INF/applicationContext_*.xml</param-value>
 </context-param> <filter>
    <filter-name>struts2</filter-name>
    <filter-class>org.apache.struts2.dispatcher.FilterDispatcher</filter-class>
 </filter> <filter-mapping>
    <filter-name>struts2</filter-name>
    <url-pattern>/*</url-pattern>
 </filter-mapping>其中有N个表外键关联到A表,Hibernate hbm.xml配置文件里A表里的SET字段都设置成lazy="True"为延迟加载。为何我用getHiberateTemplate.find("from A")查询时从TOMCAT控制台发现会查询所有关联到A表的其它表,其实又用不着,这样影响性能?如何解决呢?