From 79857f04ae7e40341b89488989b1a80dfc143cc9 Mon Sep 17 00:00:00 2001 From: Attila Uhrin Date: Mon, 21 Mar 2022 17:43:35 +0100 Subject: [PATCH] Fix integration tests. --- .../main/java/com/baeldung/mongodb/dbref/DbRefApplication.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/persistence-modules/spring-boot-persistence-mongodb/src/main/java/com/baeldung/mongodb/dbref/DbRefApplication.java b/persistence-modules/spring-boot-persistence-mongodb/src/main/java/com/baeldung/mongodb/dbref/DbRefApplication.java index b358b3b974..a9101b36a0 100644 --- a/persistence-modules/spring-boot-persistence-mongodb/src/main/java/com/baeldung/mongodb/dbref/DbRefApplication.java +++ b/persistence-modules/spring-boot-persistence-mongodb/src/main/java/com/baeldung/mongodb/dbref/DbRefApplication.java @@ -2,8 +2,10 @@ package com.baeldung.mongodb.dbref; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; +import org.springframework.data.mongodb.repository.config.EnableMongoRepositories; @SpringBootApplication +@EnableMongoRepositories(basePackages = { "com.baeldung" }) public class DbRefApplication { public static void main(String... args) {