The Network Adapter could not establish the connection.java.net.ConnectException: Connection refused: connect 报错
Oracle监听程序没有启动也会报这个错。
报错是在idea连接Oracle数据库的时候。查了网上的办法,发现8080端口并没有被占用。最后想起来是运行tomcat时因为端口占用把Oracle监听器停用了。
The Network Adapter could not establish the connection.java.net.ConnectException: Connection refused: connect 报错
Oracle监听程序没有启动也会报这个错。
报错是在idea连接Oracle数据库的时候。查了网上的办法,发现8080端口并没有被占用。最后想起来是运行tomcat时因为端口占用把Oracle监听器停用了。