Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
Johyunik committed Nov 22, 2023
1 parent 26f4b4a commit c6bc61a
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ public class WebMvcConfig implements WebMvcConfigurer {
public void addCorsMappings(CorsRegistry registry) {
registry.addMapping("/**")
.allowedOrigins("http://localhost:3000")
.allowedOrigins("https://weatherfit-frontend.vercel.app/")
// .allowedOrigins("https://weatherfit-frontend.vercel.app/")
.allowedMethods("GET", "POST", "PATCH", "DELETE")
.allowedHeaders("*")
.allowCredentials(true)
Expand Down
2 changes: 0 additions & 2 deletions src/main/java/com/weatherfit/board/service/BoardService.java
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,6 @@ public BoardEntity insertBoard(BoardEntity board) {
System.out.println(joiendString);
System.out.println(joiendString2);


kafkaTemplate.send("category", joiendString);
kafkaTemplate.send("hashtag", joiendString2);
return board;
Expand All @@ -75,7 +74,6 @@ public void patchBoard(int boardId, BoardUpdateDTO boardUpdateDTO) {
boardRepository.save(originalBoard);
}


// 게시글 삭제
public void deleteBoard(int boardId) {
boardRepository.deleteById(boardId);
Expand Down

0 comments on commit c6bc61a

Please sign in to comment.