We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a5bea19 commit 2649edbCopy full SHA for 2649edb
help/http-requests.http
@@ -16,3 +16,5 @@ GET http://localhost:9100/async/dotask?sleep=3
16
### /retry/test
17
GET http://localhost:9100/retry/test
18
19
+### /param/defaultValue
20
+GET http://localhost:9100/param/defaultValue
src/main/java/cn/netbuffer/springboot/demo/controller/ParamController.java
@@ -161,4 +161,9 @@ public Object dataName() {
161
return dataName;
162
}
163
164
+ @GetMapping("defaultValue")
165
+ public String defaultValue(@RequestParam(defaultValue = "default") String value) {
166
+ return value;
167
+ }
168
+
169
0 commit comments