/etc/sysconfig/network-scripts/ifcfg-ens33
文件,将BOOTPROTO
设置为dhcp
即可。/etc/sysconfig/network-scripts/ifcfg-ens33
文件,将BOOTPROTO
设置为dhcp
即可。java,import java.sql.Connection;,import java.sql.DriverManager;,import java.sql.SQLException;,,public class OracleDBConnection {, public static void main(String[] args) {, String url = "jdbc:oracle:thin:@localhost:1521:xe";, String user = "username";, String password = "password";, , try {, Connection connection = DriverManager.getConnection(url, user, password);, System.out.println("Database connected successfully");, connection.close();, } catch (SQLException e) {, System.out.println("Failed to connect to database");, e.printStackTrace();, }, },},
``Powered By Z-BlogPHP 1.7.3