📅  最后修改于: 2022-03-11 14:52:11.053000             🧑  作者: Mango
Authentication authentication = SecurityContextHolder.getContext().getAuthentication();
// Get user name
authentication.getName()
Code language: JavaScript (javascript)