spring security 获取登陆用户信息

import org.springframework.security.core.Authentication;
import org.springframework.security.core.context.SecurityContextHolder;
Authentication auth = SecurityContextHolder.getContext().getAuthentication();

猜你喜欢

转载自blog.csdn.net/Forever_and_ever/article/details/85762492
今日推荐