Class CatalogController

java.lang.Object
org.mybatis.jpetstore.web.controllers.CatalogController

@Controller @RequestMapping("/catalog") public class CatalogController extends Object
The Class CatalogController.
  • Constructor Details

    • CatalogController

      public CatalogController()
  • Method Details

    • viewMain

      @GetMapping({"","/"}) public String viewMain()
      View main.
      Returns:
      the string
    • viewCategory

      @GetMapping("/viewCategory") public String viewCategory(@RequestParam(value="categoryId",required=false) String categoryId, org.springframework.ui.Model model)
      View category.
      Parameters:
      categoryId - the category id
      model - the model
      Returns:
      the string
    • viewProduct

      @GetMapping("/viewProduct") public String viewProduct(@RequestParam(value="productId",required=false) String productId, org.springframework.ui.Model model)
      View product.
      Parameters:
      productId - the product id
      model - the model
      Returns:
      the string
    • viewItem

      @GetMapping("/viewItem") public String viewItem(@RequestParam("itemId") String itemId, org.springframework.ui.Model model)
      View item.
      Parameters:
      itemId - the item id
      model - the model
      Returns:
      the string
    • searchProducts

      @GetMapping("/searchProducts") public String searchProducts(@RequestParam(value="keyword",required=false) String keyword, org.springframework.ui.Model model)
      Search products.
      Parameters:
      keyword - the keyword
      model - the model
      Returns:
      the string