随笔分类 - web
摘要:rest接口第几次请求数 % 服务器集群总数 = 实际下标服务器位置下标,每次服务重启后,rest接口计数从1开始 List<ServiceInstance> instances = discoveryClient.getInstances("SERVER-APPLICATION-NAME"); L
阅读全文
摘要:<%String path = request.getContextPath();String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";%>
阅读全文