Linux环境报java.net.UnknownHostException: oracledb.sys.iflashbuy.com,原因为Linux下无法解析oracledb.sys.iflashbuy.com,解决方法为:修改 /etc/hosts

vi /etc/hosts进行编辑,添加红色部分

127.0.0.1   localhost localhost.localdomain localhost4 localhost4.localdomain4
::1 localhost localhost.localdomain localhost6 localhost6.localdomain6
192.168.5.110 oracledb.sys.iflashbuy.com
05-11 11:15