Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
Spring Web 流引入了一个变量 currentUser,它返回经过身份验证的主体用户。在 Liferay 中,这总是返回为 null,因此它会中断。
如果您想要经过身份验证的 Liferay 用户,您可以随时调用:
PortalUtil.getUser(portletRequest);