我目前正在Tomcat7中使用Jersey 2.5.1创建一个后端服务器。为了安全起见,我使用了@RolesAllowed、@PermitAll等注释,并且我已经创建了我的自定义ContainerRequestFilter和SecurityContext。我的ContainerRequestFilter实现:
public class AuthorizationF
javax.annotation.security.DeclareRoles (in module java.annotation) because module java.annotation does not export javax.annotation.securityjavax.annotation.security.DeclareRoles (in module java.annotation) because module java.annotation does not export javax.annotation.securityjava