250x250
Notice
Recent Posts
Recent Comments
Link
| 일 | 월 | 화 | 수 | 목 | 금 | 토 |
|---|---|---|---|---|---|---|
| 1 | 2 | 3 | 4 | |||
| 5 | 6 | 7 | 8 | 9 | 10 | 11 |
| 12 | 13 | 14 | 15 | 16 | 17 | 18 |
| 19 | 20 | 21 | 22 | 23 | 24 | 25 |
| 26 | 27 | 28 | 29 | 30 |
Tags
- RDB
- mysql
- uuid
- LazyInitializationException
- 1093
- QGIS
- JWT
- posgis
- insert into
- Geoserver
- Linux
- #mojo
- Kafka
- spring boot
- postgresql
- JSON Web Token
- AuthenticationPrincipal
- Failed to load ApplicationContext
- postgres
- hadoop #hdfs
- python
- sftp
- Docker
- nginx
- spring
- Spring Security
- JPA
- psycopg2
- Java
- Maven
Archives
- Today
- Total
728x90
목록AuthenticationPrincipal (1)
FOREST_CHOI's BLOG
LazyInitializationException 예외 (feat.@AuthenticationPrincipal)
토이프로젝트로 개발을 진행하던 도중 LazyInitializationException 예외가 발생하였다. 다른 기술블로그들을 참고하였지만, 나의 근본적인 문제와 다른 문제였고 해결방법이 '이렇게 해도 되나?' 싶은게 대분이였다. 현재 내 프로젝트에서의 문제점은 이러했다. 1. @AuthenticationPrincipal을 편하게 받아오기위해 @CurrentMember(@CurrentUser라고많이씀) 을 설정하여 편하게 유저정보를 가져오게 하였음 2. 게시글 작성시 현재맴버를 가지고 오고 활용하는 과정에서 LazyInitializationException가 발생하였음 일단 LazyInitializationException 이란 무엇일까? - 영속성 컨텍스트가 종료된 상황에서 LAZY LOADING된 pr..
프로그래밍/JPA
2022. 7. 18. 16:18
728x90