@Controller public class CustomerListController extends Object
修飾子とタイプ | フィールドと説明 |
---|---|
private CustomerService |
customerService |
コンストラクタと説明 |
---|
CustomerListController() |
修飾子とタイプ | メソッドと説明 |
---|---|
String |
handleException() |
String |
home() |
String |
showAllCustomers(org.springframework.ui.Model model) |
String |
showCustomerDetail(int customerId,
org.springframework.ui.Model model) |
@Autowired private CustomerService customerService
@RequestMapping(value="/", method=GET) public String home()
@RequestMapping(value="/customer", method=GET) public String showAllCustomers(org.springframework.ui.Model model)
@RequestMapping(value="/customer/{customerId}", method=GET) public String showCustomerDetail(@PathVariable int customerId, org.springframework.ui.Model model) throws DataNotFoundException
@ExceptionHandler(value=DataNotFoundException.class) public String handleException()