There are Matniyazov Sardor's history
#1 @Transactional wasn’t work in my method, I had throw my custom exception. Datas inserted but not rollbacked.
Stack Overflow
How to throw custom exception from transactional Spring service?
I have this spring service:
@Service
@Transactional
public class ConsorcioServiceImpl implements ConsorcioService {
...
@Autowired
private ConsorcioRepository consorcioRepository;
...
@Service
@Transactional
public class ConsorcioServiceImpl implements ConsorcioService {
...
@Autowired
private ConsorcioRepository consorcioRepository;
...
There are Matniyazov Sardor's history
Answer: Note that by default, rollback happens for runtime, unchecked exceptions only. The checked exception does not trigger a rollback of the transaction. We can, of course, configure this behavior with the rollbackFor and noRollbackFor annotation parameters.…
Forwarded from Уютное сообщество джавистов
Spring REST 2022.epub
20.3 MB
Spring REST: Building Java Microservices and Cloud Applications, 2nd Edition - 2022
#Spring
#Spring
Forwarded from Уютное сообщество джавистов
Spring_Boot_Microservices_on_AWS_Elastic_Kubernetes_Services_EKS.epub
17.4 MB
Spring Boot Microservices on AWS Elastic Kubernetes Services (EKS): With AWD RDS Backend - 2021
#Spring
#Spring
The more distributed a system is, the more places it can fail.
Which of the following methods are instance methods in java.lang.Thread? Which method may throw an InterruptedException? Which of them are deprecated in Java?
run, start, stop, suspend, resume, sleep, interrupt, yield, join
run, start, stop, suspend, resume, sleep, interrupt, yield, join