【发布时间】:2017-03-29 10:50:34
【问题描述】:
我正在使用 STS 尝试一个非常简单的 Spring Boot + MySql 应用程序:https://github.com/acenelio/person01
使用 raw body 发布一个新的 Person 效果很好。但是,当尝试使用表单数据发布时,我会收到 400 HttpMessageNotReadableException 或 415 HttpMediaTypeNotSupportedException 错误,具体取决于我在 Headers 上设置的 Content-type。
我在这里提供了一些 Postman 打印屏幕:https://sites.google.com/site/stackoverflownelioalves/arqs
我错过了什么?我对 Postman 和 Spring Boot 有点陌生。谢谢。
【问题讨论】:
-
您好,欢迎来到 StackOverflow。请花一些时间阅读帮助页面,尤其是名为"What topics can I ask about here?" 和"What types of questions should I avoid asking?" 的部分。更重要的是,请阅读the Stack Overflow question checklist。您可能还想了解Minimal, Complete, and Verifiable Examples。
标签: spring rest spring-boot postman