第七色在线视频,2021少妇久久久久久久久久,亚洲欧洲精品成人久久av18,亚洲国产精品特色大片观看完整版,孙宇晨将参加特朗普的晚宴

為了賬號(hào)安全,請(qǐng)及時(shí)綁定郵箱和手機(jī)立即綁定
已解決430363個(gè)問題,去搜搜看,總會(huì)有你想問的

springmvc 接收list問題

springmvc 接收list問題

阿晨1998 2019-01-18 15:12:03
@RequestMapping("poster/add") @ResponseBody public ResultVo addPoster(Long categoryKey, Long typeId, String typeValue, @RequestBody List<ActivityPosterImageVo> imgList, HttpServletRequest request, HttpServletResponse response){ dosomething() } 前臺(tái)傳輸數(shù)據(jù) {categoryKey: 1, typeId: "1", typeValue: "學(xué)習(xí)", imgList: [{imgId: "87",…}]} 為什么顯示400 (Bad Request)
查看完整描述

3 回答

?
至尊寶的傳說

TA貢獻(xiàn)1789條經(jīng)驗(yàn) 獲得超10個(gè)贊

    @RequestMapping("poster/add")
    @ResponseBody
    public ResultVo addPoster(@RequestBody PosterRequest req, HttpServletRequest request,
                              HttpServletResponse response){
     dosomething()
    }
    
    class PosterRequest {
    Long categoryKey; Long typeId; String typeValue; List<ActivityPosterImageVo> imgList
    /// getter setter methods
    }
查看完整回答
反對(duì) 回復(fù) 2019-03-01
?
海綿寶寶撒

TA貢獻(xiàn)1809條經(jīng)驗(yàn) 獲得超8個(gè)贊

400:語法格式有誤,服務(wù)器無法理解此請(qǐng)求
前臺(tái)請(qǐng)求怎么寫的?

查看完整回答
反對(duì) 回復(fù) 2019-03-01
?
慕森卡

TA貢獻(xiàn)1806條經(jīng)驗(yàn) 獲得超8個(gè)贊

可能就是 ccfish 說的問題

建議你這邊下載一個(gè)postman,然后通過postman發(fā)送請(qǐng)求,像此類問題,最好把請(qǐng)求的方式和數(shù)據(jù)截一個(gè)圖

查看完整回答
反對(duì) 回復(fù) 2019-03-01
  • 3 回答
  • 0 關(guān)注
  • 654 瀏覽

添加回答

舉報(bào)

0/150
提交
取消
微信客服

購課補(bǔ)貼
聯(lián)系客服咨詢優(yōu)惠詳情

幫助反饋 APP下載

慕課網(wǎng)APP
您的移動(dòng)學(xué)習(xí)伙伴

公眾號(hào)

掃描二維碼
關(guān)注慕課網(wǎng)微信公眾號(hào)