@RequestMapping( value = "/getIp", method = RequestMethod.GET )
@CrossOrigin
@ResponseBody
public String getIp( HttpServletRequest request ) {
// 获取请求的 IP 地址
String ipAddress = request.getRemoteAddr();
return ipAddress;
}