Q:

How to pass a callback method from JavaScript to java back-end with spring boot?

I am writing a code which can be accessed using jsonp. I need to pass a callback method from java script to spring boot

A:

Use @ControllerAdvice
For more detail, visit documentation

