Take Tomcat as an example, read its document, do it according to its document, but always can't connect, and find a document online, the result is the same
Later, I took the port number when I wrote the code. OK:
Class.Forname ("com.ibm.db2.jdbc.app.db2driver"); conn = drivermanager.getConnection ("JDBC: DB2: //192.168.0.1/dbname", "UserName", "PWD");
Har hate garbage. . .