java.lang.AssertionError: Could not obtain the localhost address. The most likely cause is an error in the network configuration of this machine.
解决方案:
vi /etc/hosts
添加:127.0.0.1 主机名
比如我的主机名为 CentOS-1 ,那么vi /etc/hosts 后,将
127.0.0.1 CentOS-1
添加至hosts文件末尾
如果不生效,请重启!!!