Package com.mikuac.shiro.boot
Class ShiroAutoConfiguration
java.lang.Object
com.mikuac.shiro.boot.ShiroAutoConfiguration
- All Implemented Interfaces:
org.springframework.web.socket.config.annotation.WebSocketConfigurer
@Component
@EnableAsync
@EnableWebSocket
@Import(Shiro.class)
@ComponentScan("com.mikuac.shiro")
public class ShiroAutoConfiguration
extends Object
implements org.springframework.web.socket.config.annotation.WebSocketConfigurer
Created on 2021/7/15.
-
Constructor Summary
ConstructorsConstructorDescriptionShiroAutoConfiguration(WebSocketServerProperties wsServerProp, WebSocketClientProperties wsClientProp, WebSocketProperties wsProp, ShiroProperties shiroProperties, ScheduledTask scheduledTask, Optional<WebSocketServerHandler> webSocketServerHandler, Optional<WebSocketClientHandler> webSocketClientHandler) -
Method Summary
Modifier and TypeMethodDescriptionvoidregisterWebSocketHandlers(org.springframework.web.socket.config.annotation.WebSocketHandlerRegistry registry)
-
Constructor Details
-
ShiroAutoConfiguration
@Autowired public ShiroAutoConfiguration(WebSocketServerProperties wsServerProp, WebSocketClientProperties wsClientProp, WebSocketProperties wsProp, ShiroProperties shiroProperties, ScheduledTask scheduledTask, Optional<WebSocketServerHandler> webSocketServerHandler, Optional<WebSocketClientHandler> webSocketClientHandler)
-
-
Method Details
-
registerWebSocketHandlers
public void registerWebSocketHandlers(@Nonnull org.springframework.web.socket.config.annotation.WebSocketHandlerRegistry registry) - Specified by:
registerWebSocketHandlersin interfaceorg.springframework.web.socket.config.annotation.WebSocketConfigurer
-