Spring mvc的 ModelAndView的这个地址根本不存在,为什么还是能正常打开?

@RequestMappingvalue = “/add”, method = RequestMethod.POST

public ModelAndView addHttpServletRequest request, HttpServletResponse response, zqbp_custom item { ConnectionSource connectionSource = DBUtil.getConnectionSource; try { String []a=item.getCustom_address.split","; String aa=""; forint i=0;i<a.length;i++{ ifInteger.parseInta[i]!=-1{ ifa[i]!=null{ ifi!=4{ Dao<t_prov_city_area_street, String> dao = DaoManager.createDaoconnectionSource, t_prov_city_area_street.class; t_prov_city_area_street t=dao.queryForIda[i]; aa+=t.getName; }else{ aa+=a[i]; } } } } Dao<zqbp_custom, String> dao = DaoManager.createDaoconnectionSource, zqbp_custom.class; item.setCustom_idUUID.randomUUID.toString.replaceAll"-", ""; item.setStatus"0"; item.setCustom_addressaa; item.setCustom_trade"3"; dao.createitem; connectionSource.close; } catch SQLException e { return jsonErrorrequest, "保存失败!!", ""; } return jsonSuccessrequest, "保存成功!", getBasePathrequest
  • “admin/custom/index.html”;

    }

    《《《《《《《《《《《《《《《《《《《《《《《《《《《《《《
    ModelAndView的正确地址应该是admin/Custom/Index.jsp”
    绝对不是什么缓存的问题

最后的.html 跟jsp一样的

发表评论

电子邮件地址不会被公开。 必填项已用*标注