首页 > 编程语言 > 详细

Spring Framework: @RestController vs @Controller

时间:2018-06-04 12:42:57      阅读:147      评论:0      收藏:0      [点我收藏+]

https://docs.spring.io/spring-framework/docs/current/javadoc-api/org/springframework/web/bind/annotation/RestController.html

 

https://www.genuitec.com/spring-frameworkrestcontroller-vs-controller/

https://dzone.com/articles/spring-framework-restcontroller-vs-controller/

 

 

https://www.dineshonjava.com/restcontroller-in-spring-40-framework/

https://stackoverflow.com/questions/25242321/difference-between-spring-controller-and-restcontroller-annotation

@RestController is a stereotype annotation that combines @ResponseBody and @Controller. More than that, it gives more meaning to your Controller
and also may carry additional semantics in future releases of the framework.

 

sample:

https://spring.io/guides/gs/rest-service/

http://www.benchresources.net/spring-mvc-4-0-restful-web-service-using-restcontroller-annotation/

https://viralpatel.net/blogs/spring-4-mvc-rest-example-json/

 

Spring Framework: @RestController vs @Controller

原文:https://www.cnblogs.com/rgqancy/p/9132323.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!