spring-cloud-config icon indicating copy to clipboard operation
spring-cloud-config copied to clipboard

Hi! I have problem with @ConstructorBinding in bootstrap context. I use Kotlin

Open KirillKurdyukov opened this issue 2 years ago • 2 comments

Cannot bind @ConfigurationProperties for bean 'ktor.client.core.configuration.KtorClientsPropertiesBootstrap'. Ensure that @ConstructorBinding has not been applied to regular bean

KirillKurdyukov avatar Apr 15 '22 08:04 KirillKurdyukov

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)

KirillKurdyukov avatar Apr 15 '22 08:04 KirillKurdyukov

https://github.com/spring-projects/spring-boot/issues/26203 maybe this issue dont fixed?

KirillKurdyukov avatar Apr 15 '22 08:04 KirillKurdyukov

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.

ryanjbaxter avatar Nov 03 '22 00:11 ryanjbaxter

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.

spring-cloud-issues avatar Nov 10 '22 00:11 spring-cloud-issues

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.

spring-cloud-issues avatar Nov 17 '22 00:11 spring-cloud-issues

I have the same issue after upgrade Spring Boot:

Снимок экрана 2022-11-20 в 19 04 14 Снимок экрана 2022-11-20 в 19 15 07

steklopod avatar Nov 20 '22 18:11 steklopod

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

ryanjbaxter avatar Nov 22 '22 01:11 ryanjbaxter