I am hoping someone can explain what I am doing wrong. If I use the following configuration, I receive "java.lang.IllegalArgumentException: Superclass has no null constructors but no arguments were given" for every bean in my context.
Yet, if I remove theCode:<bean id="autoproxy" class="org.springframework.aop.framework.autoproxy.DefaultAdvisorAutoProxyCreator"> <property name="proxyTargetClass"> <value>true</value> </property> </bean> <bean id="transactionAttributeSource" class="org.springframework.transaction.interceptor.NameMatchTransactionAttributeSource"> <property name="properties"> <props> <prop key="create*">PROPAGATION_REQUIRED</prop> <prop key="save*">PROPAGATION_REQUIRED</prop> <prop key="remove*">PROPAGATION_REQUIRED</prop> <prop key="*">PROPAGATION_SUPPORTS</prop> </props> </property> </bean> <bean id="transactionInterceptor" class="org.springframework.transaction.interceptor.TransactionInterceptor"> <property name="transactionAttributeSource"> <ref bean="transactionAttributeSource"/> </property> <property name="transactionManager"> <ref bean="transactionManager"/> </property> </bean> <bean id="transactionAdvisor" class="org.springframework.transaction.interceptor.TransactionAttributeSourceAdvisor" autowire="constructor"> </bean>
everything works perfectly.Code:<prop key="*">PROPAGATION_SUPPORTS</prop>


Reply With Quote