Springmvc的controller返回的modelAndView(jsonSuccess)里面的地址根本不存在啊?
@RequestMapping(value = "/add", method = RequestMethod.POST)
public ModelAndView add(HttpServletRequest request,
HttpServletResponse response, ZqbpCommonSerlect item) {
ConnectionSource connectionSource = DBUtil.getConnectionSource();
try {
Dao<ZqbpCommonSerlect, String> dao = DaoManager.createDao(connectionSource,
ZqbpCommonSerlect.class);
item.setSelectId(UUID.randomUUID().toString().replaceAll("-", ""));
dao.create(item);
connectionSource.close();
} catch (SQLException e) {
return jsonError(request, "保存失败", "");
}
return jsonSuccess(request, "保存成功!", getBasePath(request)+ "admin/chanpin/index.html");
《《《《《《《《《《《《《《《《《《《《《《《《《《《《《《《《《《《《《《《《《《《《《《《《《《《《
为什么还能正常打开?是不是这个地址并不是modelAndView数据所传递的地址?
旺仔牛奶丶
9 years, 6 months ago