Skip to content

Spring Cloud Stream consumer with parameterised type not returning the correct payload type #433

@SheheryarAamir

Description

@SheheryarAamir

Describe the bug
I am facing another issue, where I am expecting MyEvent as payload type but instead I am getting org.springframework.messaging.Message as payload type which is wrong

below is the signature of my consumer

@Bean
    public Consumer<Message<MyEvent>> consumeEvent() {
    }

Dependencies and versions used
springwolf-cloud-stream version 0.6.1.

Code example

@Bean
    public Consumer<Message<MyEvent>> consumeEvent() {
    }

Stack trace and error logs
N/A

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions