问题
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