The declarative transaction configuration used in spring is as follows:
<!– ================================Transaction related control=========== ============= –>
<bean name=”transactionManager”
class=”org.springframework.jdbc.datasource.DataSourceTransactionManager”>
<property name=”dataSource” ref=”dataSource”> </property>
</bean>
<tx:advice id=”txAdvice” transaction-manager=”transactionManager”>
<tx:attributes>
<tx:method name=”delete*” propagation=”REQUIRED” read-only=” false”
rollback-for=”java.lang.Exception” no-rollback-for=”java.lang.RuntimeException” />
<tx:method name=”insert*” propagation=”REQUIRED” read-only=”false”
rollback-for=”java.lang.RuntimeException” />
<tx:method name=”update*” propagation=”REQUIRED” read-only=”false”
rollback-for=”java.lang.Exception” />
<tx:method name=”find*” propagation=”SUPPORTS” />
<tx:method name=”get*” propagation=”SUPPORTS” />
<tx: method name=”select*” propagation=”SUPPORTS” />
</tx:attributes>
</tx:advice>
<aop:config>
<aop:pointcut id=”pc”
expression=”execution(public * com.framework ..*.*(..))” />
<aop:advisor pointcut-ref=”pc” advice-ref=”txAdvice” />
</aop:config>
The console reports an error when starting the program: java.lang. NoClassDefFoundError: org/aspectj/util/PartialOrder$PartialComparable.
Reason for error: missing jar package, aspectjweaver-1.5.2.jar
Read More:
- [Solved] Java.lang.ClassCastException: [Ljava.lang.Long; cannot be cast to java.util.List
- [Solved] JAVA Project Import jstl Error: java.lang.NoClassDefFoundError: javax/servlet/jsp/tagext/TagLibraryValidator
- [Solved] qrcode-error: Exception in thread “main” java.lang.NoClassDefFoundError…
- [Solved] fasterxml ToStringSerializerBase Error: Caused by: java.lang.NoClassDefFoundError…
- [Solved] nested exception is java.lang.NoClassDefFoundError: javax/xml/bind/DatatypeConverter
- Error resolution: Handler dispatch failed; nested exception is java.lang.NoClassDefFoundError: javax/xml/bind/Datatype
- [Solved] defineClass Error: java.lang.NoClassDefFoundError: Illegal:
- [Solved] Failed to convert value of type ‘java.lang.String‘ to required type ‘java.util.Date‘;
- [Solved] Scala error: type mismatch; found : java.util.List[?0] required: java.util.List[B]
- [Solved] java.util.concurrent.ExecutionException: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Tomcat].StandardHost[localhost].StandardContext[]]
- [Solved] Spring AOP Error creating bean with name
- [Solved] nacos Startup Error: nested exception is java.lang.RuntimeException: java.lang.RuntimeException: [db-load-error
- [Solved] java.lang.IllegalAccessError: class org.springframework.data.redis.core.$ Proxy237 cannot access its superinterface org.springframework.data.redis.core.RedisConnectionUtils$RedisConnectionProxy
- [Solved] Java.lang.ClassNotFoundException: org.apache.commons.fileupload.FileItemFactory
- [Solved] Internal error (java.lang.IllegalStateException): Duplicate key org.jetbrains
- [Solved] Hibernate Error: java.lang.StackOverflowError at java.lang.Integer.toString(Integer.java:402)
- kakfa Create topic Error: java.util.concurrent.ExecutionException: org.apache.kafka.common.errors.InvalidReplicationFactorException: Replication factor: 3 larger than available brokers: 2.
- [Solved] In case of “transactionmanager” while setting bean property “transactionmanager” error
- [Solved] java Internal error in the mapping processor java.lang.NullPointerException
- [Solved] java Internal error in the mapping processor java.lang.NullPointerException