Example 1

In the following example, there is only one RequestMapping in the showPage method. The showPage method will be mapped to GET, POST, and any other request types for URI /show-page:

    @Controller 
public class UserController {
@RequestMapping(value = "/show-page")
public String showPage() {
/* Some code */
}
}
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset