beego:unexpected end of JSON input

後臺接收前臺傳過來的json,使用struct去接收報unexpected end of JSON input,我仔細對過struct每個字段中的屬性和json配置都沒錯,我還試着把數據解析到map中還是同樣的問題。最後百度後才知道要在app.conf中加入copyrequestbody = true才行。
相關文章
相關標籤/搜索