title: springboot rest swagger :error in initialising bean
body: <p>I am using swagger to document my spring boot rest application
  Using</p>
  
  <ul>
  <li>spring-boot-starter-web</li>
  <li>spring-boot-starter-data-rest</li>
  <li>springfox-swagger2 2.9.2</li>
  <li>springfox-swagger 2.9.2</li>
  </ul>
  
  <p>Code is building fine but when I run it it is throwing error below</p>
  
  <pre><code>org.springframework.beans.factory.UnsatisfiedDependencyException: 
      Error creating bean with name 'requestMappingHandlerMapping' defined in class path resource [org/springframework/boot/autoconfigure/web/servlet/WebMvcAutoConfiguration 
  
  $EnableWebMvcConfiguration.class]:
   Unsatisfied dependency expressed through method 'requestMappingHandlerMapping' parameter 1;
  nested exception is org.springframework.beans.factory.BeanCreationException:
   Error creating bean with name 'mvcConversionService' defined in class path resource [org/springframework/boot/autoconfigure/web/servlet/WebMvcAutoConfiguration
  
  $EnableWebMvcConfiguration.class]:
   Bean instantiation via factory method failed;
   nested exception is org.springframework.beans.BeanInstantiationException:
   Failed to instantiate [org.springframework.format.support.FormattingConversionService]: 
  Factory method 'mvcConversionService' threw exception; 
  nested exception is org.springframework.beans.factory.BeanCreationException:
   Error creating bean with name 'jsonSchemaConverter' defined in class path resource [org/springframework/data/rest/webmvc/config/RepositoryRestMvcConfiguration.class]:
       Bean instantiation via factory method failed;
  nested exception is org.springframework.beans.BeanInstantiationException:
   Failed to instantiate [org.springframework.data.rest.webmvc.json.PersistentEntityToJsonSchemaConverter]:
       Factory method 'jsonSchemaConverter' threw exception;
  nested exception is org.springframework.beans.factory.BeanCreationException: 
       Error creating bean with name 'defaultConversionService' defined in class path resource [org/springframework/data/rest/webmvc/config/RepositoryRestMvcConfiguration.class]:
       Bean instantiation via factory method failed;  
  nested exception is org.springframework.beans.BeanInstantiationException: 
       Failed to instantiate [org.springframework.format.support.DefaultFormattingConversionService]:
       Factory method 'defaultConversionService' threw exception; 
  nested exception is org.springframework.beans.factory.BeanCreationException: 
       Error creating bean with name 'repositoryInvokerFactory' defined in class path resource [org/springframework/data/rest/webmvc/config/RepositoryRestMvcConfiguration.class]:
       Bean instantiation via factory method failed;
  
  nested exception is org.springframework.beans.BeanInstantiationException:
   nested exception is org.springframework.beans.BeanInstantiationException:
       Failed to instantiate [org.springframework.data.repository.support.RepositoryInvokerFactory]:
       Factory method 'repositoryInvokerFactory' threw exception;
  
  nested exception is java.lang.NoSuchMethodError:      org.springframework.plugin.core.PluginRegistry.of(Ljava/util/List;)Lorg/springframework/plugin/core/PluginRegistry;   
  </code></pre>