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

Method main2

ch2/RequestParamTest.java:23–30  ·  view source on GitHub ↗
(String year)

Source from the content-addressed store, hash-verified

21 }
22
23 @RequestMapping("/requestParam2")
24// public String main2(@RequestParam(name="year", required=false) String year) { // 아래와 동일
25 public String main2(String year) {
26// http://localhost/ch2/requestParam2 ---->> year=null
27// http://localhost/ch2/requestParam2?year ---->> year=""
28 System.out.printf("[%s]year=[%s]%n", new Date(), year);
29 return "yoil";
30 }
31
32 @RequestMapping("/requestParam3")
33// public String main3(@RequestParam(name="year", required=true) String year) { // 아래와 동일

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected