http « Annotation « Spring Q&A

1. @ResponseBody annotation reseting headers on response

I'm using Spring 3.0 and have something like the following

@RequestMapping(method = RequestMethod.POST, value = "/someUrl")
public String handleSomeUrl(@RequestParam(required = true) Long someId){
    // ...
    return someString;
I ...

2. Spring Web Annotations - HTTP 404 Not Found

Spring Web Annotations - HTTP 404 Not Found Hi, I'm trying to convert the sample InventoryController to use Spring annotations but keep hitting problems. My InventoryController is defined as below. When ...