Very important notes about Spring @Transnational(Srping事务注解 @Transnational重要注意事项)
Posted passedbylove
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Very important notes about Spring @Transnational(Srping事务注解 @Transnational重要注意事项)相关的知识,希望对你有一定的参考价值。
Sprint @Transnational is being ignored in the following cases:
1. when the caller method is calling the @Transaction annotated method from the same class
2. When the Annotated method is not public
@Transnational by default don‘t rollback for Checked Exceptions
class A void caller() doInTransactionMethod(); // @Transnational is ignored @Transnational // by default rollback for RuntimeExceptions public <return type> doInTransactionMethod(<params>) // should be public as well
The problem is, I keep forgetting about the above 3 simple rules, So I tried to writing down here to try not to forget about it
http://m-hewedy.blogspot.com/search?updated-max=2019-01-01T07:27:00%2B02:00&max-results=7
以上是关于Very important notes about Spring @Transnational(Srping事务注解 @Transnational重要注意事项)的主要内容,如果未能解决你的问题,请参考以下文章
Healthy mind is really very important
Why is cotton yarn import still very strong in March?
He runs very fast,的very是副词吗,fast是副词还是形容词?
Adidas sneaker outlet very own eloquence along with his very