Closed
Description
SB 3.5.0 comes with a breaking change, a method was renamed, which causes method not found at start-up:
***************************
APPLICATION FAILED TO START
***************************
Description:
An attempt was made to call a method that does not exist. The attempt was made from the following location:
org.springdoc.core.providers.HateoasHalProvider.isHalEnabled(HateoasHalProvider.java:81)
The following method did not exist:
'boolean org.springframework.boot.autoconfigure.hateoas.HateoasProperties.getUseHalAsDefaultJsonMediaType()'
The calling method's class, org.springdoc.core.providers.HateoasHalProvider, was loaded from the following location:
jar:file:/Users/silviu.burcea/.m2/repository/org/springdoc/springdoc-openapi-starter-common/2.8.8/springdoc-openapi-starter-common-2.8.8.jar!/org/springdoc/core/providers/HateoasHalProvider.class
The called method's class, org.springframework.boot.autoconfigure.hateoas.HateoasProperties, is available from the following locations:
jar:file:/Users/silviu.burcea/.m2/repository/org/springframework/boot/spring-boot-autoconfigure/3.5.0/spring-boot-autoconfigure-3.5.0.jar!/org/springframework/boot/autoconfigure/hateoas/HateoasProperties.class
The called method's class hierarchy was loaded from the following locations:
org.springframework.boot.autoconfigure.hateoas.HateoasProperties: file:/Users/silviu.burcea/.m2/repository/org/springframework/boot/spring-boot-autoconfigure/3.5.0/spring-boot-autoconfigure-3.5.0.jar
getUseHalAsDefaultJsonMediaType
is now called isUseHalAsDefaultJsonMediaType
. I have reported the issue to Spring team as well, see spring-projects/spring-boot#45648, I'm not sure if they will revert the change or if you need to bump minor version to have SB 3.5.x compatibility. I'm happy to contribute once it's clear which project needs to change.
Metadata
Metadata
Assignees
Labels
No labels