Skip to content

restful提交json,requestBody #37

Description

@yqMac

Restful,返回json可以使用字符串返回,但是提交json,requestBody如何实现,我根据SpringMVC来做接收不到参数

Activity

  1. kailbin commented on Jun 2, 2017

    @kailbin

    同问

  2. met-pub commented on Jun 6, 2017

    @met-pub

    自己转吧

  3. bsqql123 commented on Aug 16, 2017

    @bsqql123

    在下面链接里,小米rose框架团队提到没有支持application/json 请求的计划:

    XiaoMi/rose#3

    spring mvc提供了 @RequestBody 注解但是rose并没有提供类似于这样的功能
    类似于

    
    @ RequestMapping("test")
    public String hello(@RequestBody String name){
     //to do ...
    }
    
  4. whyong commented on Mar 15, 2018

    @whyong

    @bsqql123 这个代码连接已经不能打开了,需要用这个功能,如果方便请发给我一份
    yhsoft2006@126.com
    谢谢!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions