Skip to content

Commit

Permalink
Merge pull request #6 from maoudia/feature/upgrade-records-config
Browse files Browse the repository at this point in the history
remove config properties package scan
  • Loading branch information
aoudiamoncef authored Feb 9, 2024
2 parents 511ebab + bdd2d49 commit 3b075ca
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
@ConfigurationProperties(prefix = "app")
@Validated
public record AppProperties(

/*
* The bulk size configuration.
*/
Expand Down Expand Up @@ -49,4 +48,4 @@ public record AppProperties(
@NotNull
URI enrichingUri
) {
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,10 @@
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.data.mongo.MongoReactiveRepositoriesAutoConfiguration;
import org.springframework.boot.context.properties.ConfigurationPropertiesScan;
import reactor.core.scheduler.Schedulers;
import org.springframework.boot.context.properties.EnableConfigurationProperties;

@SpringBootApplication(exclude = MongoReactiveRepositoriesAutoConfiguration.class)
@ConfigurationPropertiesScan("com.maoudia.tutorial")
@EnableConfigurationProperties(AppProperties.class)
public class Application implements CommandLineRunner, ExitCodeGenerator {
private static final Logger LOGGER = LoggerFactory.getLogger(Application.class);
private final AppProperties properties;
Expand Down

0 comments on commit 3b075ca

Please sign in to comment.