From 0ed1642989c99583b877c7d8b68b597a4028d96d Mon Sep 17 00:00:00 2001 From: Dave Syer Date: Fri, 18 Apr 2014 13:38:30 -0700 Subject: [PATCH] Tweak autoconfigs in websocket support --- .../SpringWebsocketCompilerAutoConfiguration.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/spring-boot-cli/src/main/java/org/springframework/boot/cli/compiler/autoconfigure/SpringWebsocketCompilerAutoConfiguration.java b/spring-boot-cli/src/main/java/org/springframework/boot/cli/compiler/autoconfigure/SpringWebsocketCompilerAutoConfiguration.java index bccbe3dbba..1d6e68df70 100644 --- a/spring-boot-cli/src/main/java/org/springframework/boot/cli/compiler/autoconfigure/SpringWebsocketCompilerAutoConfiguration.java +++ b/spring-boot-cli/src/main/java/org/springframework/boot/cli/compiler/autoconfigure/SpringWebsocketCompilerAutoConfiguration.java @@ -47,9 +47,10 @@ public class SpringWebsocketCompilerAutoConfiguration extends CompilerAutoConfig public void applyImports(ImportCustomizer imports) { imports.addStarImports("org.springframework.messaging.handler.annotation", "org.springframework.messaging.simp.config", - "org.springframework.web.socket", "org.springframework.web.socket.handler", - "org.springframework.web.socket.config.annotation"); + "org.springframework.web.socket.sockjs.transport.handler", + "org.springframework.web.socket.config.annotation").addImports( + "org.springframework.web.socket.WebSocketHandler"); } }