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

Method main4

ch2/RequestParamTest.java:41–47  ·  view source on GitHub ↗
(@RequestParam(required=false) String year)

Source from the content-addressed store, hash-verified

39 }
40
41 @RequestMapping("/requestParam4")
42 public String main4(@RequestParam(required=false) String year) {
43// http://localhost/ch2/requestParam4 ---->> year=null
44// http://localhost/ch2/requestParam4?year ---->> year=""
45 System.out.printf("[%s]year=[%s]%n", new Date(), year);
46 return "yoil";
47 }
48
49 @RequestMapping("/requestParam5")
50 public String main5(@RequestParam(required=false, defaultValue="1") String year) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected