Consistent alias declarations for value attribute on stereotypes
Issue: SPR-16066
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2002-2016 the original author or authors.
|
||||
* Copyright 2002-2017 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -22,6 +22,7 @@ import java.lang.annotation.Retention;
|
||||
import java.lang.annotation.RetentionPolicy;
|
||||
import java.lang.annotation.Target;
|
||||
|
||||
import org.springframework.core.annotation.AliasFor;
|
||||
import org.springframework.stereotype.Controller;
|
||||
|
||||
/**
|
||||
@@ -51,9 +52,10 @@ public @interface RestController {
|
||||
/**
|
||||
* The value may indicate a suggestion for a logical component name,
|
||||
* to be turned into a Spring bean in case of an autodetected component.
|
||||
* @return the suggested component name, if any
|
||||
* @return the suggested component name, if any (or empty String otherwise)
|
||||
* @since 4.0.1
|
||||
*/
|
||||
@AliasFor(annotation = Controller.class)
|
||||
String value() default "";
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user