No setter found for property 'transactionAttributeSource' in class 
 'org.springframework.transaction.interceptor.TransactionInterceptor'

解决方案 »

  1.   

    没有set方法?看一下配置和dao和biz里面,名字一致吗?
      

  2.   


    <!-- 配置事务管理器 -->
    <bean id="tm"
    class="org.springframework.orm.hibernate3.HibernateTransactionManager">
    <property name="sessionFactory" ref="sessionFactory"></property>
    </bean>
    <tx:advice id="txadvice" transaction-manager="tm">
    <tx:attributes>
    <tx:method name="get*" propagation="REQUIRED" />
    <tx:method name="find*" propagation="REQUIRED" />
    <tx:method name="update*" propagation="REQUIRED" />
    <tx:method name="delete*" propagation="REQUIRED" />
    <tx:method name="save*" propagation="REQUIRED" />
    <tx:method name="add*" propagation="REQUIRED" />
    <tx:method name="lay*" propagation="REQUIRED" />
    <tx:method name="login*" propagation="REQUIRED" />
    </tx:attributes>
    </tx:advice> <!-- 配置代理工厂  -->
    <aop:config>
    <aop:pointcut id="bizs" expression="execution(* com.kdy.kmt.common.bo.*.*(..))" />
    <aop:advisor advice-ref="txadvice" pointcut-ref="bizs" />
    </aop:config>这是配置文件  这个错误不是说是那个类里面没有set 方法吗  可是那个类是引进来的啊