如果在类上面使用@Builder注解,
@Builderpublic class A {}
controller中使用:
public String test(@RequestBody A a){}
报错如下:
Bad Request: JSON parse error: (although at least one Creator exists)
去掉@Builder注解即可
本文共 238 字,大约阅读时间需要 1 分钟。
如果在类上面使用@Builder注解,
@Builderpublic class A {}
controller中使用:
public String test(@RequestBody A a){}
报错如下:
Bad Request: JSON parse error: (although at least one Creator exists)
去掉@Builder注解即可
转载于:https://www.cnblogs.com/mzrs/p/9523032.html