feat(messaging/websocket): 新增消息模块 - WebSocket

This commit is contained in:
2024-06-04 22:43:27 +08:00
parent 3d2a4271d5
commit cc079e8bf4
16 changed files with 647 additions and 9 deletions

View File

@@ -30,13 +30,6 @@
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-undertow</artifactId>
<!-- 移除 websocket 依赖,后续使用 websocket 可考虑由 Netty 提供。另可解决日志警告UT026010: Buffer pool was not set on WebSocketDeploymentInfo, the default pool will be used -->
<exclusions>
<exclusion>
<groupId>io.undertow</groupId>
<artifactId>undertow-websockets-jsr</artifactId>
</exclusion>
</exclusions>
</dependency>
<!-- Hibernate Validator -->

View File

@@ -33,6 +33,8 @@ import java.util.List;
@ConfigurationProperties(PropertiesConstants.CORS)
public class CorsProperties {
private static final List<String> ALL = Collections.singletonList(StringConstants.ASTERISK);
/**
* 是否启用跨域配置
*/
@@ -58,8 +60,6 @@ public class CorsProperties {
*/
private List<String> exposedHeaders = new ArrayList<>();
private static final List<String> ALL = Collections.singletonList(StringConstants.ASTERISK);
public boolean isEnabled() {
return enabled;
}