- Mastering Spring 5.0
- Ranga Rao Karanam
- 50字
- 2021-07-02 22:12:15
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 */
}
}