diff --git a/wemirr-platform-framework/websocket-spring-boot-starter/src/main/java/com/wemirr/framework/websocket/redis/RedisWebSocketConfiguration.java b/wemirr-platform-framework/websocket-spring-boot-starter/src/main/java/com/wemirr/framework/websocket/redis/RedisWebSocketConfiguration.java index 6f77853afdedb4a1a587d8036e1e52f9355fa39c..e9ea2850c57ab776a2ff3d12ae131c6ac6c9031f 100644 --- a/wemirr-platform-framework/websocket-spring-boot-starter/src/main/java/com/wemirr/framework/websocket/redis/RedisWebSocketConfiguration.java +++ b/wemirr-platform-framework/websocket-spring-boot-starter/src/main/java/com/wemirr/framework/websocket/redis/RedisWebSocketConfiguration.java @@ -25,6 +25,7 @@ import com.wemirr.framework.websocket.configuration.WebSocketProperties; import com.wemirr.framework.websocket.redis.action.ActionConfig; import org.springframework.beans.factory.annotation.Qualifier; import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean; +import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty; import org.springframework.boot.context.properties.EnableConfigurationProperties; import org.springframework.context.ApplicationContext; import org.springframework.context.annotation.Bean; @@ -42,6 +43,7 @@ import org.springframework.web.socket.server.standard.ServerEndpointExporter; @Configuration @Import(ActionConfig.class) @EnableConfigurationProperties(WebSocketProperties.class) +@ConditionalOnProperty(name = "spring.websocket.manager.type", havingValue = "REDIS") public class RedisWebSocketConfiguration { @Bean