×

Welcome to TagMyCode

Please login or create account to add a snippet.
0
0
 
0
Language: Java
Posted by: digas
Added: Sep 26, 2014 2:37 PM
Modified: Sep 26, 2014 2:39 PM
Views: 27
Tags: java spring
  1. ServletRequestAttributes attr = (ServletRequestAttributes) RequestContextHolder.currentRequestAttributes();
  2. HttpSession session = attr.getRequest().getSession();