POST提交,报以下异常,
"Could not read document: Unrecognized token 'userid': was expecting ('true', 'false' or 'null')↵
at[Source:org.glassfish.jersey.message.internal.ReaderInterceptorExecutor$UnCloseableInputStream@9e3d60d; line: 1, column: 19]
解决问题:
从报错信息上看,我传的ID是布尔值,可是我的ID是字符串,但是必须要转换成字符串才可以,所以下面的代码就转换了就OK了!
版权声明:本文为hlx20080808原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接和本声明。