Spring boot application with websocket client only

心不动则不痛 提交于 2019-12-12 04:21:07

问题


I am writing a Spring Boot app that uses spring websocket client with jetty, but I do not need any server functions. How can I switch off Jetty server part, so it won't get activated at startup and does not listen on a port?


回答1:


I'm sorry for the delay in having your question answered.

I also had difficulty finding the answer, so I created a repository in Github with a simple solution, its here:

https://github.com/GleidsonSilva/springboot-ws-client

I hope it is still useful to someone! :)

Cheers!



来源:https://stackoverflow.com/questions/44226412/spring-boot-application-with-websocket-client-only

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!