lundi 1 juin 2015

Spring MVC :URI not working

I am using the below URL to send a request,but i am getting a 404 error. with a warning on server:No mapping found for HTTP request with URI

The URI is

http://localhost:8080/webstore/products/tablet/price;low=200;high=400?manufacturer="Google"

The method in controller used is

@RequestMapping(value="/products/{category}/{ByCriteria}",method=RequestMethod.GET)
public String getSpecificProductByFilter(@PathVariable("category")String ProductCategory,@MatrixVariable(pathVar= "ByCriteria") Map<String,List<Long>> filterParams,@RequestParam String manufacturer,Model model){
    model.addAttribute("products",productService.getfilterproducts(ProductCategory,filterParams, manufacturer));
    return "products";
}

The category signifies "tablet"in the URI

Criteria signifies"low" and "high"

manufacturer is"google"

Aucun commentaire:

Enregistrer un commentaire