2018년 5월 29일 화요일

spring security 관련 자료

spring security 관련 사이트

http://preludeb.egloos.com/v/4738521


로그인 강제 주입(수동처리)

Object principal = memberDetailService.loadUserByUsername("");
SecurityContextHolder.getContext().setAuthentication(new UsernamePasswordAuthenticationToken(principal, null, ((UserDetails) principal).getAuthorities()));


http://memo.polypia.net/archives/1593

댓글 없음:

댓글 쓰기