我在本地使用java代码编写一个webSocket服务,前端使用VUE进行调用,在本地能正常进行连接。我将代码打包放在linux上运行,但是前端不能正常进行连接。
后台引入的pom文件
<!--webSocket-->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-websocket</artifactId>
<version>3.1.4</version>
</dependency>
报错截图