使用aop操作事务无效?

这是我xml中的配置

<bean id="transactionManager" class="org.springframework.orm.hibernate4.HibernateTransactionManager">
    <property name="sessionFactory" ref="sessionFactory" />  
</bean>
<!-- 使用注解事物 -->
<tx:annotation-driven transaction-manager="transactionManager"/>  

 <tx:advice id="txAdvice" transaction-manager="transactionManager">
    <tx:attributes>
       <!-- <tx:method name="*" read-only="true" /> -->
        <tx:method name="save*" propagation="REQUIRED" />
        <tx:method name="add*" propagation="REQUIRED" />
        <tx:method name="create*" propagation="REQUIRED" />
        <tx:method name="insert*" propagation="REQUIRED" />
        <tx:method name="update*" propagation="REQUIRED" />
        <tx:method name="merge*" propagation="REQUIRED" />
        <tx:method name="del*" propagation="REQUIRED" />
        <tx:method name="remove*" propagation="REQUIRED" />
        <tx:method name="put*" propagation="REQUIRED" />
        <tx:method name="use*" propagation="REQUIRED"/>
        <tx:method name="get*" propagation="REQUIRED" read-only="true" />
        <tx:method name="count*" propagation="REQUIRED" read-only="true" />
        <tx:method name="find*" propagation="REQUIRED" read-only="true" />
        <tx:method name="list*" propagation="REQUIRED" read-only="true" />
        <tx:method name="query*" propagation="REQUIRED" read-only="true" />

    </tx:attributes>
</tx:advice>
<aop:config  proxy-target-class="true">
    <aop:pointcut id="txPointcut" expression="execution(* *.*..*biz*.*(..))" />
    <aop:advisor advice-ref="txAdvice" pointcut-ref="txPointcut"/>
</aop:config>
 在dao层
    Session session=sessionFactory.getCurrentSession();
        User user=(User) session.createQuery("from User where dbm=:i").setParameter("i",dbm).uniqueResult();
        user.setPassword(newPassword);
        session.update(user);
        session.flush();
一直说我没有开启事务,哪位大哥快告诉我哪有问题
没有币啊,穷人

别的地方还有需要配置的么?

你试试这样,前提是dbm是User的属性
from User u where u.dbm=:i