关闭

java.io.IOException: Server returned HTTP response code: 505 for URL: http://localhost:8080/fish/add

1114人阅读 评论(1) 收藏 举报
java.io.IOException: Server returned HTTP response code: 505 for URL: http://localhost:8080/fish/addsaysay?test1={"fishingClubID":"9b52d6c9235a44258e3f1ae7509444fb","saySayContent":"O(∩_∩)O~ 呵呵呵呵....","pics":[{"smallPicUrl":"http://t11.baidu.com/it/u\u003d1647494968,4177717949\u0026fm\u003d59","midPicUrl":"http://t11.baidu.com/it/u\u003d1647494968,4177717949\u0026fm\u003d59","srcPicUrl":"http://t11.baidu.com/it/u\u003d1647494968,4177717949\u0026fm\u003d59"},{"smallPicUrl":"http://t10.baidu.com/it/u\u003d3621609036,491422897\u0026fm\u003d59","midPicUrl":"http://t10.baidu.com/it/u\u003d3621609036,491422897\u0026fm\u003d59","srcPicUrl":"http://t10.baidu.com/it/u\u003d3621609036,491422897\u0026fm\u003d59"}],"version":"version","clientID":"user_id3"}


错误原因是因为我的数据是用json封装的,而我写的saySayConten的赋值中有空格,所有报错了,把空格去掉就OK了

0
0

查看评论
* 以上用户言论只代表其个人观点,不代表CSDN网站的观点或立场
    个人资料
    • 访问:163177次
    • 积分:3964
    • 等级:
    • 排名:第7904名
    • 原创:243篇
    • 转载:29篇
    • 译文:0篇
    • 评论:6条
    最新评论