Comments (2)
详见org.springframework.web.socket.server.support.AbstractHandshakeHandler#initRequestUpgradeStrategy, 当我排除spring-boot-starter-web对tomcat-starter的依赖, websocket便无法成功适配
问题已解决, 在registerWebSocketHandlers中.setHandshakeHandler(new HandshakeHandlerX())即可
from spring-boot-protocol.
确实 你那样也能实现. 我加了个tomcat类, 改成了不需要那样也行.
from spring-boot-protocol.
Related Issues (15)
- spring-netty-example 请求出现异常 HOT 11
- The request could not be processed normally due to ignoring httpcontent HOT 13
- FileUpload OutOfDirectMemoryError HOT 46
- split to core module plus protocol modules HOT 51
- 这种宝藏项目, 怎么才73star, 啊哈哈哈 HOT 1
- superfluous code HOT 1
- 有关206状态码, PARTIAL_CONTENT的行为 HOT 2
- http服务返回null 或者 http对象,如下: HOT 20
- 强啊!!!能不能为 Solon 框架适配一个啊:) HOT 2
- 关于线程池,大佬求解答。。 HOT 3
- servlet mapping HOT 4
- 导入了过期的包 HOT 3
- Cookie name \"{0}\" is a reserved token HOT 3
- Size of HttpObjectAggregator maxContentLength is 0, response 413 for all http requests HOT 8
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from spring-boot-protocol.