From 4e7623e306e0f58a8f28ce0f330b7077e3ddfca6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E1=84=87=E1=85=A1=E1=86=A8=E1=84=83=E1=85=A1=E1=84=8B?= =?UTF-8?q?=E1=85=A8?= Date: Sat, 12 Aug 2023 21:41:13 +0900 Subject: [PATCH 1/5] =?UTF-8?q?feat:=20=ED=85=8C=EC=8A=A4=ED=8A=B8=20?= =?UTF-8?q?=ED=99=98=EA=B2=BD=20=EA=B5=AC=EC=B6=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../moyeomoyeo/common/util/UuidGenerator.java | 3 + .../dto/response/UserChoiceInfoResponse.java | 19 ------- .../service/TeamBuildingService.java | 4 +- src/main/resources/application.yml | 2 +- .../MoyeoMoyeoApplicationTests.java | 11 +++- .../nexters/moyeomoyeo/MoyeoMoyeoTest.java | 18 ++++++ .../service/TeamBuildingServiceTest.java | 56 +++++++++++++++++++ src/test/resources/application-test.yml | 2 +- 8 files changed, 90 insertions(+), 25 deletions(-) delete mode 100644 src/main/java/com/nexters/moyeomoyeo/team_building/controller/dto/response/UserChoiceInfoResponse.java create mode 100644 src/test/java/com/nexters/moyeomoyeo/MoyeoMoyeoTest.java create mode 100644 src/test/java/com/nexters/moyeomoyeo/team_building/service/TeamBuildingServiceTest.java diff --git a/src/main/java/com/nexters/moyeomoyeo/common/util/UuidGenerator.java b/src/main/java/com/nexters/moyeomoyeo/common/util/UuidGenerator.java index d57c553..f692131 100644 --- a/src/main/java/com/nexters/moyeomoyeo/common/util/UuidGenerator.java +++ b/src/main/java/com/nexters/moyeomoyeo/common/util/UuidGenerator.java @@ -5,7 +5,10 @@ import java.util.Base64; import java.util.Base64.Encoder; import java.util.UUID; +import lombok.AccessLevel; +import lombok.NoArgsConstructor; +@NoArgsConstructor(access = AccessLevel.PRIVATE) public class UuidGenerator { private static final Encoder BASE64_URL_ENCODER = Base64.getUrlEncoder().withoutPadding(); diff --git a/src/main/java/com/nexters/moyeomoyeo/team_building/controller/dto/response/UserChoiceInfoResponse.java b/src/main/java/com/nexters/moyeomoyeo/team_building/controller/dto/response/UserChoiceInfoResponse.java deleted file mode 100644 index 50d52f8..0000000 --- a/src/main/java/com/nexters/moyeomoyeo/team_building/controller/dto/response/UserChoiceInfoResponse.java +++ /dev/null @@ -1,19 +0,0 @@ -package com.nexters.moyeomoyeo.team_building.controller.dto.response; - -import lombok.AccessLevel; -import lombok.AllArgsConstructor; -import lombok.Builder; -import lombok.Getter; -import lombok.NoArgsConstructor; - -@Getter -@NoArgsConstructor(access = AccessLevel.PRIVATE) -@AllArgsConstructor(access = AccessLevel.PRIVATE) -@Builder -public class UserChoiceInfoResponse { - - private Long id; - private Integer choiceOrder; - private UserInfo user; - private TeamInfo team; -} diff --git a/src/main/java/com/nexters/moyeomoyeo/team_building/service/TeamBuildingService.java b/src/main/java/com/nexters/moyeomoyeo/team_building/service/TeamBuildingService.java index 8f3d585..c0b2261 100644 --- a/src/main/java/com/nexters/moyeomoyeo/team_building/service/TeamBuildingService.java +++ b/src/main/java/com/nexters/moyeomoyeo/team_building/service/TeamBuildingService.java @@ -99,8 +99,8 @@ public TeamBuildingResponse createTeamBuilding(TeamBuildingRequest teamBuildingR @Transactional - public UserPickResponse pickUsers(String uuid, String teamUuid, UserPickRequest userPickRequest) { - final TeamBuilding teamBuilding = findWithTeamsAndUsers(uuid); + public UserPickResponse pickUsers(String teamBuildingUuid, String teamUuid, UserPickRequest userPickRequest) { + final TeamBuilding teamBuilding = findWithTeamsAndUsers(teamBuildingUuid); if (RoundStatus.COMPLETE == teamBuilding.getRoundStatus()) { throw ExceptionInfo.COMPLETED_TEAM_BUILDING.exception(); diff --git a/src/main/resources/application.yml b/src/main/resources/application.yml index f17e688..7503aea 100644 --- a/src/main/resources/application.yml +++ b/src/main/resources/application.yml @@ -25,7 +25,7 @@ logging.level: org.hibernate.type: info com.jpa: debug -springdoc: +spring-doc: swagger-ui: path: /swagger-ui.html groups-order: DESC diff --git a/src/test/java/com/nexters/moyeomoyeo/MoyeoMoyeoApplicationTests.java b/src/test/java/com/nexters/moyeomoyeo/MoyeoMoyeoApplicationTests.java index 837f9f7..2998a94 100644 --- a/src/test/java/com/nexters/moyeomoyeo/MoyeoMoyeoApplicationTests.java +++ b/src/test/java/com/nexters/moyeomoyeo/MoyeoMoyeoApplicationTests.java @@ -1,14 +1,21 @@ package com.nexters.moyeomoyeo; +import static org.junit.jupiter.api.Assertions.assertEquals; + import org.junit.jupiter.api.Test; -import org.springframework.boot.test.context.SpringBootTest; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.core.env.Environment; -@SpringBootTest(properties = {"spring.config.location=classpath:application-test.yml"}) +@MoyeoMoyeoTest class MoyeoMoyeoApplicationTests { + @Autowired + private Environment environment; + @Test void contextLoads() { + assertEquals("test", environment.getActiveProfiles()[0]); } } diff --git a/src/test/java/com/nexters/moyeomoyeo/MoyeoMoyeoTest.java b/src/test/java/com/nexters/moyeomoyeo/MoyeoMoyeoTest.java new file mode 100644 index 0000000..af67969 --- /dev/null +++ b/src/test/java/com/nexters/moyeomoyeo/MoyeoMoyeoTest.java @@ -0,0 +1,18 @@ +package com.nexters.moyeomoyeo; + +import java.lang.annotation.Documented; +import java.lang.annotation.ElementType; +import java.lang.annotation.Retention; +import java.lang.annotation.RetentionPolicy; +import java.lang.annotation.Target; +import org.springframework.boot.test.context.SpringBootTest; +import org.springframework.test.context.ActiveProfiles; + +@Target(ElementType.TYPE) +@Retention(RetentionPolicy.RUNTIME) +@Documented +@SpringBootTest(properties = {"spring.config.location=classpath:application-test.yml"}) +@ActiveProfiles("test") +public @interface MoyeoMoyeoTest { + +} diff --git a/src/test/java/com/nexters/moyeomoyeo/team_building/service/TeamBuildingServiceTest.java b/src/test/java/com/nexters/moyeomoyeo/team_building/service/TeamBuildingServiceTest.java new file mode 100644 index 0000000..6d427d2 --- /dev/null +++ b/src/test/java/com/nexters/moyeomoyeo/team_building/service/TeamBuildingServiceTest.java @@ -0,0 +1,56 @@ +package com.nexters.moyeomoyeo.team_building.service; + +import static org.junit.jupiter.api.Assertions.assertEquals; + +import com.nexters.moyeomoyeo.MoyeoMoyeoTest; +import com.nexters.moyeomoyeo.team_building.controller.dto.request.TeamBuildingRequest; +import com.nexters.moyeomoyeo.team_building.controller.dto.request.TeamRequest; +import com.nexters.moyeomoyeo.team_building.controller.dto.response.TeamBuildingResponse; +import com.nexters.moyeomoyeo.team_building.domain.constant.Position; +import com.nexters.moyeomoyeo.team_building.domain.constant.RoundStatus; +import java.util.List; +import org.junit.jupiter.api.Test; +import org.springframework.beans.factory.annotation.Autowired; + +@MoyeoMoyeoTest +class TeamBuildingServiceTest { + + @Autowired + private TeamBuildingService teamBuildingService; + + + @Test + void createTeamBuilding() { + final var saveResponse = saveTeamBuildingWithTeams(); + final TeamBuildingResponse findResponse = teamBuildingService.findTeamBuildingAndTeams( + saveResponse.getTeamBuildingInfo().getTeamBuildingUrl()); + + // team building + assertEquals(saveResponse.getTeamBuildingInfo().getTeamBuildingUrl(), + findResponse.getTeamBuildingInfo().getTeamBuildingUrl()); + assertEquals(RoundStatus.FIRST_ROUND, findResponse.getTeamBuildingInfo().getRoundStatus()); + + //team + assertEquals(saveResponse.getTeamInfoList().get(0).getTeamName(), + findResponse.getTeamInfoList().get(0).getTeamName()); + assertEquals(saveResponse.getTeamInfoList().get(1).getTeamName(), + findResponse.getTeamInfoList().get(1).getTeamName()); + } + + private TeamBuildingResponse saveTeamBuildingWithTeams() { + return teamBuildingService.createTeamBuilding(TeamBuildingRequest.builder() + .name("team-Building") + .teams(List.of( + TeamRequest.builder() + .name("team1") + .pmName("pm1") + .pmPosition(Position.FRONT_END) + .build(), + TeamRequest.builder() + .name("team2") + .pmName("pm2") + .pmPosition(Position.BACK_END) + .build())) + .build()); + } +} diff --git a/src/test/resources/application-test.yml b/src/test/resources/application-test.yml index aa0bc13..b1a60a5 100644 --- a/src/test/resources/application-test.yml +++ b/src/test/resources/application-test.yml @@ -5,7 +5,7 @@ spring: path: /h2-console datasource: - url: jdbc:h2:mem:test + url: jdbc:h2:mem:test;NON_KEYWORDS=USER username: sa password: driver-class-name: org.h2.Driver From 9a4b78b823fa4d89f19ce895f53df0a4ce1efbf0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=ED=97=88=EC=88=98=EC=A7=84/=ED=9A=8C=EC=9B=90=EC=84=9C?= =?UTF-8?q?=EB=B9=84=EC=8A=A4=ED=8C=80?= Date: Sat, 12 Aug 2023 23:03:17 +0900 Subject: [PATCH 2/5] =?UTF-8?q?[MOYEO-51]=20=EC=82=AD=EC=A0=9C=20=EB=A1=9C?= =?UTF-8?q?=EC=A7=81=20=EA=B5=AC=ED=98=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../TeamBuildingAdminController.java | 19 ++++++++------- .../domain/repository/UserRepository.java | 3 +++ .../team_building/infra/UserJpa.java | 5 +++- .../infra/UserRepositoryImpl.java | 8 ++++++- .../team_building/service/UserService.java | 23 +++++++++++++++---- 5 files changed, 43 insertions(+), 15 deletions(-) diff --git a/src/main/java/com/nexters/moyeomoyeo/team_building/controller/TeamBuildingAdminController.java b/src/main/java/com/nexters/moyeomoyeo/team_building/controller/TeamBuildingAdminController.java index 790bae0..3fc4603 100644 --- a/src/main/java/com/nexters/moyeomoyeo/team_building/controller/TeamBuildingAdminController.java +++ b/src/main/java/com/nexters/moyeomoyeo/team_building/controller/TeamBuildingAdminController.java @@ -15,6 +15,7 @@ import jakarta.validation.Valid; import lombok.RequiredArgsConstructor; import org.springframework.http.ResponseEntity; +import org.springframework.web.bind.annotation.DeleteMapping; import org.springframework.web.bind.annotation.PathVariable; import org.springframework.web.bind.annotation.PostMapping; import org.springframework.web.bind.annotation.PutMapping; @@ -33,23 +34,25 @@ public class TeamBuildingAdminController { @Operation(summary = "팀 빌딩 생성 요청", description = "팀빌딩 방과 팀 리스트를 생성됩니다. ") @ApiResponse(responseCode = "200", description = "OK", content = @Content(schema = @Schema(implementation = TeamBuildingResponse.class))) - @ApiResponse(responseCode = "400", description = "BAD REQUEST", content = { - @Content(mediaType = "application/json", schema = @Schema(implementation = ExceptionResponse.class))}) + @ApiResponse(responseCode = "400", description = "BAD REQUEST", content = {@Content(mediaType = "application/json", schema = @Schema(implementation = ExceptionResponse.class))}) @PostMapping - public ResponseEntity createTeamBuilding( - @RequestBody @Valid TeamBuildingRequest teamBuildingRequest) { + public ResponseEntity createTeamBuilding(@RequestBody @Valid TeamBuildingRequest teamBuildingRequest) { return ResponseEntity.ok(teamBuildingService.createTeamBuilding(teamBuildingRequest)); } @Operation(summary = "조정 단계 팀원 수정 (단일 유저) ", description = "운영진이 조정단계에서 조정할 때 사용합니다. ") @PostMapping("/{teamBuildingUuid}/users/{userUuid}") - public ResponseEntity adjustUser( - @PathVariable(value = "teamBuildingUuid") String teamBuildingUuid, - @PathVariable(value = "userUuid") String userUuid, - @RequestBody @Valid UserAdjustRequest userAdjustRequest) { + public ResponseEntity adjustUser(@PathVariable(value = "teamBuildingUuid") String teamBuildingUuid, @PathVariable(value = "userUuid") String userUuid, @RequestBody @Valid UserAdjustRequest userAdjustRequest) { return ResponseEntity.ok(userService.adjustUser(teamBuildingUuid, userUuid, userAdjustRequest.getTeamUuid())); } + @Operation(summary = "팀원 삭제 (단일 유저) ", description = "운영진이 팀원 조정할 때 사용합니다. ") + @DeleteMapping("/{teamBuildingUuid}/users/{userUuid}") + public ResponseEntity deleteUser(@PathVariable(value = "teamBuildingUuid") String teamBuildingUuid, @PathVariable(value = "userUuid") String userUuid) { + userService.deleteUser(teamBuildingUuid, userUuid); + return ResponseEntity.ok().build(); + } + @Operation(summary = "팀 빌딩 마치기", description = "운영진이 조정 단계에서 팀빌딩을 마칩니다.") @PutMapping("/{teamBuildingUuid}/finish") public ResponseEntity finishTeamBuilding(@PathVariable(value = "teamBuildingUuid") String teamBuildingUuid) { diff --git a/src/main/java/com/nexters/moyeomoyeo/team_building/domain/repository/UserRepository.java b/src/main/java/com/nexters/moyeomoyeo/team_building/domain/repository/UserRepository.java index 591d782..44cb20b 100644 --- a/src/main/java/com/nexters/moyeomoyeo/team_building/domain/repository/UserRepository.java +++ b/src/main/java/com/nexters/moyeomoyeo/team_building/domain/repository/UserRepository.java @@ -1,11 +1,14 @@ package com.nexters.moyeomoyeo.team_building.domain.repository; import com.nexters.moyeomoyeo.team_building.domain.entity.User; + import java.util.Optional; public interface UserRepository { User save(User user); + void delete(User user); + Optional findByUuid(String uuid); } diff --git a/src/main/java/com/nexters/moyeomoyeo/team_building/infra/UserJpa.java b/src/main/java/com/nexters/moyeomoyeo/team_building/infra/UserJpa.java index d89b03d..175e565 100644 --- a/src/main/java/com/nexters/moyeomoyeo/team_building/infra/UserJpa.java +++ b/src/main/java/com/nexters/moyeomoyeo/team_building/infra/UserJpa.java @@ -1,10 +1,13 @@ package com.nexters.moyeomoyeo.team_building.infra; import com.nexters.moyeomoyeo.team_building.domain.entity.User; -import java.util.Optional; import org.springframework.data.jpa.repository.JpaRepository; +import java.util.Optional; + public interface UserJpa extends JpaRepository { Optional findByUuid(String uuid); + + void delete(User user); } diff --git a/src/main/java/com/nexters/moyeomoyeo/team_building/infra/UserRepositoryImpl.java b/src/main/java/com/nexters/moyeomoyeo/team_building/infra/UserRepositoryImpl.java index 83c26fe..84ee92f 100644 --- a/src/main/java/com/nexters/moyeomoyeo/team_building/infra/UserRepositoryImpl.java +++ b/src/main/java/com/nexters/moyeomoyeo/team_building/infra/UserRepositoryImpl.java @@ -2,10 +2,11 @@ import com.nexters.moyeomoyeo.team_building.domain.entity.User; import com.nexters.moyeomoyeo.team_building.domain.repository.UserRepository; -import java.util.Optional; import lombok.RequiredArgsConstructor; import org.springframework.stereotype.Repository; +import java.util.Optional; + @Repository @RequiredArgsConstructor public class UserRepositoryImpl implements UserRepository { @@ -17,6 +18,11 @@ public User save(User user) { return jpa.save(user); } + @Override + public void delete(User user) { + jpa.delete(user); + } + @Override public Optional findByUuid(String uuid) { return jpa.findByUuid(uuid); diff --git a/src/main/java/com/nexters/moyeomoyeo/team_building/service/UserService.java b/src/main/java/com/nexters/moyeomoyeo/team_building/service/UserService.java index 0f4db4b..560991d 100644 --- a/src/main/java/com/nexters/moyeomoyeo/team_building/service/UserService.java +++ b/src/main/java/com/nexters/moyeomoyeo/team_building/service/UserService.java @@ -1,7 +1,5 @@ package com.nexters.moyeomoyeo.team_building.service; -import static com.nexters.moyeomoyeo.team_building.controller.dto.response.UserInfo.makeUserInfo; - import com.nexters.moyeomoyeo.common.constant.ExceptionInfo; import com.nexters.moyeomoyeo.notification.service.NotificationService; import com.nexters.moyeomoyeo.team_building.controller.dto.request.UserRequest; @@ -10,12 +8,13 @@ import com.nexters.moyeomoyeo.team_building.domain.entity.UserChoice; import com.nexters.moyeomoyeo.team_building.domain.repository.UserRepository; import jakarta.transaction.Transactional; +import lombok.RequiredArgsConstructor; +import org.springframework.stereotype.Service; import java.util.ArrayList; import java.util.List; -import lombok.RequiredArgsConstructor; -import org.springframework.stereotype.Service; +import static com.nexters.moyeomoyeo.team_building.controller.dto.response.UserInfo.makeUserInfo; @Service @RequiredArgsConstructor @@ -44,7 +43,7 @@ public UserInfo createUser(String teamBuildingUuid, UserRequest request) { @Transactional public UserInfo adjustUser(String teamBuildingUuid, String userUuid, String teamUuid) { - final User user = userRepository.findByUuid(userUuid).orElseThrow(ExceptionInfo.INVALID_USER_UUID::exception); + final User user = findUser(userUuid); user.adjustTeam(teamService.findByUuid(teamUuid).orElse(null)); UserInfo userInfo = makeUserInfo(user); @@ -53,6 +52,10 @@ public UserInfo adjustUser(String teamBuildingUuid, String userUuid, String team return userInfo; } + private User findUser(String userUuid) { + return userRepository.findByUuid(userUuid).orElseThrow(ExceptionInfo.INVALID_USER_UUID::exception); + } + private static User makeUser(UserRequest request) { final User user = User.builder() .name(request.getName()) @@ -76,4 +79,14 @@ private List createUserChoices(List teamUuids) { } return choices; } + + @Transactional + public void deleteUser(String teamBuildingUuid, String userUuid) { + final User targetUser = findUser(userUuid); + + userRepository.delete(targetUser); + notificationService.broadCast(teamBuildingUuid, "delete-user", userUuid); + + + } } From c92b872d707c98c142efdb903721bc86d384d2ce Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=ED=97=88=EC=88=98=EC=A7=84/=ED=9A=8C=EC=9B=90=EC=84=9C?= =?UTF-8?q?=EB=B9=84=EC=8A=A4=ED=8C=80?= Date: Sun, 13 Aug 2023 03:12:50 +0900 Subject: [PATCH 3/5] =?UTF-8?q?Enum=20=EB=8C=80=EB=AC=B8=EC=9E=90=EB=A1=9C?= =?UTF-8?q?=20=EB=B3=80=EA=B2=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../team_building/domain/constant/Constant.java | 8 -------- .../team_building/domain/constant/Position.java | 17 ++++++----------- 2 files changed, 6 insertions(+), 19 deletions(-) delete mode 100644 src/main/java/com/nexters/moyeomoyeo/team_building/domain/constant/Constant.java diff --git a/src/main/java/com/nexters/moyeomoyeo/team_building/domain/constant/Constant.java b/src/main/java/com/nexters/moyeomoyeo/team_building/domain/constant/Constant.java deleted file mode 100644 index 1f539ed..0000000 --- a/src/main/java/com/nexters/moyeomoyeo/team_building/domain/constant/Constant.java +++ /dev/null @@ -1,8 +0,0 @@ -package com.nexters.moyeomoyeo.team_building.domain.constant; - -import com.fasterxml.jackson.annotation.*; - -public interface Constant { - @JsonValue - String getValue(); -} diff --git a/src/main/java/com/nexters/moyeomoyeo/team_building/domain/constant/Position.java b/src/main/java/com/nexters/moyeomoyeo/team_building/domain/constant/Position.java index b93be49..b8f1edf 100644 --- a/src/main/java/com/nexters/moyeomoyeo/team_building/domain/constant/Position.java +++ b/src/main/java/com/nexters/moyeomoyeo/team_building/domain/constant/Position.java @@ -2,17 +2,12 @@ import lombok.*; -/** - * serialize/deserialize 할 때 jsonValue 사용해서 enum mapping 되도록 설정 - */ @Getter @RequiredArgsConstructor -public enum Position implements Constant { - DESIGNER("designer"), - BACK_END("backend"), - FRONT_END("frontend"), - IOS("ios"), - ANDROID("android"); - - private final String value; +public enum Position { + DESIGNER, + BACK_END, + FRONT_END, + IOS, + ANDROID } From 1bd4c93667a8655fe28cf9fc195fae038d2145ff Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E1=84=87=E1=85=A1=E1=86=A8=E1=84=83=E1=85=A1=E1=84=8B?= =?UTF-8?q?=E1=85=A8?= Date: Sun, 13 Aug 2023 03:20:29 +0900 Subject: [PATCH 4/5] =?UTF-8?q?fix:=20sse=20emitter=20list=20=EC=88=98?= =?UTF-8?q?=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../moyeomoyeo/notification/handler/SseEmitterHandler.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/nexters/moyeomoyeo/notification/handler/SseEmitterHandler.java b/src/main/java/com/nexters/moyeomoyeo/notification/handler/SseEmitterHandler.java index 0503150..f7382d6 100644 --- a/src/main/java/com/nexters/moyeomoyeo/notification/handler/SseEmitterHandler.java +++ b/src/main/java/com/nexters/moyeomoyeo/notification/handler/SseEmitterHandler.java @@ -1,6 +1,6 @@ package com.nexters.moyeomoyeo.notification.handler; -import com.nexters.moyeomoyeo.common.constant.ExceptionInfo; +import java.util.Collections; import java.util.HashMap; import java.util.List; import java.util.Map; @@ -21,7 +21,7 @@ public List getEmitters(String teamBuildingUuid) { final List emitterList = emitterMap.get(teamBuildingUuid); if (Objects.isNull(emitterList)) { - throw ExceptionInfo.INVALID_TEAM_BUILDING_UUID.exception(); + return Collections.emptyList(); } return emitterList; From d2a134da82ce587d973baeb6ab10de0720e12528 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E1=84=87=E1=85=A1=E1=86=A8=E1=84=83=E1=85=A1=E1=84=8B?= =?UTF-8?q?=E1=85=A8?= Date: Sun, 13 Aug 2023 03:23:17 +0900 Subject: [PATCH 5/5] =?UTF-8?q?fix:=20update=20=EB=A1=9C=20=EC=84=A4?= =?UTF-8?q?=EC=A0=95=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/resources/application.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/resources/application.yml b/src/main/resources/application.yml index 7503aea..7ba92b4 100644 --- a/src/main/resources/application.yml +++ b/src/main/resources/application.yml @@ -7,7 +7,7 @@ spring: jpa: hibernate: - ddl-auto: create + ddl-auto: update properties: hibernate: format_sql: true