No suitable driver found for jdbc:oracle:thin:@192.168.7.146:1521:oracle
The reasons for this error are mainly the following:
1. URL configuration error (similar to the following)
2. JDK version, JDBC version, and error caused by inconsistent database version.
The first thing to ensure that your database supports the corresponding JDBC version, and then according to the JDBC version supported by the database, determine the JDK version to use, only three are consistent, can guarantee the correctness of the connection.
Change to the applicable version, if you feel the hassle, you can replace the jar package (not guaranteed to be completely successful, the general database is backward compatible with JDBC, so the key depends on the JDK version and the JDBC driver version is consistent).
The adaptation of JDBC between different versions
Project start error: No suitable driver found for jdbc:oracle:thin:@192.168.7.146:1521:oracle