移除自带tomcat
<dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-websocket</artifactId> <version>${spring.version}</version> <exclusions> <!-- 适配宝兰德,移除tomcat--> <exclusion> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-tomcat</artifactId> </exclusion> </exclusions> </dependency>
下载相关jar并导入本地maven
链接: https://pan.baidu.com/s/13aILBW8aBDh3IYq5VMmFNQ 提取码: 4gba 复制这段内容后打开百度网盘手机App,操作更方便哦
根据下载文件解压获取对应jar
mvn install:install-file -DgroupId=com.bes.appserv-web -DartifactId=bes-websocket -Dversion=9.5.5.002 -Dpackaging=jar -Dfile=D:\lib\bes-websocket-9.5.5.002.jar
不懂的问度娘
<dependency> <groupId>com.bes.appserv-web</groupId> <artifactId>bes-lite-spring-boot-2.x-starter</artifactId> <version>9.5.5.002</version> </dependency> <dependency> <groupId>com.bes.appserv-web</groupId> <artifactId>bes-websocket</artifactId> <version>9.5.5.002</version> </dependency>
至此结束 直接启动项目即可 能正常启动就ok
标签:websocket,Tomcat,Spring,boot,9.5,jar,Boot,spring,bes From: https://www.cnblogs.com/pijunqi/p/18039395