• 카테고리

    질문 & 답변
  • 세부 분야

    백엔드

  • 해결 여부

    미해결

SecurityResourceService.getResourceList() 관련질문

23.01.21 17:41 작성 23.01.21 17:44 수정 조회수 399

0

resourcesList.forEach(re -> {
            List<ConfigAttribute> configAttributeList = new ArrayList<>();
            re.getRoleSet()
                    .forEach(ro -> {
                        configAttributeList.add(new SecurityConfig(ro.getRoleName()));
                        result.put(new AntPathRequestMatcher(re.getResourceName()), configAttributeList);
                    });
        });

가 아니라

resourcesList.forEach(re -> {
            List<ConfigAttribute> configAttributeList = new ArrayList<>();
            re.getRoleSet()
                    .forEach(ro -> {
                        configAttributeList.add(new SecurityConfig(ro.getRoleName()));
                    });
            result.put(new AntPathRequestMatcher(re.getResourceName()), configAttributeList);
        });

이것이 강사님의 의도한바가 아니었을까 생각이 드는데

제가 잘못 짚은걸까요??

 

참고: 5) 웹 기반 인가처리 DB 연동 - FilterInvocationSecurityMetadataSource (2)

답변 1

답변을 작성해보세요.

0

김진범님의 프로필

김진범

질문자

2023.01.22

강의 나중에 수정했네요! 확인했습니다!