我在Spring中创建了一个REST,在Range4中创建了一个客户端应用程序,我正在本地运行这两个应用程序。当我从POST测试postman方法时,它工作得很好,但是当我从角4应用程序发出POST请求时,它会导致400 Bad request。REST在控制台上显示以下错误
Failed to read HTTP message: org.springframework.http.converter.HttpMessageNotReadableException: Required request body is missing
REST有一个POST方法如下:
@CrossOrigin(o
我使用的是django和mongoengine和
如所示,在序列化程序的Meta类中指定字段
class Comment(Document):
post = ReferenceField(Post)
owner = ReferenceField(User)
text = StringField(max_length=140)
isApproved = BooleanField(default=False)
from rest_framework_mongoengine import mongoengine_serializer
class Comment
这是How to upgrade groovy-all from 2.4 to 2.5 when running in OSGi?的后续问题。在Groovy2.5版中,groovy-all工件不再作为jar文件提供,因此上面答案中的建议是使用单独的jar文件。我有一个使用Pax Exam的测试用例,它看起来像this @RunWith(PaxExam.class)
public class XmlPathOSGiITest {
@Configuration
public static Option[] configure() {
return new Opt