@ConditionalOnWebApplication public class EnableAutoScanConfiguration extends Object
| 构造器和说明 |
|---|
EnableAutoScanConfiguration() |
| 限定符和类型 | 方法和说明 |
|---|---|
CacheService |
cacheService(WebSocketConfig webSocketConfig)
缓存服务
|
AuthenticationConfigurator |
serverConfigurator()
鉴权
|
org.springframework.web.socket.server.standard.ServerEndpointExporter |
serverEndpointExporter()
往 spring 容器中注入ServerEndpointExporter实例
|
WebSocketConfig |
webSocketConfig()
配置文件
|
WebSocketServer |
webSocketServer(CacheService cacheService)
webSocker服务端
|
@ConditionalOnMissingBean(value=WebSocketConfig.class) @Bean public WebSocketConfig webSocketConfig()
@ConditionalOnMissingBean(value=CacheService.class) @Bean public CacheService cacheService(WebSocketConfig webSocketConfig)
@ConditionalOnMissingBean(value=WebSocketServer.class) @Bean public WebSocketServer webSocketServer(CacheService cacheService)
@ConditionalOnMissingBean(value=org.springframework.web.socket.server.standard.ServerEndpointExporter.class) @Bean public org.springframework.web.socket.server.standard.ServerEndpointExporter serverEndpointExporter()
@ConditionalOnMissingBean(value=AuthenticationConfigurator.class) @Bean public AuthenticationConfigurator serverConfigurator()
Copyright © 2023 tan. All rights reserved.