Error in connecting oracle 11G in localhost using JDBC

前端 未结 2 1433
心在旅途
心在旅途 2021-01-23 17:01
import java.sql.*;

public class one {

    public static void main(String[] args)

    {
            Connection conn=null;
             


        
2条回答
  •  不思量自难忘°
    2021-01-23 17:15

    The connection string is malformed. It should be "jdbc:oracle:thin://@localhost:1521/ecom" Notice the transposition of // and @.

提交回复
热议问题