Object principal = SecurityContextHolder.getContext().getAuthentication().getPrincipal();
直接抛异常 显示为null;
认证0级讲师
Thanks for the invitation! It must be intercept-url. This URL can obtain the logged-in user.
<intercept-url pattern="/你的URL或者包含你的URL的配置" access="..." />
If you put this together, who can tell which method returned null?
Thanks for the invitation! It must be intercept-url. This URL can obtain the logged-in user.
If you put this together, who can tell which method returned null?