diff --git a/src/main/java/com/example/just/Dao/Post.java b/src/main/java/com/example/just/Dao/Post.java index 7e3c6385..c8ca571c 100644 --- a/src/main/java/com/example/just/Dao/Post.java +++ b/src/main/java/com/example/just/Dao/Post.java @@ -131,7 +131,7 @@ public void changePost(PutPostDto postDto, Member member, Post post) { this.secret = postDto.getSecret(); this.postContent = postDto.getPost_content(); this.hashTagMaps = new ArrayList<>(); - for (int i = 0; i < postDto.getHash_tage().size(); i++) { + for (int i = 0; i < postDto.getHash_tage().size(); i++) { //여기 문제 HashTagMap hashTagMap = new HashTagMap(); hashTagMap.setPost(this); hashTagMap.setHashTag(new HashTag(postDto.getHash_tage().get(i))); diff --git a/src/main/java/com/example/just/Dto/PutPostDto.java b/src/main/java/com/example/just/Dto/PutPostDto.java index 602b20f3..4cd1f3bc 100644 --- a/src/main/java/com/example/just/Dto/PutPostDto.java +++ b/src/main/java/com/example/just/Dto/PutPostDto.java @@ -25,7 +25,7 @@ public class PutPostDto { private List post_content; //글 내용 - private List hash_tage; //글 태그/글 태그 + private List hash_tag; //글 태그/글 태그 private Long post_picture;