MCPcopy Create free account
hub / github.com/castello/spring_basic / main5

Method main5

ch2/RequestParamTest.java:49–55  ·  view source on GitHub ↗
(@RequestParam(required=false, defaultValue="1") String year)

Source from the content-addressed store, hash-verified

47 }
48
49 @RequestMapping("/requestParam5")
50 public String main5(@RequestParam(required=false, defaultValue="1") String year) {
51// http://localhost/ch2/requestParam5 ---->> year=1
52// http://localhost/ch2/requestParam5?year ---->> year=1
53 System.out.printf("[%s]year=[%s]%n", new Date(), year);
54 return "yoil";
55 }
56
57// =======================================================================
58

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected