www说
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;}