@RequestMapping(method = RequestMethod.GET, value = {"wjshq_{id:\\d*}.htm"})
public String quotation(@PathVariable("id") Long id, Model model,HttpServletResponse response) {
String code = artService.getCodeByArtId(id);
response.setStatus(301);
response.setHeader("Location", commonConfig.getCangDomain() + "/wjshq/" + id + "_" + code + ".htm");
response.setHeader("Connection", "close");
return null;
}
301跳轉
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.