JAVA 不定时出现"编辑器未包含main类型"原因?

2024-10-29 01:59:59
推荐回答(1个)
回答1:

final String url = "jdbc:oracle:thin:@localhost:1521:ORCL";
final String user = "store";
final String password = "store_password";
Class.forName("oracle.jdbc.driver.OracleDriver");
Connection con = DriverManager.getConnection(url, user, password);
return con;
}