日期:2014-05-19  浏览次数:20844 次

SSH整合action无法实例化,求救啊!大神路过的一定要进来看看!
以下是配置部分!给的分数不多,希望大家能够热心的帮助我啊!谢谢了!

<!--context.xml-->

<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
     xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
     xmlns:jee="http://www.springframework.org/schema/jee"
     xsi:schemaLocation="
     http://www.springframework.org/schema/beans 
     http://www.springframework.org/schema/beans/spring-beans-3.0.xsd
    ">



  <bean id="dataSource" class="org.apache.commons.dbcp.BasicDataSource" destroy-method="close">
    <property name="driverClassName">
        <value>oracle.jdbc.driver.OracleDriver</value>
    </property>
    <property name="url">
        <value>jdbc:oracle:thin:@10.1.1.156:1521:orcl</value>
    </property>
    <property name="username">
        <value>userfocus</value>
    </property>
    <property name="password">
        <value>pasfocustest</value>
    </property>
  </bean>

  <bean id="sessionFactory" class="org.springframework.orm.hibernate3.LocalSessionFactoryBean">
  <property name="dataSource" ref="dataSource" />
   <property name="hibernateProperties">
        <props>
            <!-- 数据库方言 -->
            <prop key="hibernate.dialect">org.hibernate.dialect.MySQLDialect</prop>
            <!-- 显示sql语句 -->
            <prop key="hibernate.show_sql">true</prop>
        </props>
    </property>
    <!-- 映射文件 -->
    <property name="mappingLocations">
        <list>
            <value>classpath:com/cc/order/entity/*.hbm.xml</value>
        </list>
    </property>
  </bean>

<!-- 创建持久层Dao对象  依赖注入sessionFactory-->
<bean id="csrAgentDao" class="com.cc.order.dao.CsrAgentDao" scope="prototype">
  <property name="sessionFactory" ref="sessionFactory"/>
</bean>

<!-- 创建业务逻辑层Service对象   依赖注入其持久层对象属性-->
<bean id="agentService" class="com.cc.order.svr.AgenteService" scope="prototype">
  <property name="csrAgentDao" ref="csrAgentDao" />
</bean>

<!-- 创建控制层SaveUserAction的对象 依赖注入其业务层对象属性  -->
<bean id="AgentAction11" c