0
我必須創建其他小時格式爲AM/PM的參數。我以爲用模式驗證字符串:如何獲取格式爲AM/PM的小時請求參數
public ResponseEntity<HttpStatus> get(
@RequestParam
@Pattern("Here regex which match something like this: 9am") String hourFrom,
@RequestParam
@Pattern() String hourTo)
你有更好的主意如何解決這種情況?