@RestController: a convenience annotation that does nothing more than adding the@Controller
and @ResponseBody
annotations。 @RestController是@Controller和@ResponseBody的结合体,两个标注合并起来的作用。
@RestController
猜你喜欢
转载自guanxi.iteye.com/blog/2312638
今日推荐
周排行