This question shows research effort; it is useful and clear
1
This question does not show any research effort; it is unclear or not useful
Bookmark this question.
Show activity on this post.
我有一个要求,我需要将链接发送给在他的角色中有一些待处理请求的用户。当用户单击该链接时,他可以跳过登录但创建会话来访问应用程序。我需要使用 windows 用户名。我尝试使用system.getProperty("user.name"),但它给出的用户名取决于主机,这意味着给出特定主机的用户名。但我需要发送请求的用户的 Windows 用户名。我尝试使用request.getRemoteUser()但getPrincipalUser()面临一些身份验证问题。