这那里有错。求个有耐心的人给解答下。谢谢
applicationContext.xml
<bean id="gtdao" class="com.jwlc.Dao.Impl.GoodsTypeDaoImpl">
<property name="sessionFactory" ref="sessionFactory"></property>
</bean>
<bean id="gtbiz" class="com.jwlc.Biz.Impl.GoodsTypeBizImpl">
<property name="gtDao" ref="gtdao"></property>
</bean>
<bean name="/zhaobiao" class="com.jwlc.Action.GoodsTypeAction">
<property name="biz" ref="gtbiz"></property>
</bean>
注:
private GoodsTypeBiz gtbiz; //action包public void setBiz(GoodsTypeBiz gtbiz) {
this.gtbiz = gtbiz;
}public GoodsTypeDao gtdao; //diz包 public void setGtDao(GoodsTypeDao gtDao) {
this.gtdao = gtdao;
}
applicationContext.xml
<bean id="gtdao" class="com.jwlc.Dao.Impl.GoodsTypeDaoImpl">
<property name="sessionFactory" ref="sessionFactory"></property>
</bean>
<bean id="gtbiz" class="com.jwlc.Biz.Impl.GoodsTypeBizImpl">
<property name="gtDao" ref="gtdao"></property>
</bean>
<bean name="/zhaobiao" class="com.jwlc.Action.GoodsTypeAction">
<property name="biz" ref="gtbiz"></property>
</bean>
注:
private GoodsTypeBiz gtbiz; //action包public void setBiz(GoodsTypeBiz gtbiz) {
this.gtbiz = gtbiz;
}public GoodsTypeDao gtdao; //diz包 public void setGtDao(GoodsTypeDao gtDao) {
this.gtdao = gtdao;
}
解决方案 »
- myeclipse8.0ga怎么扩展安装插件。说是在安装路径下面建立links路径。那么哪个是安装路径
- 请教一个JSF和Facelets的问题
- EXTJS问题请高手指点迷津
- 怎样把java程序 弄成 .bat 或 .jar 的可执行文件
- Tomcat5.0起动时报com.ibm.db2.jcc.c.SqlException错
- spring+hibernate的问题
- 安装j2eesdk后怎么找不到相应的目录啊!
- eclipse运行2个web项目
- 我想要一个不须注册的Jcreator,拜托各位!
- 怎么建一个J2EE环境?
- 我用java写了一段文件下载代码,最后下载的时候发现了一个古怪的问题,在线求指导!
- 关于struts2的action问题
<property name="gtDao" ref="gtdao"></property>
</bean>
是不是要添加sessionfactory属性
<property name="biz" ref="gtbiz"></property>
</bean>是ID