isolating application repositories
This commit is contained in:
parent
124c0bd354
commit
22f01e2188
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue