Skip to content

No converter found capable of converting from type [java.lang.String] to type [org.springframework.expression.Expression] #2283

@luamas

Description

@luamas

spring.cloud.stream.kafka.default.producer.message-key-expression: headers['messageKey']

When you configure the default

Failed to bind properties under 'spring.cloud.stream.kafka.default.producer.message-key-expression' to org.springframework.expression.Expression:

Property: spring.cloud.stream.kafka.default.producer.message-key-expression
Value: headers['messageKey']
Origin: class path resource [application.yml] - 11:37
Reason: org.springframework.core.convert.ConverterNotFoundException: No converter found capable of converting from type [java.lang.String] to type [org.springframework.expression.Expression]

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions