В контроллере Spring определите метод ресурса как
Public ModelAndView serveResource(ResourceRequest req, ResourceResponse res)
{
...
res.setContentType("application/json; charset=...");
return new ModelAndView("res_page", model);
}
И настройте страницу ответа res_page.jsp с помощью:
<% page contentType="text/html; charset=..." %>
<%-- text/html has no effective effect on your response contentType --%>
<% (your taglibs) %>
{
(your data)
}