InetAddress.getLocalHost().getHostName() took 15058 milliseconds to respond. Please verify your network configuration.
1.查看hostname内容
[root@niubi ~]# hostname
niubi
2.查看 /etc/hosts 内容
[root@niubi ~]# cat /etc/hosts
127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4
::1 localhost localhost.localdomain localhost6 localhost6.localdomain6
3.复制hostname内容到 /etc/hosts
[root@niubi ~]#cat /etc/hosts
127.0.0.1 localhost niubi localhost.localdomain localhost4 localhost4.localdomain4
::1 localhost niubi localhost.localdomain localhost6 localhost6.localdomain6
4.重启程序