Correct the classpath of your application so that it contains a single, compatible version of org.springframework.plugin.core.PluginRegistry Correct the classpath of your application so that it contains a single, compatible version of org.springframework.plugin.core.PluginRegistry spring spring

Correct the classpath of your application so that it contains a single, compatible version of org.springframework.plugin.core.PluginRegistry


Adding this dependency to your dependencies section solved the problem:

        <dependency>            <groupId>org.springframework.plugin</groupId>            <artifactId>spring-plugin-core</artifactId>            <version>2.0.0.RELEASE</version>        </dependency>

source:https://github.com/springfox/springfox/issues/2932


For me i used the spring fox version 2.9.2 and i got the same problem after doing some change in the springFox version i found that the best way to solve the problem is using the springfox-starter version and it do all the thing for you. the cause of the problem is versioning conflict.

<dependency> <groupId>io.springfox</groupId> <artifactId>springfox-boot-starter</artifactId></dependency>


Why are you missing Spring boot starter plugin. It takes care of all of the matched dependency version. Don't specify any jar version explicitly ,if it is managed by Spring. There is an Spring-boot-dependency jar browse through it to find version managed by Spring. You can also refer to Spring documentation page https://docs.spring.io/spring-boot/docs/current/reference/htmlsingle/#dependency-versions-coordinates.