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.
有人可以提供getRoles()Weblogic角色映射提供者方法的用法吗?这在代码中如何使用?
getRoles()
看看这个
if ((request.getUserPrincipal().getName()) != null) { String userName = request.getUserPrincipal().getName().trim(); session.setAttribute("userName", userName); ..... if (request.isUserInRole("ADMINS")) { //do actions here } }