When I use spring3 @Controller like this:
@RequestMapping(\"/userCenter\")
@Controller
public class LoginCtrl {
@RequestMapping(\"/loginPage\")
publ
Check the API docs for @RestController it is annotated with @ResponseBody itself, which indicates that method return value should be bound to the web response body. The configured view objects will never come into play, so it cannot map to any view. My question is why you want to use the RestController anyway, its not meant to map to any views?