@ -379,7 +379,7 @@ public class MvcUriComponentsBuilder {
@@ -379,7 +379,7 @@ public class MvcUriComponentsBuilder {
private static String getTypeRequestMapping ( Class < ? > controllerType ) {
Assert . notNull ( controllerType , "'controllerType' must not be null" ) ;
String annotType = RequestMapping . class . getName ( ) ;
AnnotationAttributes attrs = AnnotatedElementUtils . get AnnotationAttributes( controllerType , annotType ) ;
AnnotationAttributes attrs = AnnotatedElementUtils . find AnnotationAttributes( controllerType , annotType ) ;
if ( attrs = = null ) {
return "/" ;
}
@ -396,7 +396,7 @@ public class MvcUriComponentsBuilder {
@@ -396,7 +396,7 @@ public class MvcUriComponentsBuilder {
private static String getMethodRequestMapping ( Method method ) {
String annotType = RequestMapping . class . getName ( ) ;
AnnotationAttributes attrs = AnnotatedElementUtils . get AnnotationAttributes( method , annotType ) ;
AnnotationAttributes attrs = AnnotatedElementUtils . find AnnotationAttributes( method , annotType ) ;
if ( attrs = = null ) {
throw new IllegalArgumentException ( "No @RequestMapping on: " + method . toGenericString ( ) ) ;
}