Annotationsschnittstelle Composite


@Target(PARAMETER) @Retention(RUNTIME) public @interface Composite
Annotation to be used in combination with RequestParam to indicate that collection-based parameters should be rendered as composite values in URLs. This is the inverse behavior of the Spring's @NonComposite annotation.

While NonComposite directs the rendering of parameters as a single entry (e.g., param=value1,value2,value3), Composite specifies that each element of the collection should be represented as a separate parameter entry in the URL (e.g., param=value1&param=value2&param=value3). This approach is typically used when generating links pointing to controller methods and ensures that each value is distinctly represented as a separate query parameter.

Usage of this annotation affects only how links are generated by the SpringControllerLinkBuilder and does not influence how data is parsed or handled within controller methods.