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

- Online Exam Test Papers | - MCQs[multiple choice questions and answers ] | - Mock Test Papers | - Practice Papers | - 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 07:25:27


More MCQS Questions and answers

Search
R4R Team
R4Rin Top Tutorials are Core Java,Hibernate ,Spring,Sturts.The content on R4R.in website is done by expert team not only with the help of books but along with the strong professional knowledge in all context like coding,designing, marketing,etc!