File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
spring-webmvc/src/main/java/org/springframework/web/servlet/mvc/method/annotation Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -379,7 +379,7 @@ private static UriComponentsBuilder getBaseUrlToUse(UriComponentsBuilder baseUrl
379
379
private static String getTypeRequestMapping (Class <?> controllerType ) {
380
380
Assert .notNull (controllerType , "'controllerType' must not be null" );
381
381
String annotType = RequestMapping .class .getName ();
382
- AnnotationAttributes attrs = AnnotatedElementUtils .getAnnotationAttributes (controllerType , annotType );
382
+ AnnotationAttributes attrs = AnnotatedElementUtils .findAnnotationAttributes (controllerType , annotType );
383
383
if (attrs == null ) {
384
384
return "/" ;
385
385
}
@@ -396,7 +396,7 @@ private static String getTypeRequestMapping(Class<?> controllerType) {
396
396
397
397
private static String getMethodRequestMapping (Method method ) {
398
398
String annotType = RequestMapping .class .getName ();
399
- AnnotationAttributes attrs = AnnotatedElementUtils .getAnnotationAttributes (method , annotType );
399
+ AnnotationAttributes attrs = AnnotatedElementUtils .findAnnotationAttributes (method , annotType );
400
400
if (attrs == null ) {
401
401
throw new IllegalArgumentException ("No @RequestMapping on: " + method .toGenericString ());
402
402
}
Original file line number Diff line number Diff line change @@ -246,13 +246,13 @@ private RequestMappingInfo createRequestMappingInfo(AnnotatedElement annotatedEl
246
246
if (annotatedElement instanceof Class <?>) {
247
247
Class <?> type = (Class <?>) annotatedElement ;
248
248
annotation = AnnotationUtils .findAnnotation (type , RequestMapping .class );
249
- attributes = AnnotatedElementUtils .getAnnotationAttributes (type , annotationType );
249
+ attributes = AnnotatedElementUtils .findAnnotationAttributes (type , annotationType );
250
250
customCondition = getCustomTypeCondition (type );
251
251
}
252
252
else {
253
253
Method method = (Method ) annotatedElement ;
254
254
annotation = AnnotationUtils .findAnnotation (method , RequestMapping .class );
255
- attributes = AnnotatedElementUtils .getAnnotationAttributes (method , annotationType );
255
+ attributes = AnnotatedElementUtils .findAnnotationAttributes (method , annotationType );
256
256
customCondition = getCustomMethodCondition (method );
257
257
}
258
258
RequestMappingInfo info = null ;
You can’t perform that action at this time.
0 commit comments