@AuthenticationPrinCipal(expression = "realMember") MemberVO member
이것은
public class MemberWrapper extends User{
public MemberWrapper(MemberVO realMember) {
super(realMember.getMemId(), realMember.getMemPass(),
!"Y".equals(realMember.getMemDelete()),
!"Y".equals(realMember.getMemDelete()),
!"Y".equals(realMember.getMemDelete()),
!"Y".equals(realMember.getMemDelete()),
Collections.singleton(new SimpleGrantedAuthority(realMember.getMemRole())));
this.realMember = realMember;
}
private MemberVO realMember;
public MemberVO getRealMember() {
return realMember;
}
}
여기서 잡음 getRealMember()를 쓰기 위한 방법
EL에서는 메서드를 호출못하니 대신 호출해주기 위해서 하다 보면 get/set을 빼고 realMember
이렇게 쓰게 되었다.
사용법