Add path-helper attribute for websocket namespace

Issue: SPR-11771
This commit is contained in:
Rossen Stoyanchev
2015-04-13 22:39:50 -04:00
parent e4acbae270
commit a3df66931f
3 changed files with 25 additions and 5 deletions

View File

@@ -6,7 +6,8 @@
<websocket:message-broker application-destination-prefix="/app"
user-destination-prefix="/personal"
path-matcher="pathMatcher">
path-matcher="pathMatcher"
path-helper="urlPathHelper">
<!-- message-size=128*1024, send-buffer-size=1024*1024 -->
<websocket:transport message-size="131072" send-timeout="25000" send-buffer-size="1048576">
@@ -40,6 +41,10 @@
<property name="pathSeparator" value="." />
</bean>
<bean id="urlPathHelper" class="org.springframework.web.util.UrlPathHelper">
<property name="alwaysUseFullPath" value="true"/>
</bean>
<bean id="myHandler" class="org.springframework.web.socket.config.TestHandshakeHandler"/>
<bean id="barTestInterceptor" class="org.springframework.web.socket.config.BarTestInterceptor"/>
<bean id="scheduler" class="org.springframework.scheduling.concurrent.ThreadPoolTaskScheduler"/>