반응형
Notice
Recent Posts
Recent Comments
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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
- redis
- Hibernate
- spring boot
- vue.js
- argo cd
- netflix oss
- coalesce
- spring cloud
- QueryDSL
- cassandra
- JPA
- Redis Sentinel
- docker-compose
- ChannelPipeline
- weblogic 10
- docker
- RabbitMQ
- Netty
- MySQL
- mybatis
- grafana
- Spring Open Feign
- KAFKA
- Airflow
- spring boot redis
- Selenium
- WebLogic
- docker compose mysql
- jmeter
- Docker Compose
Archives
- Today
- Total
목록2017/09/21 (1)
IT.FARMER
Jpa JSON 순환참조 @ResponseBody
ORM Jpa @ResponseBody 재귀 memory error ORM을 이용하다보면 @ResponseBody 에서 자동으로 마샬링 언마샬링시에 무한 재귀에 빠지게 된다. 이때 부모자식과 같은 관계를 갖는 객체는 원하는 형태에 따라 다음과 같은 @Annotation을 붙여 주어야 한다. @JsonBackReference 는 순환참조의 역할을 끝어주게 되며, 해당 객체가 마샬릴될때 대상에서 제외 된다. 즉 양방향의 JSON 마샬링을 할 수 없는 단점 존재한다. 양방양이 가능한 @JsonIdentityInfo(http://springquay.blogspot.kr/2016/01/new-approach-to-solve-json-recursive.html) 있지만 같은 객체에대한 마샬링은 해주지 않고 참조만 ..
Spring/Spring Data JPA
2017. 9. 21. 16:43