Object principal = SecurityContextHolder.getContext().getAuthentication().getPrincipal();
直接抛异常 显示为null;
天蓬老师2017-04-18 09:07:25
Thanks for the invitation! It must be intercept-url. This URL can obtain the logged-in user.
<intercept-url pattern="/你的URL或者包含你的URL的配置" access="..." />