spring技巧
1.获取前端requestcontext
@RequestMapping("/search/data") public String search(PagingVO page, FrontCourseCatalogSearchVO searchVO, Model model, HttpServletRequest request) { page.setPageSize(searchVO.getMySize()); searchVO.setInternalOnly(isInternalOnlySearch()); PagingVO vo = catalogService.search(page, searchVO); model.addAttribute("pageSize", page.getPageSize()); model.addAttribute("pageVO", vo); RequestContext context = new RequestContext(request); model.addAttribute("lookupDeliveries", lookupService.getDeliveryMethod(context.getLocale().getLanguage())); return "view/front/course/search_data"; }
相关推荐
yupi0 2020-10-10
spring 2020-08-18
编程点滴 2020-07-29
幸运小侯子 2020-07-05
itjavashuai 2020-07-04
qingjiuquan 2020-06-29
shushan 2020-06-25
小鱿鱼 2020-06-22
咻pur慢 2020-06-18
melonjj 2020-06-17
qingjiuquan 2020-06-13
neweastsun 2020-06-05
小鱿鱼 2020-06-05
mxcsdn 2020-05-31
吾日五省我身 2020-05-27
牧场SZShepherd 2020-05-27
sweetgirl0 2020-05-14