我在jsp页面中通过这种方式给Controller传值href =" index.do?method=getAll "为什么Controller接收不到呢?String method = request.getParameter("method");后台打印method为null
你看看你是什么提交方式,是不是Get提交。再看看换个名字能不能接收到,method是不是关键字被拦截了。
不是POST方式提交,是Get提交。后台打印method为getAll
你在浏览器中直接访问看看