Skip to content

@ConditionalOnProperty does not handle lists properly #7483

Closed
@snicoll

Description

@snicoll

We use a List<String> instead of a String in many places to allow YAML to configure the property with nested structure. spring.couchbase.bootstrap-hosts is one of these.

In CouchbaseAutoConfiguration we check if that property is set to auto-configure a Bucket. The following works: spring.couchbase.bootstrap-hosts=localhost but the following does not spring.couchbase.bootstrap-hosts[0]=localhost

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions