问题描述
<jee:jndi-lookup id="customerIDAO" jndi-name="com.yidu.idao.CustomerIDAO"></jee:jndi-lookup> <bean id="customerBIZ" class="com.yidu.biz.CustomerBIZ"><property name=""></property> </bean> <property name=""></property> 在这里节点里面怎么加不了东西啊!
解决方案
<?xml version="1.0" encoding="UTF-8"?><beans default-autowire="byName"xmlns="http://www.springframework.org/schema/beans"xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"xmlns:aop="http://www.springframework.org/schema/aop"xmlns:tx="http://www.springframework.org/schema/tx"xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.5.xsdhttp://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop-2.5.xsdhttp://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx-2.5.xsd"><!-- 一车次查询 --><bean id="queryDao" class="com.car.dao.impl.query_count.QueryAndCountImpl" ><property name="sessionFactory"><ref bean="sessionFactory" /></property></bean><!-- 一车次查询 --> <bean id="queryAction" class="com.car.action.query_count.QueryAndCountAction" scope="prototype"> <property name="queryDao"> <ref bean="queryDao"/> </property> </bean></beans>参考一下