今天遇到一个问题,linux连数据库时报错:
[/home/backend/uc/conf/datasource.xml]
2013-05-13 11:33:51,190-[INFO][C3P0ImplUtils]-Failed to get local InetAddress for VMID. This is unlikely to matter. At all. We'll add some extra randomness
java.net.UnknownHostException: localhost.localdomain: localhost.localdomain: 未知的名称或服务
hosts文件映射: 127.0.0.1 localhost.localdomain(主机名.域名)---解析到本机