Transactions, Spring.
need to specify all the checked exceptions thrown by this method Another way is to extend the RunTimeException and we don’t need to specify rollbackFor attribute public class UserNotEligibleToDriveException extends RunTimeException{} public class UserService { @Autowired UserRespository