| | |
| | | package org.dromara.common.sse.config; |
| | | |
| | | import org.dromara.common.sse.controller.SseController; |
| | | import org.dromara.common.sse.core.SseEmitterManager; |
| | | import org.dromara.common.sse.listener.SseTopicListener; |
| | | import org.springframework.boot.autoconfigure.AutoConfiguration; |
| | |
| | | import org.springframework.context.annotation.Bean; |
| | | |
| | | /** |
| | | * SSE 自动装配 |
| | | * |
| | | * @author Lion Li |
| | | */ |
| | | @AutoConfiguration |
| | |
| | | return new SseTopicListener(); |
| | | } |
| | | |
| | | @Bean |
| | | public SseController sseController(SseEmitterManager sseEmitterManager) { |
| | | return new SseController(sseEmitterManager); |
| | | } |
| | | |
| | | } |