Skip to content

Commit

Permalink
chore: @RequestParam 형식 지정
Browse files Browse the repository at this point in the history
  • Loading branch information
softpeanut committed Oct 11, 2022
1 parent 2d3e9a3 commit 8d3c238
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
package team.comit.simtong.menu

import org.springframework.format.annotation.DateTimeFormat
import org.springframework.format.annotation.DateTimeFormat.ISO
import org.springframework.web.bind.annotation.GetMapping
import org.springframework.web.bind.annotation.RequestMapping
import org.springframework.web.bind.annotation.RequestParam
Expand All @@ -24,7 +26,7 @@ class WebMenuAdapter(

@GetMapping
fun getMenu(
@RequestParam date: LocalDate
@RequestParam @DateTimeFormat(iso = ISO.DATE) date: LocalDate
): MenuResponse {
return queryMenuByMonthUseCase.execute(date)
}
Expand Down

0 comments on commit 8d3c238

Please sign in to comment.