📄 datasourcetest.java
字号:
/* * 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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -