1 | package com.hafiz.www.controller; import java.util.ArrayList; import java.util.List; import org.springframework.stereotype.Controller; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestMethod; import org.springframework.web.bind.annotation.RequestParam; import org.springframework.web.bind.annotation.ResponseBody; @Controller @RequestMapping ( "/test" ) public class TestController { @RequestMapping (value = "/index" , method = RequestMethod.GET) @ResponseBodypublic List test( @RequestParam ( "datas[]" ) ArrayList<Integer> ids){System.out.println( "List==" + ids); return ids;}} |
点击查看更多内容
为 TA 点赞
4 评论
共同学习,写下你的评论
作者其他优质文章
正在加载中
感谢您的支持,我会继续努力的~
扫码打赏,你说多少就多少
赞赏金额会直接到老师账户
支付方式
打开微信扫一扫,即可进行扫码打赏哦
赞赞赞赞赞赞赞赞赞赞