码迷,mamicode.com
首页 > 编程语言 > 详细

Spring Framework: @RestController vs @Controller

时间:2018-06-04 14:22:53      阅读:203      评论:0      收藏:0      [点我收藏+]

标签:ota   amp   json   hat   tco   between   ase   javadoc   www.   

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

标签:ota   amp   json   hat   tco   between   ase   javadoc   www.   

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

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!