Issue
I am writing a code which can be accessed using jsonp. I need to pass a callback method from java script to spring boot
Solution
Use @ControllerAdvice
For more detail, visit href="https://docs.spring.io/spring-framework/docs/current/javadoc-api/org/springframework/web/bind/annotation/ControllerAdvice.html" rel="nofollow noreferrer">documentation
Answered By - Amjad Rehman A
Answer Checked By - Mary Flores (JavaFixing Volunteer)