Skip to content

Commit bc51cc7

Browse files
committed
#1060 - Configure EnableHypermediaSupport(types) as an empty list by default.
1 parent 9b632f3 commit bc51cc7

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/main/java/org/springframework/hateoas/config/EnableHypermediaSupport.java

+3-2
Original file line numberDiff line numberDiff line change
@@ -44,11 +44,12 @@
4444
public @interface EnableHypermediaSupport {
4545

4646
/**
47-
* The hypermedia type to be supported.
47+
* The hypermedia type to be supported. By default, it is empty, thus activating all available
48+
* {@link MediaTypeConfigurationProvider}s.
4849
*
4950
* @return
5051
*/
51-
HypermediaType[] type();
52+
HypermediaType[] type() default {};
5253

5354
/**
5455
* Configures which {@link WebStack}s we're supposed to enable support for. By default we're activating it for all

0 commit comments

Comments
 (0)