When I try to make a call to my spring web client, I get the error:
HTTP Status 500 - Request processing failed; nested exception is java.lang.IllegalStateException: Async support must be enabled on a servlet and for all filters involved in async request processing. This is done in Java code using the Servlet API or by adding "true" to servlet and filter declarations in web.xml.
I do not have access / rather not mess with the web.xml file. My spring controller is as follows:
@Controller
@RequestMapping("/test/test")
public class MyController
{
//Using DeferedResult and Http get / post
}
Things i tried: putting @Async above class and above the methods for get/post. Also tried putting @EnableAsync above the class. How do I enable async support in the java code without doing it in the web.xml? Could not find much help online
web.xmlfile