@RestController注解相当于@ResponseBody + @Controller合在一起的作用
@Controller和@RestController的区别?
原创
©著作权归作者所有:来自51CTO博客作者shamo8899的原创作品,请联系作者获取转载授权,否则将追究法律责任
提问和评论都可以,用心的回复会被更多人看到
评论
发布评论
相关文章
-
Controller和RestController区别
①相同点:都是用来表示Spring某个类的是否可以接受HTTP请求②不通点:1、是
spring 视图解析器 json 自定义