I am facing the below problem while passing date to controller, if I remove the date then its working correctly.

My html code is 

```
<div class="form-group" id="all">
    <label class="col-lg-2 control-label" for="focusedInput3">Start date</label>
    <div class="col-lg-10">
        <input type="date" id="startDate" name="startDate" th:value="*{startDate}" />
    </div>
</div>
<div class="form-group" id="all">
    <label class="col-lg-2 control-label" for="focusedInput4">End date</label>
    <div class="col-lg-10">
        <input type="date" id="endDate" name="endDate" th:value="*{endDate}" />
    </div>
</div>

```

and my Entity class is 

```
@Column(name = "name")
private String courseName;

@Column(name = "semister")
private String semister;

@Temporal(TemporalType.TIMESTAMP)
@DateTimeFormat (pattern="dd-MMM-YYYY")
@Column(name = "startDate")
private Date startDate;

@Temporal(TemporalType.TIMESTAMP)
@DateTimeFormat (pattern="dd-MMM-YYYY")
@Column(name = "endDate")
private Date endDate;

```

after clicking on submit button, the following error occurs:

![enter image description here](https://i.stack.imgur.com/cd4OM.png) 

```
Whitelabel Error Page

This application has no explicit mapping for /error, so you are seeing  this as a fallback.

Fri Apr 24 14:05:33 IST 2015
There was an unexpected error (type=Not Found, status=404).
No message available

```

Here is my controller

```
@Controller
@RequestMapping("/admin")
public class CourseScheduleController {

@Autowired
private CourseScheduleService courseScheduleService; 

@RequestMapping("/createCourse")
public ModelAndView getAllativities() {
    Map<String, Object> model = new HashMap<String, Object>();
    model.put("courseName", "");
    model.put("semister", "");
    model.put("startDate",null);
    model.put("endDate",null);
    return new ModelAndView("createCourse",model);
}

@RequestMapping("/saveCourse")
public String saveCourseSchedule(@ModelAttribute CourseBE courseBE){
    courseScheduleService.saveCourseSchedule(courseBE);
    return "redirect:/admin/createCourse";
}

```

Please help me out to resolve this issue.