apache / apache/servicecomb-java-chassis
按照示例写springmvc写的xml接口,报argument type mismatch
Open
- Dominant language
- Java
- Stars
- 1.9k
- Forks
- 814
- Avg merge
- 8d 23h
- Merged PRs (30d)
- 1
Description
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请求正文:
``
``
`sss`
``
``
另写一个无入参的接口,也是返回AAA,在postman那里是可以看到正确的xml格式的响应正文
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.