diff --git a/src/main/java/Soodgarak/Soodgarak/domain/recipe/controller/model/RecipeRequest.java b/src/main/java/Soodgarak/Soodgarak/domain/recipe/controller/model/RecipeRequest.java index c15f9ce..94687bb 100644 --- a/src/main/java/Soodgarak/Soodgarak/domain/recipe/controller/model/RecipeRequest.java +++ b/src/main/java/Soodgarak/Soodgarak/domain/recipe/controller/model/RecipeRequest.java @@ -7,9 +7,9 @@ public record RecipeRequest( Integer page ) { public RecipeRequest(String category, String keyword, String mbti, Integer page) { - this.category = category; + this.category = category != null ? category.toLowerCase() : null; this.keyword = keyword != null ? keyword.toLowerCase() : null; - this.mbti = mbti; + this.mbti = mbti != null ? keyword.toLowerCase() : null; this.page = page; } } diff --git a/src/main/resources/application.yml b/src/main/resources/application.yml index 3b5786c..e69de29 100644 --- a/src/main/resources/application.yml +++ b/src/main/resources/application.yml @@ -1,27 +0,0 @@ -spring: - jpa: - show-sql: true - properties: - hibernate: - dialect: org.hibernate.dialect.MySQLDialect - hibernate: - ddl-auto: validate - datasource: - url: jdbc:mysql://soodgarak-db.cfag6omiojwb.ap-northeast-2.rds.amazonaws.com:3306/soodgarak?useSSL=false&serverTimezone=Asia/Seoul&characterEncoding=UTF-8 - driver-class-name: com.mysql.cj.jdbc.Driver - username: admin - password: soodgarakDB12345! - -# Redis - redis: - host: localhost - port: 6379 - password: "" - #password: soodgarakREDIS12345! - -# Swagger -springdoc: - version: '@project.version@' - swagger-ui: - path: /swagger # http://localhost:8080/swagger-ui/index.html로 리다이렉션 됨 - doc-expansion: none # 문서의 기본 확장 상태 설정. none으로 설정하면 사용자가 클릭해서 펼쳐야 한다.