spring-framework / org.springframework.messaging.simp.config / MessageBrokerRegistry / setApplicationDestinationPrefixes

setApplicationDestinationPrefixes

open fun setApplicationDestinationPrefixes(vararg prefixes: String): MessageBrokerRegistry

Configure one or more prefixes to filter destinations targeting application annotated methods. For example destinations prefixed with "/app" may be processed by annotated methods while other destinations may target the message broker (e.g. "/topic", "/queue").

When messages are processed, the matching prefix is removed from the destination in order to form the lookup path. This means annotations should not contain the destination prefix.

Prefixes that do not have a trailing slash will have one automatically appended.