I'm trying to use two dependencies in Spring Boot 3.0.0
<dependency>
<groupId>org.springdoc</groupId>
<artifactId>springdoc-openapi-starter-webmvc-ui</artifactId>
<version>2.0.2</version>
</dependency>
<dependency>
<groupId>com.graphql-java-kickstart</groupId>
<artifactId>graphql-spring-boot-starter</artifactId>
<version>15.0.0</version>
</dependency>
The problem is they both have a Bean with the name 'objectMapperProvider'.
One used in:
[org/springdoc/core/configuration/SpringDocConfiguration.class]
And the other used in:
[graphql/kickstart/autoconfigure/web/servlet/GraphQLWebAutoConfiguration.class]
The error I'm getting is:
The bean 'objectMapperProvider', defined in class path resource [org/springdoc/core/configuration/SpringDocConfiguration.class], could not be registered. A bean with that name has already been defined in class path resource [graphql/kickstart/autoconfigure/web/servlet/GraphQLWebAutoConfiguration.class] and overriding is disabled.
Is there a way around this problem or do I need to prioritize and choose what is more important to use. Find another solution.