简介
使用springboot websocket过程整理
配置pom依赖
1 | <!--配置springboot web项目--> |
配置config
1 | /** |
如果是由外部tomcat自己管理则不需要设置,如果是springboot,因为内置tomcat,所以需要设置
websocket主类
1 | @ServerEndpoint(value = "/webms/{user}") |
前台页面
index.html,内容如下
1 | <html> |
you...
使用springboot websocket过程整理
1 | <!--配置springboot web项目--> |
1 | /** |
如果是由外部tomcat自己管理则不需要设置,如果是springboot,因为内置tomcat,所以需要设置
1 | @ServerEndpoint(value = "/webms/{user}") |
index.html,内容如下
1 | <html> |
WeChat Pay
Alipay
v1.5.2