一. 1.Spring MVC provides several ways that a client can pass data into a controller’s handler method. These include Query parameters Form parameters Path variables 二.以query parameters的形式给action传参数 1.传参数 @Test public void shouldShowPagedSpittles()
1.no result defined for action .......and result input 或者 no result defined for action .......and result dataAccessFailure 原因: 类型转换异常 1.实体类中,有Double类型的属性, 当页面向action传参时,action中的属性有该实体,页面传的是String类型的,属性不能转换 2. 页面中 <input name=" "> 有多个i