hibernate3.2+spring2配置的事务不起作用 我一直用spring的注释来管理事务@Transactional就能解决了 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 找到原因了,代理bean没注入到业务层。<bean id="userdaoProxy"class="org.springframework.transaction.interceptor.TransactionProxyFactoryBean"> <property name="transactionManager" ref="tm"> </property> <property name="target" ref="userdao"> </property> <property name="transactionAttributes"> <props> <prop key="insert*">PROPAGATION_REQUIRED </prop> <prop key="save*">PROPAGATION_REQUIRED </prop> <prop key="update*">PROPAGATION_REQUIRED </prop> <prop key="delete*">PROPAGATION_REQUIRED </prop> <prop key="get*">PROPAGATION_REQUIRED,readOnly </prop> <prop key="find*">PROPAGATION_REQUIRED,readOnly </prop> <prop key="load*">PROPAGATION_REQUIRED,readOnly </prop> </props> </property> </bean> <bean id="userserv" class="shs.serviceimpl.UserinfoServiceImpl"> <property name="userdao" ref="userdaoProxy"></property></bean> ajax post请求,不起作用,帮忙看一下。。 myEclipse 工具如何再次生成hibernate配置文件 上传文件问题。请高手指点。 一个关于xml参数实体的简单问题 使用JPA要导入什么包? 一个挑战自我的排序问题!请看看!!! 急!bean里放链接问题 jdbc连接oracle的问题(急) 我的难题 hibernate的one-to-one 的问题?????? Hibernate不能正确生成主键 请教一下: 如何配置JAXB
<bean id="userdaoProxy"class="org.springframework.transaction.interceptor.TransactionProxyFactoryBean">
<property name="transactionManager" ref="tm"> </property>
<property name="target" ref="userdao"> </property>
<property name="transactionAttributes">
<props>
<prop key="insert*">PROPAGATION_REQUIRED </prop>
<prop key="save*">PROPAGATION_REQUIRED </prop>
<prop key="update*">PROPAGATION_REQUIRED </prop>
<prop key="delete*">PROPAGATION_REQUIRED </prop>
<prop key="get*">PROPAGATION_REQUIRED,readOnly </prop>
<prop key="find*">PROPAGATION_REQUIRED,readOnly </prop>
<prop key="load*">PROPAGATION_REQUIRED,readOnly </prop>
</props>
</property>
</bean> <bean id="userserv" class="shs.serviceimpl.UserinfoServiceImpl">
<property name="userdao" ref="userdaoProxy"></property>
</bean>