阅读背景:

如何配置Spring View解析器以忽略特定URL但不查找其.jsp?

来源:互联网 

I am working on a web application using Spring MVC architecture. I have a controller method that will be called by an ajax post(). The request mapper in the controller has a ".html" (meant for some cleanup task)for which the Spring Internal view resolver is trying to find a matching .JSP file and throws a 404 Not Found error. I donot want to create a .JSP which is not useful in my case. I need some help to determine if there is any setting in Spring Context xml to let the view resolver ignore this url and not to look for its .JSP file. I am working on a web application using Spring




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: