Here we have a basic webapp using JSP that should provide multiple JSON-based REST service URLs.
These URLs will be under /services and will be generated using MyRestServicesController .
In the examples I see for JSON-based settings, everyone uses a ContentNegotiatingViewResolver . But for me this seems redundant, as this resolver seems to be for situations where the same URL can produce a different result.
I just want my RestServicesController always create MappingJacksonJsonView(s) .
Is there a cleaner, more direct way to just direct the controller to do this?
java spring-mvc
David parks
source share