简体   繁体   English

使用tcp / ip监视器监视我的日食上的休息电话

[英]monitor rest call on my eclipse using the tcp/ip monitor

I will be happy if someone can help me to understand: 如果有人可以帮助我理解,我将很高兴:

I have a spring application ruining on tomcat. 我在tomcat上破坏了spring应用程序。 From this application I'm doing rest calls (using restTemplate) to a remote application (lets say : http://connect2.myremoteApp.com ). 从这个应用程序中,我正在使用远程模板(使用restTemplate)进行REST调用(让我们说: http ://connect2.myremoteApp.com)。

I would like to monitor this call on my eclipse using the tcp/ip monitor. 我想使用tcp / ip监视器在我的日食上监视此呼叫。 I am trying to understand how to configure this : 我试图了解如何配置此:

Local monitoring port : ???? 本地监控端口:???? - this I don't understand - what port to set ? -我不知道-设置哪个端口?

Please advice 请指教

Thank you 谢谢

You would set your local monitoring port to whatever you like that's available. 您可以将本地监视端口设置为可用的任何端口。 I use 8081 我用8081

Local monitoring port: 8081 Hostname: connect2.myremoteApp.com Port: 80 (Probably 80 since you're trying to get an http website) 本地监视端口:8081主机名:connect2.myremoteApp.com端口:80(可能是80,因为您试图获取http网站)

Then in your application have it try to connect to localhost:8081 instead of connect2.myremoteApp.com that should forward it to the correct location and log it. 然后在您的应用程序中尝试连接到localhost:8081而不是connect2.myremoteApp.com,后者应将其转发到正确的位置并进行记录。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM