Skip to content

Commit

Permalink
f-lab-edu#30 mysql 설정수정
Browse files Browse the repository at this point in the history
  • Loading branch information
kimsuyeondev committed May 25, 2024
1 parent 3be14e1 commit cde235a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ private static GoodsManagementRequest requestGoods() {
@Order(2)
public void 상품조회() throws Exception {
String url = "http://localhost:" + port + "/v1/goods/{goodsNo}";
ResponseEntity<GoodsManagementResponse> responseEntity = testRestTemplate.getForEntity(url, GoodsManagementResponse.class, 2L);
ResponseEntity<GoodsManagementResponse> responseEntity = testRestTemplate.getForEntity(url, GoodsManagementResponse.class, 3L);
assertThat(responseEntity.getStatusCode()).isEqualTo(HttpStatus.OK);
assertThat(responseEntity.getBody().getGoodsNm()).isEqualTo("닥터스킨");
}
Expand All @@ -88,7 +88,7 @@ private static GoodsManagementRequest requestGoods() {
@Order(3)
public void 상품삭제(){
String url = "http://localhost:" + port + "/v1/goods/{goodsNo}";
ResponseEntity<GoodsManagementResponse> responseEntity = testRestTemplate.exchange(url, HttpMethod.DELETE, null, GoodsManagementResponse.class, 2L);
ResponseEntity<GoodsManagementResponse> responseEntity = testRestTemplate.exchange(url, HttpMethod.DELETE, null, GoodsManagementResponse.class, 3L);
assertThat(responseEntity.getStatusCode()).isEqualTo(HttpStatus.OK);
}

Expand Down
2 changes: 1 addition & 1 deletion module-domain/src/main/resources/application.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver
spring.datasource.url=jdbc:mysql://localhost:3306/mysqldb?useSSL=false&allowPublicKeyRetrieval=true&serverTimezone=Asia/Seoul
spring.datasource.url=jdbc:mysql://localhost:3306/mysqldb?useSSL=false&allowPublicKeyRetrieval=true&serverTimezone=Asia/Seoul&useLegacyAuth=true
spring.datasource.username=dev_1234
spring.datasource.password=1234

Expand Down

0 comments on commit cde235a

Please sign in to comment.