diff --git a/spring-context/src/main/java/org/springframework/context/annotation/AnnotationBeanNameGenerator.java b/spring-context/src/main/java/org/springframework/context/annotation/AnnotationBeanNameGenerator.java index e690e76d86e..525128e79c6 100644 --- a/spring-context/src/main/java/org/springframework/context/annotation/AnnotationBeanNameGenerator.java +++ b/spring-context/src/main/java/org/springframework/context/annotation/AnnotationBeanNameGenerator.java @@ -47,10 +47,11 @@ import org.springframework.util.StringUtils; * *
If the annotation's value doesn't indicate a bean name, an appropriate * name will be built based on the short name of the class (with the first - * letter lower-cased). For example: + * letter lower-cased), unless the two first letters are uppercase. For example: * *
com.xyz.FooServiceImpl -> fooServiceImpl- * + *
com.xyz.URLFooServiceImpl -> URLFooServiceImpl+ * * @author Juergen Hoeller * @author Mark Fisher * @since 2.5