havingValue = "none",
matchIfMissing = true)
@Configuration
-@EnableAutoConfiguration(
- exclude = {
- MongoReactiveDataAutoConfiguration.class,
- MongoReactiveRepositoriesAutoConfiguration.class,
- MongoAutoConfiguration.class })
public class NoStorageStorageConfiguration
{
@Bean
{
return new NoStorageStorageStrategy();
}
+
+ @Configuration
+ @EnableAutoConfiguration(
+ exclude = {
+ MongoReactiveDataAutoConfiguration.class,
+ MongoReactiveRepositoriesAutoConfiguration.class,
+ MongoAutoConfiguration.class })
+ public static class DisableMongoConfiguration
+ {
+ @Bean
+ public String foo()
+ {
+ return "FOO";
+ }
+ }
}