TMP
authorKai Moritz <kai@juplo.de>
Fri, 23 Feb 2024 11:04:24 +0000 (12:04 +0100)
committerKai Moritz <kai@juplo.de>
Fri, 23 Feb 2024 15:13:05 +0000 (16:13 +0100)
src/main/java/de/juplo/kafka/chat/backend/ChatBackendApplication.java

index 76debbe..d6c69b7 100644 (file)
@@ -6,11 +6,17 @@ import jakarta.annotation.PreDestroy;
 import org.springframework.beans.factory.annotation.Autowired;
 import org.springframework.boot.SpringApplication;
 import org.springframework.boot.autoconfigure.SpringBootApplication;
+import org.springframework.boot.autoconfigure.data.mongo.MongoReactiveDataAutoConfiguration;
+import org.springframework.boot.autoconfigure.data.mongo.MongoReactiveRepositoriesAutoConfiguration;
+import org.springframework.boot.autoconfigure.mongo.MongoAutoConfiguration;
 import org.springframework.web.reactive.config.CorsRegistry;
 import org.springframework.web.reactive.config.WebFluxConfigurer;
 
 
-@SpringBootApplication
+@SpringBootApplication(exclude = {
+               MongoReactiveDataAutoConfiguration.class,
+               MongoReactiveRepositoriesAutoConfiguration.class,
+               MongoAutoConfiguration.class })
 public class ChatBackendApplication implements WebFluxConfigurer
 {
        @Autowired