You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: spring-web/src/main/java/org/springframework/web/method/annotation/AbstractNamedValueMethodArgumentResolver.java
+15-8Lines changed: 15 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,5 @@
1
1
/*
2
-
* Copyright 2002-2015 the original author or authors.
2
+
* Copyright 2002-2016 the original author or authors.
3
3
*
4
4
* Licensed under the Apache License, Version 2.0 (the "License");
5
5
* you may not use this file except in compliance with the License.
@@ -38,16 +38,19 @@
38
38
* Abstract base class for resolving method arguments from a named value.
39
39
* Request parameters, request headers, and path variables are examples of named
40
40
* values. Each may have a name, a required flag, and a default value.
41
+
*
41
42
* <p>Subclasses define how to do the following:
42
43
* <ul>
43
44
* <li>Obtain named value information for a method parameter
44
45
* <li>Resolve names into argument values
45
46
* <li>Handle missing argument values when argument values are required
46
47
* <li>Optionally handle a resolved value
47
48
* </ul>
49
+
*
48
50
* <p>A default value string can contain ${...} placeholders and Spring Expression
49
51
* Language #{...} expressions. For this to work a
50
52
* {@link ConfigurableBeanFactory} must be supplied to the class constructor.
53
+
*
51
54
* <p>A {@link WebDataBinder} is created to apply type conversion to the resolved
52
55
* argument value if it doesn't match the method parameter type.
53
56
*
@@ -61,7 +64,8 @@ public abstract class AbstractNamedValueMethodArgumentResolver implements Handle
Copy file name to clipboardExpand all lines: spring-web/src/main/java/org/springframework/web/method/annotation/RequestParamMethodArgumentResolver.java
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -85,7 +85,7 @@ public class RequestParamMethodArgumentResolver extends AbstractNamedValueMethod
85
85
/**
86
86
* @param useDefaultResolution in default resolution mode a method argument
87
87
* that is a simple type, as defined in {@link BeanUtils#isSimpleProperty},
88
-
* is treated as a request parameter even if it it isn't annotated, the
88
+
* is treated as a request parameter even if it isn't annotated, the
89
89
* request parameter name is derived from the method parameter name.
0 commit comments