I have the following piece of code in my Spring MVC application:
@RequestMapping(value = "/ping")
public void ping () {
}
I want to respond to that request with a simple plain text with:
OK!
But I’m currently using a ResourceBundleViewResolver, having my jsp’s in the WEB-INF/views folder… Is there a way to output plain text only by modifying the content of my ping () method? Thanks!
Try this: