How to configure @ Transactional annotations in Spring
I believe many inexperienced people don't know what to do about how to configure @ Transactional annotations in Spring. Therefore, this article summarizes the causes and solutions of the problem. Through this article, I hope you can solve this problem.
@ Target ({ElementType.METHOD, ElementType.TYPE}) @ Retention (RetentionPolicy.RUNTIME) @ Inherited@Documentedpublic @ interface Transactional {@ AliasFor ("transactionManager") String value () default "; @ AliasFor (" value ") String transactionManager () default"; Propagation propagation () default Propagation.REQUIRED; Isolation isolation () default Isolation.DEFAULT; int timeout () default-1; boolean readOnly () default false; Class