一.tmall项目中拦截器的操作
SpringUtils remove ,startsWith
http://localhost:8080/tmall_springboot/home
HttpSession session = httpServletRequest.getSession();
String contextPath=session.getServletContext().getContextPath();【/tmall_springboot】
创建字符串数组
String[] requireAuthPages = new String[]{
"buy",
"alipay",
"payed",
"cart",
"bought",
};
String uri = httpServletRequest.getRequestURI(); 【/tmall_springboot/home】
uri = StringUtils.remove(uri, contextPath+"/");【home】
StringUtils.startsWith(page, requiredAuthPage)
二.签批系统获取6
jobs_grade=6;signField=Sign_principal
String principal_job_grade = taskFormKey.split(";")[0].split("=")[1];
=6