there is a form <\ form: input path = "date" class = "formas" type = "date" placeholder = "$ {date}" /> "

I need to display in the controller System.out.println ("date:" + test.getDate ());

then to change the data Dates in the database and in my controller it shows null

I do it through hibernate and java.util.Date;

if you can illustrate how to send the date from the form and receive it in the controller

    1 answer 1

    Try mapping the date parameter like this:

    @RequestMapping(value="/testme" , method=RequestMethod.GET) public @ResponseBody String testMe(@RequestParam("odate") @DateTimeFormat(pattern="yyyy-MM-dd") Date odate) { //..... }