寻找有关如何使用 Spring 作为服务器启动的信息
Looking for info on how to use Spring boot as a server
所以环顾网络,我没有找到任何关于如何使用 Spring 引导创建服务器的好文档,该服务器可以通过 Telnet
等程序访问
它是否仍然以经典方式完成,只需创建一个新的 ServerSocket
并收听它,或者是否有一种很好的方法可以在 Spring 中配置这样的服务器?
很乐意至少获得一些参考资料的链接。
如果您想创建某种远程 shell 服务器,我会开始研究 spring 集成并使用 spring integration documentation 中第 29.7 节中记录的 tcp 入站网关.
我想你在找 http://docs.spring.io/spring-boot/docs/current/reference/htmlsingle/#production-ready-connecting-to-the-remote-shell where you can define own commands like here
或http://docs.spring.io/spring-boot/docs/current/reference/htmlsingle/#production-ready-metrics
更新:对于 2 人游戏,hrrgttnchml 答案可能更好。
所以环顾网络,我没有找到任何关于如何使用 Spring 引导创建服务器的好文档,该服务器可以通过 Telnet
等程序访问
它是否仍然以经典方式完成,只需创建一个新的 ServerSocket
并收听它,或者是否有一种很好的方法可以在 Spring 中配置这样的服务器?
很乐意至少获得一些参考资料的链接。
如果您想创建某种远程 shell 服务器,我会开始研究 spring 集成并使用 spring integration documentation 中第 29.7 节中记录的 tcp 入站网关.
我想你在找 http://docs.spring.io/spring-boot/docs/current/reference/htmlsingle/#production-ready-connecting-to-the-remote-shell where you can define own commands like here
或http://docs.spring.io/spring-boot/docs/current/reference/htmlsingle/#production-ready-metrics
更新:对于 2 人游戏,hrrgttnchml 答案可能更好。