我试图从Spring指南运行示例:构建RESTful Web服务.
如果我打开localhost:8080/greeting,它的效果很好.
但是,如果我打开192.168.1.111:8080/greeting或140.112.134.22:8080/greeting,它就无法建立连接,尽管我的计算机实际上在互联网上使用了这两个IP.
有人可以建议我如何在Spring中配置嵌入式Tomcat以接受其他IP地址上的HTTP请求,除了localhost(即127.0.0.1)?
谢谢!:)