1. 替换原始 code 签名

2. 服务与模块生成器,支持指定起始端口批量端口分配

(cherry picked from commit e99da38fd4)
This commit is contained in:
chenbowen
2025-09-02 10:15:16 +08:00
committed by chenbowen
parent 9540e8fddd
commit b8f9c7016c
778 changed files with 876 additions and 801 deletions

View File

@@ -25,7 +25,7 @@ import java.util.function.Consumer;
*
* 基于 {@link JsonWebSocketMessage#getType()} 消息类型,调度到对应的 {@link WebSocketMessageListener} 监听器。
*
* @author 芋道源码
* @author ZT
*/
@Slf4j
public class JsonWebSocketMessageHandler extends TextWebSocketHandler {

View File

@@ -8,7 +8,7 @@ import java.io.Serializable;
/**
* JSON 格式的 WebSocket 消息帧
*
* @author 芋道源码
* @author ZT
*/
@Data
public class JsonWebSocketMessage implements Serializable {

View File

@@ -19,7 +19,7 @@ import java.util.Map;
* 1. 前端连接 websocket 时,会通过拼接 ?token={token} 到 ws:// 连接后,这样它可以被 {@link TokenAuthenticationFilter} 所认证通过
* 2. {@link LoginUserHandshakeInterceptor} 负责把 {@link LoginUser} 添加到 {@link WebSocketSession} 中
*
* @author 芋道源码
* @author ZT
*/
public class LoginUserHandshakeInterceptor implements HandshakeInterceptor {

View File

@@ -9,7 +9,7 @@ import org.springframework.security.config.annotation.web.configurers.AuthorizeH
/**
* WebSocket 的权限自定义
*
* @author 芋道源码
* @author ZT
*/
@RequiredArgsConstructor
public class WebSocketAuthorizeRequestsCustomizer extends AuthorizeRequestsCustomizer {

View File

@@ -18,7 +18,7 @@ import java.util.List;
/**
* WebSocketMessageSender 实现类
*
* @author 芋道源码
* @author ZT
*/
@Slf4j
@RequiredArgsConstructor

View File

@@ -5,7 +5,7 @@ import cn.iocoder.yudao.framework.common.util.json.JsonUtils;
/**
* WebSocket 消息的发送器接口
*
* @author 芋道源码
* @author ZT
*/
public interface WebSocketMessageSender {

View File

@@ -5,7 +5,7 @@ import lombok.Data;
/**
* Kafka 广播 WebSocket 的消息
*
* @author 芋道源码
* @author ZT
*/
@Data
public class KafkaWebSocketMessage {

View File

@@ -7,7 +7,7 @@ import org.springframework.kafka.annotation.KafkaListener;
/**
* {@link KafkaWebSocketMessage} 广播消息的消费者,真正把消息发送出去
*
* @author 芋道源码
* @author ZT
*/
@RequiredArgsConstructor
public class KafkaWebSocketMessageConsumer {

View File

@@ -11,7 +11,7 @@ import java.util.concurrent.ExecutionException;
/**
* 基于 Kafka 的 {@link WebSocketMessageSender} 实现类
*
* @author 芋道源码
* @author ZT
*/
@Slf4j
public class KafkaWebSocketMessageSender extends AbstractWebSocketMessageSender {

View File

@@ -9,7 +9,7 @@ import cn.iocoder.yudao.framework.websocket.core.session.WebSocketSessionManager
*
* 注意:仅仅适合单机场景!!!
*
* @author 芋道源码
* @author ZT
*/
public class LocalWebSocketMessageSender extends AbstractWebSocketMessageSender {

Some files were not shown because too many files have changed in this diff Show More