datasourcetest.java
来自「这是一本描述JDBC数据库的书籍」· Java 代码 · 共 35 行
JAVA
35 行
/* * DataSourceTest.java * * Created on June 7, 2005, 9:17 PM * * To change this template, choose Tools | Options and locate the template under * the Source Creation and Management node. Right-click the template and choose * Open. You can then make changes to the template in the Source Editor. */package ch06;import oracle.jdbc.pool.OracleDataSource;/** * * @author kevin */public class DataSourceTest { /** Creates a new instance of DataSourceTest */ public DataSourceTest() { } public static void main(String[] args){ try{ OracleDataSource ods = new OracleDataSource(); ods.setServerName("localhost"); ods.setDatabaseName("orcl"); }catch(Exception e){ } } }
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?