Jakarta EE Cookbook
上QQ阅读APP看书,第一时间看更新

How it works...

The whole point in this recipe is to do with the @RolesAllowed, @RunsAs, and @PermitAll annotations. They define what operations each role can do and what happens when a user tries an operation using the wrong role.