강의

멘토링

로드맵

Inflearn Community Q&A

jinbkim427712's profile image
jinbkim427712

asked

Spring Security

SecurityResourceService.getResourceList() 관련질문

Written on

·

521

·

Edited

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)

spring-bootjavaspring-securitySpring Security

Answer 1

0

jinbkim427712님의 프로필 이미지
jinbkim427712
Questioner

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

jinbkim427712's profile image
jinbkim427712

asked

Ask a question