Annotation Interface EnableMongoStores


  • Element Details

    • value

      String[] value
      Alias for the basePackages() attribute. Allows for more concise annotation declarations e.g.: @EnableJpaRepositories("org.my.pkg") instead of @EnableJpaRepositories(basePackages="org.my.pkg").
      Default:
      {}
    • basePackages

      String[] basePackages
      Base packages to scan for annotated components. value() is an alias for (and mutually exclusive with) this attribute. Use basePackageClasses() for a type-safe alternative to String-based package names.
      Default:
      {}
    • basePackageClasses

      Class<?>[] basePackageClasses
      Type-safe alternative to basePackages() for specifying the packages to scan for annotated components. The package of each class specified will be scanned. Consider creating a special no-op marker class or interface in each package that serves no purpose other than being referenced by this attribute.
      Default:
      {}
    • storeFactoryBeanClass

      Class<?> storeFactoryBeanClass
      Returns the FactoryBean class to be used for each repository instance. Defaults to MongoRepositoryFactoryBean.
      Returns:
      Default:
      internal.org.springframework.content.mongo.config.MongoStoreFactoryBean.class