You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@servicecomb.apache.org by GitBox <gi...@apache.org> on 2022/12/29 03:24:10 UTC

[GitHub] [servicecomb-java-chassis] EickMing opened a new issue, #3549: 按照示例写springmvc写的xml接口,报argument type mismatch

EickMing opened a new issue, #3549:
URL: https://github.com/apache/servicecomb-java-chassis/issues/3549

   api:
   `@RequestMapping(path = "/aaaa", 
   method = RequestMethod.POST, 
   produces = MediaType.APPLICATION_XML_VALUE)
     public AAA aaaa(@RequestBody AAA aaa) {
       return person;
     }`
   入参类:
   `@Data
   @XmlAccessorOrder(XmlAccessOrder.ALPHABETICAL)
   @XmlRootElement(name = "aaa")
   public class AAA {
   
   @XmlElement(name = "bbb")
     private String bbb;}`
   
   postman请求正文:
   `<aaa><bbb>sss</bbb></aaa>`
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@servicecomb.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [servicecomb-java-chassis] EickMing commented on issue #3549: 按照示例写springmvc写的xml接口,报argument type mismatch

Posted by GitBox <gi...@apache.org>.
EickMing commented on issue #3549:
URL: https://github.com/apache/servicecomb-java-chassis/issues/3549#issuecomment-1367102024

   > 你给的链接的内容只实现了 `produces`, 没实现 `consumes`。
   
   java chassis 有实现consumes的例子吗?现在是想接收xml格式的请求正文


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@servicecomb.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [servicecomb-java-chassis] liubao68 commented on issue #3549: 按照示例写springmvc写的xml接口,报argument type mismatch

Posted by GitBox <gi...@apache.org>.
liubao68 commented on issue #3549:
URL: https://github.com/apache/servicecomb-java-chassis/issues/3549#issuecomment-1367093175

   你给的链接的内容只实现了 `produces`,  没实现 `consumes`。 


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@servicecomb.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [servicecomb-java-chassis] EickMing commented on issue #3549: 按照示例写springmvc写的xml接口,报argument type mismatch

Posted by GitBox <gi...@apache.org>.
EickMing commented on issue #3549:
URL: https://github.com/apache/servicecomb-java-chassis/issues/3549#issuecomment-1367057101

   使用简单扩展支持: https://github.com/apache/servicecomb-java-chassis/commit/ec3ec37e9fa18d1b2ec310f9d749b617d0938d4e#diff-f1bc9aab98b85867c7c9ccd4d96c3471d18291db7445075b24b37c8afadd6f77 .的实例代码postman调用/codeFirstSpringmvc/appXml的报错信息是一样的


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@servicecomb.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [servicecomb-java-chassis] liubao68 commented on issue #3549: 按照示例写springmvc写的xml接口,报argument type mismatch

Posted by GitBox <gi...@apache.org>.
liubao68 commented on issue #3549:
URL: https://github.com/apache/servicecomb-java-chassis/issues/3549#issuecomment-1367199643

   目前 java chassis 还没有完整实现 xml 的支持。 


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@servicecomb.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org