Skip to content

Instantly share code, notes, and snippets.

Avatar

Michal Gebauer michalgebauer

View GitHub Profile
View ResourceResolver.java
@Component
public class ResourceResolver implements GraphQLQueryResolver {
public String securedResource() {
return "Secured resource";
}
@PreAuthorize("hasRole('ROLE_ADMIN')")
public String securedResourceAdmin() {
return "Secured resource Admin";
}
You can’t perform that action at this time.