Class ProductController

java.lang.Object
com.example.demo.product.ProductController

@Controller
public class ProductController
extends java.lang.Object
  • Field Summary

    Fields
    Modifier and Type Field Description
    static java.lang.String basePath  
  • Constructor Summary

    Constructors
    Constructor Description
    ProductController()  
  • Method Summary

    Modifier and Type Method Description
    org.springframework.web.servlet.ModelAndView detail​(int num)  
    org.springframework.http.ResponseEntity<byte[]> getImg​(java.lang.String fname, int num)  
    org.springframework.web.servlet.ModelAndView List()  

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • basePath

      public static java.lang.String basePath
  • Constructor Details

    • ProductController

      public ProductController()
  • Method Details

    • List

      @RequestMapping("/product/list") public org.springframework.web.servlet.ModelAndView List()
    • detail

      @RequestMapping("/product/detail") public org.springframework.web.servlet.ModelAndView detail​(@RequestParam("num") int num)
    • getImg

      @RequestMapping("/img") public org.springframework.http.ResponseEntity<byte[]> getImg​(java.lang.String fname, int num)