RequestMapping with POST and JSON in SpringMVC not running
<p>This is my Controller:</p>

<pre><code>package com.hodor.booking.controller;

import com.audi.interview.booking.jpa.domain.Vehicle;
import com.audi.interview.booking.service.VehicleService;
import com.wordnik.swagger.annotations.Api;
import org.apache.commons.lang.time.DateUtils;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

import java.util.Date;
import java.util.List;

@RestController
@RequestMapping("/api/v1/vehicles")
@Api(value = "vehicles", description = "Vehicle resource endpoint")
public class VehicleController {

    private static final Logger log = LoggerFactory.getLogger(VehicleController.class);

    @Autowired
    private VehicleService vehicleService;

    @RequestMapping(method = RequestMethod.GET)
    public List&lt;Vehicle&gt; index() {
        log.debug("Getting all vehicles");
        return vehicleService.findAll();
    }

    @RequestMapping(value= "/save",method = RequestMethod.POST, consumes="application/json")
        public void addVehicle(@RequestBody Car car, Vehicle vehicle) {
            log.debug("Inserting vehicle");
            Vehicle testVehicle1 = new Vehicle();
            testVehicle1.setLicensePlate("M-1234");
            testVehicle1.setModel("M5");
            testVehicle1.setColor("Grey");
            testVehicle1.setActive(true);
            testVehicle1.setVin("8765-4321");
            testVehicle1.setValidTill(DateUtils.addYears(new Date(), 1));
            vehicleService.saveVehicle(testVehicle1);
        }
    }
}
</code></pre>

<p>Now "@RequestBody" and "Car" cannot be resolved. I am new to Java and Spring and I followed documentation here: <a href="http://docs.spring.io/spring/docs/3.2.x/spring-framework-reference/html/mvc.html#mvc-ann-requestmapping-uri-templates" rel="nofollow">http://docs.spring.io/spring/docs/3.2.x/spring-framework-reference/html/mvc.html#mvc-ann-requestmapping-uri-templates</a> </p>

<p>How can I consume JSON data sent in my POST request?</p>