Glassfish @RolesAllowed with custom SecurityContext

前端 未结 2 965
醉酒成梦
醉酒成梦 2021-02-06 16:37

The question i\'m about to ask is a bit tricky and I haven\'t found any answer yet. Maybe because i\'m looking for the wrong thing. But i hope you will help me on this.

2条回答
  •  情话喂你
    2021-02-06 16:44

    what about your web.xml?

    Have you already put this filters inside web.xml?

    
           com.sun.jersey.spi.container.ContainerRequestFilters
           com.yourcompany.filter.SecurityFilter
       
        
            com.sun.jersey.spi.container.ResourceFilters
            com.sun.jersey.api.container.filter.RolesAllowedResourceFilterFactory
        
    

提交回复
热议问题