美文网首页
mvc控制器和REST控制器

mvc控制器和REST控制器

作者: BenjaminCool | 来源:发表于2019-03-01 18:30 被阅读1次

    https://www.journaldev.com/21515/spring-controller-spring-mvc-controller

    Spring Controller

    Spring Controller annotation can be applied on classes only. It’s used to mark a class as a web request handler. It’s mostly used with Spring MVC application.

    Spring RestController

    Spring @RestController is a convenience annotation that is itself annotated with @Controller and @ResponseBody. This annotation is used to mark a class as request handler for RESTful web services.

    相关文章

      网友评论

          本文标题:mvc控制器和REST控制器

          本文链接:https://www.haomeiwen.com/subject/ccdjuqtx.html