|
1 | 1 | /*
|
2 |
| - * Copyright 2002-2019 the original author or authors. |
| 2 | + * Copyright 2002-2020 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.
|
|
67 | 67 | * @see PutMapping
|
68 | 68 | * @see DeleteMapping
|
69 | 69 | * @see PatchMapping
|
70 |
| - * @see org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter |
71 |
| - * @see org.springframework.web.reactive.result.method.annotation.RequestMappingHandlerAdapter |
72 | 70 | */
|
73 | 71 | @Target({ElementType.TYPE, ElementType.METHOD})
|
74 | 72 | @Retention(RetentionPolicy.RUNTIME)
|
|
120 | 118 | * The HTTP request methods to map to, narrowing the primary mapping:
|
121 | 119 | * GET, POST, HEAD, OPTIONS, PUT, PATCH, DELETE, TRACE.
|
122 | 120 | * <p><b>Supported at the type level as well as at the method level!</b>
|
123 |
| - * When used at the type level, all method-level mappings inherit |
124 |
| - * this HTTP method restriction (i.e. the type-level restriction |
125 |
| - * gets checked before the handler method is even resolved). |
| 121 | + * When used at the type level, all method-level mappings inherit this |
| 122 | + * HTTP method restriction. |
126 | 123 | */
|
127 | 124 | RequestMethod[] method() default {};
|
128 | 125 |
|
|
136 | 133 | * any value). Finally, "!myParam" style expressions indicate that the
|
137 | 134 | * specified parameter is <i>not</i> supposed to be present in the request.
|
138 | 135 | * <p><b>Supported at the type level as well as at the method level!</b>
|
139 |
| - * When used at the type level, all method-level mappings inherit |
140 |
| - * this parameter restriction (i.e. the type-level restriction |
141 |
| - * gets checked before the handler method is even resolved). |
142 |
| - * <p>Parameter mappings are considered as restrictions that are enforced at |
143 |
| - * the type level. The primary path mapping (i.e. the specified URI value) |
144 |
| - * still has to uniquely identify the target handler, with parameter mappings |
145 |
| - * simply expressing preconditions for invoking the handler. |
| 136 | + * When used at the type level, all method-level mappings inherit this |
| 137 | + * parameter restriction. |
146 | 138 | */
|
147 | 139 | String[] params() default {};
|
148 | 140 |
|
|
162 | 154 | * </pre>
|
163 | 155 | * will match requests with a Content-Type of "text/html", "text/plain", etc.
|
164 | 156 | * <p><b>Supported at the type level as well as at the method level!</b>
|
165 |
| - * When used at the type level, all method-level mappings inherit |
166 |
| - * this header restriction (i.e. the type-level restriction |
167 |
| - * gets checked before the handler method is even resolved). |
| 157 | + * When used at the type level, all method-level mappings inherit this |
| 158 | + * header restriction. |
168 | 159 | * @see org.springframework.http.MediaType
|
169 | 160 | */
|
170 | 161 | String[] headers() default {};
|
|
0 commit comments