October 2017
Intermediate to advanced
396 pages
10h 2m
English
Let's see the same AccountController class by adding another handler method to handle the HTTP POST request for the URI /open-account in the web application:
package com.packt.patterninspring.chapter10.bankapp.web.controller; import java.util.List; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Controller; import org.springframework.ui.ModelMap; import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.PathVariable; import org.springframework.web.bind.annotation.PostMapping; import com.packt.patterninspring.chapter10.bankapp.model.Account; import com.packt.patterninspring.chapter10.bankapp.service.AccountService; ...
Read now
Unlock full access