spring-cloud-config
spring-cloud-config copied to clipboard
Hi! I have problem with @ConstructorBinding in bootstrap context. I use Kotlin
Cannot bind @ConfigurationProperties for bean 'ktor.client.core.configuration.KtorClientsPropertiesBootstrap'. Ensure that @ConstructorBinding has not been applied to regular bean
client:
application:
server:
url: application-context.ru
@ConstructorBinding
@ConfigurationProperties(prefix = "")
class KtorClientsPropertiesBootstrap(var client: Map<String, KtorClientProperties> = mapOf())
data class KtorClientProperties(
val server: ServerSettings,
)
data class ServerSettings(val url: String)
https://github.com/spring-projects/spring-boot/issues/26203 maybe this issue dont fixed?
Can you provide a complete, minimal, verifiable sample that reproduces the problem? It should be available as a GitHub (or similar) project or attached to this issue as a zip file.
If you would like us to look at this issue, please provide the requested information. If the information is not provided within the next 7 days this issue will be closed.
Closing due to lack of requested feedback. If you would like us to look at this issue, please provide the requested information and we will re-open the issue.
I have the same issue after upgrade Spring Boot:


See https://github.com/spring-cloud/spring-cloud-config/issues/2078#issuecomment-1301515429