spring-cloud / spring-cloud-stream-binder-rabbit

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Could not declare exchange type

ikarosales opened this issue · comments

I'm trying to put an exchange type (fanout) and also put a queue in the application.yml file

image

Don't ask questions in GitHub issues; use Stack Overflow for that.

Does it not work, or is this just an artifact of your IDE not handling the properties?

It could be a problem with the properties metadata, depending on your Spring and/or IDE versions.

Try running it.

Don't ask questions in GitHub issues; use Stack Overflow for that.

Does it not work, or is this just an artifact of your IDE not handling the properties?

It could be a problem with the properties metadata, depending on your Spring and/or IDE versions.

Try running it.

I didn't understand the resolution you gave, I'm using Eclipse IDE 2019-12 (4.14.0) and Spring 2.2.6.RELEASE @garyrussell

I didn't understand the resolution you gave

I didn't give you are resolution; I was trying to establish whether it's a bogus error reported by the IDE; I suggested that you try running the application to see if it works as expected.

If not; please provide a complete verifiable example that exhibits the problem.

image

Caused by: org.springframework.expression.spel.SpelEvaluationException: EL1008E: Property or field 'foo' cannot be found on object of type 'org.springframework.messaging.support.GenericMessage' - maybe not public or not valid?

I am not sure why STS is flagging that as an error.

With YAML you have to use routing-key-expression: '''foo''' so that the SpEL parser gets a literal 'foo'.

Closing due to no activity.