Caused by: java.sql.SQLException: Io 异常: The Network Adapter could not esta(2)
本篇是接上篇的(1)而言的。
(1) 在找问题根源的时候,想到没有更改过applicationContext.xml,而且所以就没有向配置文件着手来做一直在坚持Java代码是否有误,在反复确定Java代码无误后,才抱着试一试的态度,取查看了applicationContext.xml,发现有关数据源的链接是发生改变了(其它人在用我的环境做测试,没有告知他改过该文件)
出现问题的配置如下:
<property name="driverUrl" value="jdbc:oracle:thin:@(DESCRIPTION =(ADDRESS = (PROTOCOL = TCP)(HOST = 10.88.49.111)(PORT = 1521))(ADDRESS = (PROTOCOL = TCP)(HOST = 10.88.49.113)(PORT = 1521))(ADDRESS = (PROTOCOL = TCP)(HOST = 10.88.49.122)(PORT = 1521))(LOAD_BALANCE = yes)(CONNECT_DATA =(SERVER = DEDICATED)(SERVICE_NAME = dev)))" />
<property name="driverUrl" value="jdbc:oracle:thin:@(DESCRIPTION =(ADDRESS = (PROTOCOL = TCP)(HOST = 10.14.5.194)(PORT = 1521))(CONNECT_DATA =(SERVER = DEDICATED)(SERVICE_NAME = support)))" />