refactor: 添加 websocket 连接认证拦截器实现点对点指定用户发送消息;移除 easy-captcha 替换为 hutool-captcha验证码实现代码简化;重构认证接口控制层代码。

This commit is contained in:
haoxr
2023-09-12 18:25:16 +08:00
parent 87fcf022ba
commit 9453600715
37 changed files with 290 additions and 358 deletions

22
pom.xml
View File

@@ -6,8 +6,8 @@
<groupId>com.youlai</groupId>
<artifactId>youlai-boot</artifactId>
<version>2.3.0</version>
<description>基于 SpringBoot3 快速构建的权限管理系统</description>
<version>2.4.0</version>
<description>基于Spring Boot 3快速构建的高效权限管理系统</description>
<parent>
<groupId>org.springframework.boot</groupId>
@@ -43,10 +43,6 @@
<aliyun-sdk-oss.version>3.16.3</aliyun-sdk-oss.version>
<!-- 验证码 -->
<easy-captcha.version>1.6.2</easy-captcha.version>
<nashorn.version>15.4</nashorn.version>
<!-- redisson 分布式锁 -->
<redisson.version>3.21.0</redisson.version>
</properties>
@@ -189,20 +185,6 @@
<version>${aliyun-sdk-oss.version}</version>
</dependency>
<!-- 验证码 -->
<dependency>
<groupId>com.github.whvcse</groupId>
<artifactId>easy-captcha</artifactId>
<version>${easy-captcha.version}</version>
</dependency>
<!-- Java8 之后JavaScript引擎nashorn被移除导致验证码解析报错-->
<dependency>
<groupId>org.openjdk.nashorn</groupId>
<artifactId>nashorn-core</artifactId>
<version>${nashorn.version}</version>
</dependency>
<!-- redisson 分布式锁 -->
<dependency>
<groupId>org.redisson</groupId>