79293493

Date: 2024-12-19 08:09:56
Score: 3
Natty:
Report link

Thank to you all ( ) , using of LocalDate solve all my problems, but also want to add that I use @Nullable to my LocalDate variables on @PostMapping in @RequestParam. Before, I don’t want to use LocalDate, because someone, who writes code before me already use Java.sql.Date everywhere, in all repositories, in all entities, in all services, in all controllers. But I gathered my strength and rewrote everything under localDate. Also, for me, I needed to convert LocalDate values to String on @GetMapping, don’t know, if it’s ok or not, but it’s works fine.

Reasons:
  • Blacklisted phrase (0.5): I need
  • Long answer (-0.5):
  • No code block (0.5):
  • User mentioned (1): @Nullable
  • User mentioned (0): @PostMapping
  • User mentioned (0): @RequestParam
  • User mentioned (0): @GetMapping
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Sergei