3)In Spring if we are not expecting any content from server,then we have to use HTTP PUT method,In Spring restful web services we can use PUT method like below.

@RequestMapping(value="/{name}",method=RequestMethod.PUT)
@ResponseStatus(HttpStatus.NO_CONTENT)
public void saveData(@PathVariable("name") String name){
   xservice.saveValue(name);
}


Comments

Unknown said…
is HTTP Put method supported by application servers ??
Unknown said…
is HTTP Put method supported by application servers ??
Ramu Gadde said…
But now application severs are coming with internal web-server support also,take JBOSS example it is an application server it also supports PUT method.
Ramu Gadde said…
But now application severs are coming with internal web-server support also,take JBOSS example it is an application server it also supports PUT method.
Unknown said…
i hope web server part of application Servers. as per me Java Servers supports either get or post method for security concerns..