Update list of annotations using @AliasFor
This commit is contained in:
parent
63f01c851f
commit
b65c277fc6
|
@ -106,14 +106,35 @@ import java.lang.annotation.Target;
|
|||
* Spring have been updated to use {@code @AliasFor} to configure their
|
||||
* internal attribute aliases.
|
||||
* <ul>
|
||||
* <li>{@link org.springframework.cache.annotation.Cacheable}</li>
|
||||
* <li>{@link org.springframework.cache.annotation.CacheEvict}</li>
|
||||
* <li>{@link org.springframework.cache.annotation.CachePut}</li>
|
||||
* <li>{@link org.springframework.context.annotation.ComponentScan}</li>
|
||||
* <li>{@link org.springframework.context.annotation.ComponentScan.Filter}</li>
|
||||
* <li>{@link org.springframework.context.annotation.ImportResource}</li>
|
||||
* <li>{@link org.springframework.context.annotation.Scope}</li>
|
||||
* <li>{@link org.springframework.jmx.export.annotation.ManagedResource}</li>
|
||||
* <li>{@link org.springframework.messaging.handler.annotation.Header}</li>
|
||||
* <li>{@link org.springframework.messaging.handler.annotation.Payload}</li>
|
||||
* <li>{@link org.springframework.messaging.simp.annotation.SendToUser}</li>
|
||||
* <li>{@link org.springframework.test.context.ActiveProfiles}</li>
|
||||
* <li>{@link org.springframework.test.context.ContextConfiguration}</li>
|
||||
* <li>{@link org.springframework.test.context.jdbc.Sql}</li>
|
||||
* <li>{@link org.springframework.test.context.TestExecutionListeners}</li>
|
||||
* <li>{@link org.springframework.test.context.TestPropertySource}</li>
|
||||
* <li>{@link org.springframework.test.context.jdbc.Sql}</li>
|
||||
* <li>{@link org.springframework.transaction.annotation.Transactional}</li>
|
||||
* <li>{@link org.springframework.web.bind.annotation.ControllerAdvice}</li>
|
||||
* <li>{@link org.springframework.web.bind.annotation.CookieValue}</li>
|
||||
* <li>{@link org.springframework.web.bind.annotation.CrossOrigin}</li>
|
||||
* <li>{@link org.springframework.web.bind.annotation.MatrixVariable}</li>
|
||||
* <li>{@link org.springframework.web.bind.annotation.RequestHeader}</li>
|
||||
* <li>{@link org.springframework.web.bind.annotation.RequestMapping}</li>
|
||||
* <li>{@link org.springframework.web.bind.annotation.RequestParam}</li>
|
||||
* <li>{@link org.springframework.web.bind.annotation.RequestPart}</li>
|
||||
* <li>{@link org.springframework.web.bind.annotation.ResponseStatus}</li>
|
||||
* <li>{@link org.springframework.web.bind.annotation.SessionAttributes}</li>
|
||||
* <li>{@link org.springframework.web.portlet.bind.annotation.ActionMapping}</li>
|
||||
* <li>{@link org.springframework.web.portlet.bind.annotation.RenderMapping}</li>
|
||||
* </ul>
|
||||
*
|
||||
* @author Sam Brannen
|
||||
|
|
|
@ -411,10 +411,16 @@ method has been added.
|
|||
annotation can be used to declare a pair of aliased attributes within
|
||||
a single annotation or to declare an alias from one attribute in a
|
||||
custom composed annotation to an attribute in a meta-annotation.
|
||||
** The following annotations have been retrofitted with `@AliasFor`
|
||||
support: `@ManagedResource`, `@ContextConfiguration`,
|
||||
`@ActiveProfiles`, `@TestExecutionListeners`, `@TestPropertySource`,
|
||||
`@Sql`, `@ControllerAdvice`, `@RequestMapping`.
|
||||
** The following annotations have been retrofitted with `@AliasFor` support
|
||||
in order to provide meaningful aliases for their `value` attributes:
|
||||
`@Cacheable`, `@CacheEvict`, `@CachePut`, `@ComponentScan`,
|
||||
`@ComponentScan.Filter`, `@ImportResource`, `@Scope`, `@ManagedResource`,
|
||||
`@Header`, `@Payload`, `@SendToUser`, `@ActiveProfiles`,
|
||||
`@ContextConfiguration`, `@Sql`, `@TestExecutionListeners`,
|
||||
`@TestPropertySource`, `@Transactional`, `@ControllerAdvice`,
|
||||
`@CookieValue`, `@CrossOrigin`, `@MatrixVariable`, `@RequestHeader`,
|
||||
`@RequestMapping`, `@RequestParam`, `@RequestPart`, `@ResponseStatus`,
|
||||
`@SessionAttributes`, `@ActionMapping`, `@RenderMapping`.
|
||||
** For example, `@ContextConfiguration` from the `spring-test` module
|
||||
is now declared as follows:
|
||||
[source,java,indent=0]
|
||||
|
|
Loading…
Reference in New Issue