인프런 커뮤니티 질문&답변
Unable to evaluate the expression Method threw 'org.hibernate.LazyInitializationException' exception. 이라는 에러가 뜹니다.
작성
·
1K
0
UserDetailsService에서 findByUsername에서 UserRole을 Loading 할 때 lazyloading에 관련하여서 Error가 뜹니다.
https://github.com/JeongJin984/SpringSecurity/blob/master/SpringSecurity2/src/main/java/com/example/SpringSecurity2/Security/service/CustomUserDetailsService.java
코드 입니다.




