Spring gap in web browser missing

when i use the new "websocket" scope in the component i get:

java.lang.IllegalStateException: No Scope registered for scope name 'websocket'

      

controller:

@RestController
@Scope(value = "websocket", proxyMode = ScopedProxyMode.TARGET_CLASS)
@Slf4j
public class GenericWrapperController extends TextWebSocketHandler {

      

spring version 4.3.3.RELEASE and 1.4.1.RELEASE for springboot. I guess his version is related to what the docs say this area was introduced in 4.1 already.

-1


source to share


1 answer


annotations are @EnableWebSocketMessageBroker

required in the config class to enable the websocket scope. @EnableWebSocket

Is NOT sufficient



0


source







All Articles