fix: exclude embedded autoconfig, remove unused boot class (#12707)
This commit is contained in:
parent
63249f5339
commit
8066e08c68
|
@ -2,11 +2,12 @@ package com.baeldung.boot.collection.name;
|
|||
|
||||
import org.springframework.boot.SpringApplication;
|
||||
import org.springframework.boot.autoconfigure.SpringBootApplication;
|
||||
import org.springframework.boot.autoconfigure.mongo.embedded.EmbeddedMongoAutoConfiguration;
|
||||
import org.springframework.context.annotation.Bean;
|
||||
import org.springframework.context.annotation.PropertySource;
|
||||
import org.springframework.data.mongodb.repository.config.EnableMongoRepositories;
|
||||
|
||||
@SpringBootApplication
|
||||
@SpringBootApplication(exclude = EmbeddedMongoAutoConfiguration.class)
|
||||
@PropertySource("classpath:boot.collection.name/app.properties")
|
||||
@EnableMongoRepositories(basePackages = { "com.baeldung.boot.collection.name" })
|
||||
public class SpringBootCollectionNameApplication {
|
||||
|
|
|
@ -2,9 +2,10 @@ package com.baeldung.boot.composite.key;
|
|||
|
||||
import org.springframework.boot.SpringApplication;
|
||||
import org.springframework.boot.autoconfigure.SpringBootApplication;
|
||||
import org.springframework.boot.autoconfigure.mongo.embedded.EmbeddedMongoAutoConfiguration;
|
||||
import org.springframework.data.mongodb.repository.config.EnableMongoRepositories;
|
||||
|
||||
@SpringBootApplication
|
||||
@SpringBootApplication(exclude = EmbeddedMongoAutoConfiguration.class)
|
||||
@EnableMongoRepositories(basePackages = { "com.baeldung.boot.composite.key" })
|
||||
public class SpringBootCompositeKeyApplication {
|
||||
public static void main(String... args) {
|
||||
|
|
|
@ -2,9 +2,10 @@ package com.baeldung.boot.count;
|
|||
|
||||
import org.springframework.boot.SpringApplication;
|
||||
import org.springframework.boot.autoconfigure.SpringBootApplication;
|
||||
import org.springframework.boot.autoconfigure.mongo.embedded.EmbeddedMongoAutoConfiguration;
|
||||
import org.springframework.data.mongodb.repository.config.EnableMongoRepositories;
|
||||
|
||||
@SpringBootApplication
|
||||
@SpringBootApplication(exclude = EmbeddedMongoAutoConfiguration.class)
|
||||
@EnableMongoRepositories(basePackages = { "com.baeldung.boot.count" })
|
||||
public class SpringBootCountApplication {
|
||||
public static void main(String... args) {
|
||||
|
|
|
@ -2,10 +2,11 @@ package com.baeldung.boot.unique.field;
|
|||
|
||||
import org.springframework.boot.SpringApplication;
|
||||
import org.springframework.boot.autoconfigure.SpringBootApplication;
|
||||
import org.springframework.boot.autoconfigure.mongo.embedded.EmbeddedMongoAutoConfiguration;
|
||||
import org.springframework.context.annotation.PropertySource;
|
||||
import org.springframework.data.mongodb.repository.config.EnableMongoRepositories;
|
||||
|
||||
@SpringBootApplication
|
||||
@SpringBootApplication(exclude = EmbeddedMongoAutoConfiguration.class)
|
||||
@PropertySource("classpath:boot.unique.field/app.properties")
|
||||
@EnableMongoRepositories(basePackages = { "com.baeldung.boot.unique.field" })
|
||||
public class SpringBootUniqueFieldApplication {
|
||||
|
|
|
@ -1,13 +0,0 @@
|
|||
package com.baeldung.logging;
|
||||
|
||||
import org.springframework.boot.SpringApplication;
|
||||
import org.springframework.boot.autoconfigure.SpringBootApplication;
|
||||
|
||||
@SpringBootApplication
|
||||
public class SpringBootPersistenceApplication {
|
||||
|
||||
public static void main(String ... args) {
|
||||
SpringApplication.run(SpringBootPersistenceApplication.class, args);
|
||||
}
|
||||
|
||||
}
|
Loading…
Reference in New Issue