如何使用Spring RestTemplate获取请求来自的机器的IP

时间:2016-05-13 07:42:34

标签: java spring spring-mvc spring-boot resttemplate

是否可以使用Spring RestTemplate获取请求来自的机器的IP。 我有一个Spring Boot Web应用程序,我想在其中记录来自机器IP的所有请求。这有可能吗?

此外,是否可以获取客户端用户名。

0 个答案:

没有答案