ライン1:
public ModelAndView viewCustomerDetails(@RequestParam("custId") Integer customerId, @RequestParam("categoryName") String categoryName, HttpServletRequest request) throws BusinessException{
2行目:
public ModelAndView viewCustomerDetails(@RequestMapping("custId") Integer customerId, @RequestMapping("categoryName") String categoryName, HttpServletRequest request) throws BusinessException{
私は自分のプロジェクトコードを徹底的に調べており、いくつかの混乱が@RequestParamあり@RequestMapping、時には見つけ@RequestParamたり、時には混乱したりしてい@RequestMappingます。custId私の理解では、両方とも値をcustomerIdデータメンバーに割り当てます。
私のjspファイルの一部:
<form:input mandatory="true" id="CustNameTxt" path="custName" cssClass="txtfield controlWidth" readonly="false" />
私の問題をよりよく理解するために、Line2で編集を行いました