Well all the examples that I have seen use org.springframework.web.bind.annotation.RestController; it works for them; but I cannot import it. I cam import org.springframework.web.bind.annotation.RequestMapping and org.springframework.web.bind.annotation.RequestMethod; I imagine they should be in the same jar file. For some reason they are not in org.springframework.web.bind.annotation in spring-web-3.1.1.RELEASE.jar in Maven Dependencies; I am more confused.
Looking at other examples, I am beginning to see cases where objects are returned using @Controller; maybe that's the modern way; I am going to try it, but who knows. Of course at the end I can use ResponseEntity.
Your help will be greatly appreciated,