title: Failed to start bean 'documentationPluginsBootstrapper' Spring boot Swagger implementation using Spring Fox?
body: <p>I am using springfox-boot-starter dependency for swagger UI in my spring boot application but when I try to run the application I am getting below error</p>
  <pre><code>    Failed to start bean 'documentationPluginsBootstrapper'; nested exception is java.lang.NoSuchMethodError: org.springframework.plugin.core.PluginRegistry.getPluginFor(Ljava/lang/Object;)Ljava/util/Optional;
          at org.springframework.context.support.DefaultLifecycleProcessor.doStart(DefaultLifecycleProcessor.java:184)
          at org.springframework.context.support.DefaultLifecycleProcessor.access$200(DefaultLifecycleProcessor.java:52)
          at org.springframework.context.support.DefaultLifecycleProcessor$LifecycleGroup.start(DefaultLifecycleProcessor.java:356)
          at org.springframework.context.support.DefaultLifecycleProcessor.startBeans(DefaultLifecycleProcessor.java:157)
          at org.springframework.context.support.DefaultLifecycleProcessor.onRefresh(DefaultLifecycleProcessor.java:121)
          at org.springframework.context.support.AbstractApplicationContext.finishRefresh(AbstractApplicationContext.java:885)
          at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.finishRefresh(ServletWebServerApplicationContext.java:161)
          at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:553)
          at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:140)
          at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:759)
  </code></pre>
  <p><strong>my config file:</strong></p>
  <pre><code>
   @Bean
   public Docket productApi() {
          
       return new Docket(DocumentationType.SWAGGER_2)
          .select()
          .apis(RequestHandlerSelectors.basePackage(&quot;com.swagger.demo.controller&quot;))
          .paths(regex(&quot;/student.*&quot;))
          .build()
          .enableUrlTemplating(true)
          .produces(DEFAULT_PRODUCES_AND_CONSUMES)
          .consumes(DEFAULT_PRODUCES_AND_CONSUMES)
          .apiInfo(apiEndPointsInfo());
      }
  
  private ApiInfo apiEndPointsInfo() {
  
      return new ApiInfoBuilder()
              .title(&quot;demo&quot;)
              .description(&quot;demo&quot;)
              .version(&quot;1.0&quot;)
              .build();
  } 
  
  </code></pre>
  <p>Below is the dependency which I am using.
  <strong>pom.xml file:</strong></p>
  <pre><code>&lt;parent&gt;
      &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;
      &lt;artifactId&gt;spring-boot-starter-parent&lt;/artifactId&gt;
      &lt;version&gt;2.0.3.RELEASE&lt;/version&gt;
      &lt;relativePath/&gt; &lt;!-- lookup parent from repository --&gt;
  &lt;/parent&gt;
      
  &lt;dependencies&gt;
      &lt;dependency&gt;
        &lt;groupId&gt;io.springfox&lt;/groupId&gt;
        &lt;artifactId&gt;springfox-boot-starter&lt;/artifactId&gt;
        &lt;version&gt;3.0.0&lt;/version&gt;
      &lt;/dependency&gt;
  &lt;/dependencies&gt;
  </code></pre>
  <p>Why I am getting above error I don't get anything. Any help would be highly appreciated. Thanks in advance.</p>