发现InetAddress.getLocalHost()方法特别慢
debug到这个方法,拿到本机名,在hosts文件中添加以下俩行,即可解决
::1 本机名 127.0.0.1 本机名
上一篇 JavaSE(2)
下一篇 Spring AOP异常:Error creating bean with name ‘org.springframework.aop.aspectj.AspectJPointcutAdvisor#0
版权所有 (c)2021-2022 wk8.com.cn
ICP备案号:晋ICP备2021003244-6号