@RestController: a convenience annotation that does nothing more than adding the@Controller
and @ResponseBody
annotations。 @RestController是@Controller和@ResponseBody的结合体,两个标注合并起来的作用。
@RestController: a convenience annotation that does nothing more than adding the@Controller
and @ResponseBody
annotations。 @RestController是@Controller和@ResponseBody的结合体,两个标注合并起来的作用。