public String getLoginPersonDeptId() throws Exception {
ServletRequestAttributes attribute = (ServletRequestAttributes) RequestContextHolder.currentRequestAttributes();
return attribute.getRequest().getSession().getAttribute("#_branchId").toString();
}
String dstPath = ContextLoader.getCurrentWebApplicationContext().getServletContext().getRealPath("\tmp");
最后
以上就是包容钻石最近收集整理的关于service中获取request、session、ServletContext的全部内容,更多相关service中获取request、session、ServletContext内容请搜索靠谱客的其他文章。
本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
发表评论 取消回复