我这样配置时,总是打不开页面,显示“The
requested resource () is not available”,把*.service随便改个名字,系统就能
正常
运行了,除了没有事务功能。
这个问题我弄了好几天了,一直没有解决,求解答。
<bean id="transactionManager"
class="org.springframework.jdbc.datasource.DataSourceTransactionManager">
<property name="dataSource">
<ref bean="dataSource" />
</property>
</bean>
<bean id="transactionAttributeSource"
class="org.springframework.transaction.interceptor.NameMatchTransactionAttri
buteSource">
<property name="properties">
<props>
<prop
key="deleteReward">PROPAGATION_REQUIRED,-Exception</prop>
</props>
</property>
</bean>
<bean id="transactionInterceptor"
class="org.springframework.transaction.interceptor.TransactionInterceptor">
<property name="transactionManager">
<ref bean="transactionManager" />
</property>
<property name="transactionAttributeSource">
<ref bean="transactionAttributeSource" />
</property>
</bean>
<bean id="traceProxyCreator"
class="org.springframework.aop.framework.autoproxy.BeanNameAutoProxyCreator"
>
<property name="interceptorNames">
<list><value>transactionInterceptor</value></list>
</property>
<property name="beanNames">
<list><value>*Service</value></list>
</property>
</bean>
--
FROM 114.228.130.*