Skip to content

Commit

Permalink
OccurrentMongoAutoConfiguration no longer explicitly imports other Mo…
Browse files Browse the repository at this point in the history
…ngo auto configurations because it seems to cause problems (at least in Intellij)
  • Loading branch information
johanhaleby committed Dec 22, 2023
1 parent 95403c4 commit 94ea8eb
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -49,11 +49,9 @@
import org.springframework.boot.autoconfigure.condition.ConditionalOnBean;
import org.springframework.boot.autoconfigure.condition.ConditionalOnClass;
import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean;
import org.springframework.boot.autoconfigure.data.mongo.MongoDataAutoConfiguration;
import org.springframework.boot.autoconfigure.mongo.MongoAutoConfiguration;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Import;
import org.springframework.data.mongodb.MongoDatabaseFactory;
import org.springframework.data.mongodb.MongoTransactionManager;
import org.springframework.data.mongodb.core.MongoTemplate;
Expand All @@ -69,7 +67,7 @@
@AutoConfiguration(after = MongoAutoConfiguration.class)
@ConditionalOnClass({SpringMongoEventStore.class, SpringMongoSubscriptionModel.class})
@EnableConfigurationProperties(OccurrentProperties.class)
@Import({MongoAutoConfiguration.class, MongoDataAutoConfiguration.class})
//@Import({MongoAutoConfiguration.class, MongoDataAutoConfiguration.class})
public class OccurrentMongoAutoConfiguration<E> {

@Bean
Expand Down

0 comments on commit 94ea8eb

Please sign in to comment.