【发布时间】:2018-12-11 12:46:42
【问题描述】:
我目前正在学习带有 Sprint Boot 和使用 POST 请求的 AngularJS。我知道后端工作正常,但是,我试图弄清楚使用复选框和 Spring Boot MVC 可能会出现什么问题。如果我的代码不好,请原谅,仍然是新的。
错误信息:
{
"status" : "400",
"cause" : null,
"method" : "POST",
"message" : "Required request body is missing: public void com.velatt.dartentitlements.api.SiteController.addServicesToSite(java.lang.Long,org.springframework.hateoas.Resources<com.velatt.dartentitlements.domain.DeService>) throws java.net.URISyntaxException",
"exception" : "HttpMessageNotReadableException",
"path" : "/sites/1/services",
"error" : "Bad Request"
}
【问题讨论】:
标签: angularjs spring-mvc spring-boot