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了