我就把配置文件全发过来  那个class=""里面可以写方法么
报错如下
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'goodsku1DAO' defined in ServletContext resource [/WEB-INF/applicationContext.xml]: Error setting property values; nested exception is org.springframework.beans.PropertyBatchUpdateException; nested PropertyAccessExceptions (1) are:
PropertyAccessException 1: org.springframework.beans.TypeMismatchException: Failed to convert property value of type [$Proxy0] to required type [org.springframework.orm.hibernate3.HibernateTemplate] for property 'hibernateTemplate'; nested exception is java.lang.IllegalArgumentException: Cannot convert value of type [$Proxy0] to required type [org.springframework.orm.hibernate3.HibernateTemplate] for property 'hibernateTemplate': no matching editors or conversion strategy found
Caused by: org.springframework.beans.PropertyBatchUpdateException; nested PropertyAccessException details (1) are:
PropertyAccessException 1:
org.springframework.beans.TypeMismatchException: Failed to convert property value of type [$Proxy0] to required type [org.springframework.orm.hibernate3.HibernateTemplate] for property 'hibernateTemplate'; nested exception is java.lang.IllegalArgumentException: Cannot convert value of type [$Proxy0] to required type [org.springframework.orm.hibernate3.HibernateTemplate] for property 'hibernateTemplate': no matching editors or conversion strategy found       <!-- 定义数据源 -->
<bean id="dataSource" class="org.apache.commons.dbcp.BasicDataSource"> <property name="driverClassName" value="com.microsoft.sqlserver.jdbc.SQLServerDriver"></property>
<property name="url" value="jdbc:sqlserver://localhost/mytest"></property>
<property name="username" value="sa"></property>
<property name="password" value="hy1"></property>
<property name="maxActive" value="500"></property>
<property name="defaultAutoCommit" value="true"></property>
</bean>
         <!--定义sessionFactory-->
<bean id="sessionFactory" class="org.springframework.orm.hibernate3.LocalSessionFactoryBean">
     <!--指定数据源  -->
<property name="dataSource" ref="dataSource"></property>
<!--定义数据库方言  -->
<property name="hibernateProperties">
<props>
<prop key="hibernate.dialect">org.hibernate.dialect.SQLServerDialect</prop>
<prop key="hibernate.show_sql">true</prop>
</props>
</property>
<!--指定映射文件  -->
<property name="mappingResources">
<list>
<value>com/entity/User.hbm.xml</value>
</list>
</property>
</bean>


    <!-- 将HibernateTmplate注入到sessionFactory -->
    
    <bean id="hibernateTemplate" class="org.springframework.orm.hibernate3.HibernateTemplate">
          <property name="sessionFactory"> 
               <ref bean="sessionFactory"></ref>
              </property>
    </bean>
    
    <!-- 配置DAO组件 -->
    
    <bean id="goodsku1DAO" class="com.daoImp.Goodsku1DAOImp">
          <property name="hibernateTemplate">
               <ref bean="sessionFactory"/>
          </property>
    </bean>
    
    <!-- 配置业务逻辑组件 -->
    
    <bean id="goodsku1Biz" class="com.biz.Goodsku1Biz">
                  <!-- 为业务组件注入DAO组件 -->
                  <property name="goodsku1DAO" ref="goodsku1DAO">
                  </property>
    </bean>
    
    <!-- 创建添加实例 -->
    <bean id="addAction" class="com.action.Goodsku1Action.add"
                        scope="prototype">
                  <property name="goodsku1Biz" ref="goodsku1Biz">
                  </property>
   </bean>