获取服务器ip @return
()
| 573 | * @return |
| 574 | */ |
| 575 | public static String getIp(){ |
| 576 | InetAddress address = null; |
| 577 | String ip = ""; |
| 578 | try { |
| 579 | address = InetAddress.getLocalHost(); |
| 580 | ip = address.getHostAddress(); |
| 581 | } catch (UnknownHostException e) { |
| 582 | e.printStackTrace(); |
| 583 | } |
| 584 | return ip; |
| 585 | } |
| 586 | |
| 587 | /** |
| 588 | * 根据身份证号获取年龄 |
nothing calls this directly
no outgoing calls
no test coverage detected