isolating application repositories

This commit is contained in:
Ulisses Lima 2022-05-20 14:09:36 -03:00
parent 124c0bd354
commit 22f01e2188
1 changed files with 2 additions and 0 deletions

View File

@ -4,9 +4,11 @@ import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.PropertySource;
import org.springframework.data.mongodb.repository.config.EnableMongoRepositories;
@SpringBootApplication
@PropertySource("classpath:boot.collection.name/app.properties")
@EnableMongoRepositories(basePackages = { "com.baeldung.boot.collection.name" })
public class SpringBootCollectionNameApplication {
public static void main(String... args) {
SpringApplication.run(SpringBootCollectionNameApplication.class, args);