import java.sql.Connection;
import java.sql.DriverManager;
public class DB
{
public static Connection getConnection()
{
Connection con=null;
try
{
Class.forName("oracle.jdbc.driver.OracleDriver");
con=DriverManager.getConnection("jdbc:oracle:thin:@venkat:1521:xe");
}
catch(Exception e){System.out.println(e);}
return con;
}
}
我收到此错误,java.sql.SQLException:指定了无效的Oracle URL