Si je frappe le contrôleur plusieurs fois et que je le martèle, mon paramètre modelCode est parfois considéré comme nul. Cependant, l'URL contient le modelCode. Utilisation de Spring Framework 3.0.5.RELEASE
@RequestMapping(value="ws/getallvariants/{channelCode}/{modelCode}/{regionId}/{year}")
public ModelAndView getAllVariants(@PathVariable("channelCode") String channelCode,
@PathVariable("modelCode") String modelCode,@PathVariable("regionId") String regionId,@PathVariable("year") String year){
`if (modelCode == null)
{
int i = 0; // this should never hit, but does.
}`