Skip to content

@MessageMapping with placeholders [SPR-13271] #17862

@spring-projects-issues

Description

@spring-projects-issues

Carlos Rivas opened SPR-13271 and commented

I am working with Spring-websocket and I have the following problem:

@RequestMapping(value= "${myProperty}")
@MessageMapping("${myProperty}") -> If I use this placeholder, the URL is null. 

I am trying to put a placeholder within a @MessageMapping annotation in order to obtain the url from properties. I have managed to make it work with @RequestMapping but not with @MessageMapping.

I would like to indicate the URL using properties, that is ${myProperty} indicates the complete URL


Affects: 4.1.6, 4.1.7, 4.1.8

Reference URL: http://stackoverflow.com/questions/31185321/messagemapping-with-placeholders

Referenced from: commits 4b4efa9

Metadata

Metadata

Assignees

Labels

in: webIssues in web modules (web, webmvc, webflux, websocket)type: enhancementA general enhancement

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions