the code to create @ControllerAdvice class to handle the exceptions globally

Spring Boot - Online Exam Test Papers | Spring Boot - MCQs[multiple choice questions and answers ] | Spring Boot - Mock Test Papers | Spring Boot - Practice Papers | Spring Boot - Sample Test Papers |

Question:
 the code to create @ControllerAdvice class to handle the exceptions globally

1.import org.springframework.web.bind.annotation.@GlobalAdvice ; @ControllerAdvice public class ProductExceptionController { }

2.import org.springframework.web.bind.annotation.@@GlobalAdvice ; @GlobalAdice public class ProductExceptionController { }

3.import org.springframework.web.bind.annotation.ControllerAdvice; @ControllerAdvice public class ProductExceptionController { }

4.None

Posted Date:-2020-11-25 00:25:27


More MCQS Questions and answers