We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
1. postId로 조회 http://localhost:8080/v1/post?postId=1
http://localhost:8080/v1/post?postId=1
{ "status": "OK", "message": "Post Get", "data": { "title": "Title12 hi", "contents": "contents1", "tagNames": [ "tag1", "tag2", "tag3" ] } }
2. URL로 조회 http://localhost:8080/MyBlog.io/@[USERID]/[SLUG]
http://localhost:8080/MyBlog.io/@[USERID]/[SLUG]
🚨 TroubleShooting
순환 참조 Post 가져올 때 Post와 PostHashtag 간의 순환 참조 문제 발생
해결 @OneToMany에는 @JsonManagedReference, @ManyToOne에는 @JsonBackReference annotation 추가
@OneToMany
@JsonManagedReference
@ManyToOne
@JsonBackReference annotation
The text was updated successfully, but these errors were encountered:
seoyeon0201
No branches or pull requests
1. postId로 조회
http://localhost:8080/v1/post?postId=1
2. URL로 조회
http://localhost:8080/MyBlog.io/@[USERID]/[SLUG]
🚨 TroubleShooting
순환 참조
Post 가져올 때 Post와 PostHashtag 간의 순환 참조 문제 발생
해결
@OneToMany
에는@JsonManagedReference
,@ManyToOne
에는@JsonBackReference annotation
추가The text was updated successfully, but these errors were encountered: