上QQ阅读APP看书,第一时间看更新
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 */
}
}