Skip to content

HAL not set as default in 1.2.0 #2147

Closed
@lazee

Description

@lazee

In Spring Boot 1.1.10 the default hateoas format is HAL as long as spring-hateoas is included in the classpath (According to the doc and real life experience). This is no longer the case and I had to add both @EnableWebMvc and @EnableHypermediaSupport(type= {EnableHypermediaSupport.HypermediaType.HAL}) to my application in order to get HAL.

Is this intended behaviour or a bug? Looking at spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/hateoas/HypermediaAutoConfiguration.java it seems a bug has been fixed for another issue (#1729). Would this fix also fix this HAL problem?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions