将get和post请求中的参数传递到controller中
domain中
public class Role {
private Long id;
private String roleName;
private String roleDesc;
前端页面中
<form action="/Program/json/requestParamTest" method="get">
requestParam Test<br>
角色名:<input type="text" name="rolename"><br>
角色描述:<input type="text" name="roledesc"><br>
<input type="submit" value="提交">
</form>
domain中和html中roleName , rolename 不一样 , 可以封装到domain中去
2232



被折叠的 条评论
为什么被折叠?



