Software Development, Programming, Self Improvement, Java, Spring Boot.
'ROLE_SUPER_ADMIN' or 'ROLE_ADMIN' roles can access this end point' @GetMapping("/AdminOrSuperAdmin") @PreAuthorize("hasRole('ROLE_USER') or hasRole('ROLE_ADMIN')") public ResponseEntity<ApiResponseDto<?>> AdminOrSuperAdminContent() { return ResponseEntity .status(HttpStatus.OK)