Skip to content

Commit

Permalink
chore: added @NestedConfigurationProperty annotation
Browse files Browse the repository at this point in the history
  • Loading branch information
antonioT90 committed Jan 13, 2025
1 parent 8502df6 commit 1f3c08d
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
import lombok.Setter;
import org.springframework.boot.autoconfigure.mongo.MongoClientSettingsBuilderCustomizer;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.boot.context.properties.NestedConfigurationProperty;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.core.convert.converter.Converter;
Expand All @@ -25,6 +26,7 @@ public class MongoConfig {
@ConfigurationProperties(prefix = "spring.data.mongodb.config")
@Setter
public static class MongoDbCustomProperties {
@NestedConfigurationProperty
ConnectionPoolSettings connectionPool;

@Setter
Expand Down

0 comments on commit 1f3c08d

Please sign in to comment.