public static Connection getConnection(){
Properties pro = new Properties();
try {
pro.load(new FileInputStream("dbf.properties"));
} catch (FileNotFoundException e1) {
e1.printStackTrace();
} catch (IOException e1) {
e1.printStackTrace();
}
String dbType = pro.getProperty("db_type");
String driver = pro.getProperty(dbType+".driver");
String url = pro.getProperty(dbType+".url");
String username = pro.getProperty(dbType+".username");
String password = pro.getProperty(dbType+".password");
Connection conn = null;
if(loadDriver(driver)){
try {
conn = DriverManager.getConnection(url,username,password);
System.out.println("获得连接!");
} catch (SQLException e) {
System.out.println("获得连接失败!");
e.printStackTrace();
}
}
return conn;
}
数据库设计过程
1.规划阶段
2.需求分析
3.概念设计
4.逻辑设计
5.物理设计
6.数据库的实现
7.数据库的运行与维护工作
没有合适的资源?快使用搜索试试~ 我知道了~
资源推荐
资源详情
资源评论
收起资源包目录
JAVAOO代码,基于MVC模式的小项目, (227个子文件)
CCB.class 6KB
ICBC.class 6KB
ICBCDao.class 4KB
CCBDao.class 4KB
Request.class 4KB
DBUtil.class 4KB
DispatchSocket.class 3KB
WebAppConfigManager.class 3KB
LogInfo.class 3KB
Configuration.class 2KB
Response.class 2KB
InterestBean.class 2KB
WebApp.class 2KB
LISServer.class 2KB
MyUserDao.class 2KB
Super.class 2KB
BusinessServlet.class 1KB
ServletMapping.class 1KB
MyUser.class 1KB
IDAO.class 331B
.classpath 527B
classPath 68B
stylesheet.css 1KB
login.css 63B
Thumbs.db 27KB
Thumbs.db 12KB
login_top.gif 109KB
login_btm.gif 68KB
nav_active.gif 6KB
login_title.gif 5KB
menu_bg.gif 4KB
login.gif 2KB
nav_bg_active.gif 2KB
nav_bg_inactive.gif 2KB
login_title_bg.gif 2KB
user.gif 2KB
password.gif 1KB
cancel.gif 1KB
lbg.gif 677B
password_bg.gif 669B
username_bg.gif 606B
login_btm_left.gif 501B
login_top_right.gif 496B
login_btm_right.gif 491B
login_top_left.gif 476B
home.gif 441B
bg.gif 292B
login_mid.gif 230B
clock.gif 207B
login_top_mid.gif 138B
inputbg.gif 131B
login_btm_mid.gif 124B
home2.gif 80B
copyright_right.gif 70B
copyright_left.gif 67B
inherit.gif 57B
copyright_mid.gif 50B
InterestBean.html 23KB
Request.html 19KB
ICBC.html 18KB
CCB.html 17KB
Response.html 17KB
Request.html 17KB
index-15.html 17KB
WebApp.html 17KB
Super.html 16KB
MyUser.html 16KB
DispatchSocket.html 16KB
DBUtil.html 15KB
LISServer.html 15KB
ServletMapping.html 15KB
BusinessServlet.html 15KB
WebAppConfigManager.html 15KB
ICBCDao.html 14KB
CCBDao.html 14KB
index-7.html 13KB
InterestBean.html 13KB
Response.html 12KB
LogInfo.html 12KB
index-3.html 10KB
MyUserDao.html 10KB
index-4.html 9KB
index-8.html 9KB
index-17.html 9KB
BusinessServlet.html 9KB
WebAppConfigManager.html 9KB
WebApp.html 9KB
index-9.html 8KB
index-12.html 8KB
help-doc.html 8KB
overview-tree.html 8KB
index-1.html 8KB
index-19.html 8KB
Super.html 8KB
index-14.html 8KB
index-6.html 8KB
ServletMapping.html 8KB
constant-values.html 8KB
index-10.html 8KB
package-use.html 8KB
共 227 条
- 1
- 2
- 3
资源评论
- zhaolinchuan2012-07-11说实话, 很垃圾的东西,乱七八糟的,不是mvc模式 看到java 代码了 但是jsp页面一个都木有啊 程序员何苦为难程序员
DreanLover
- 粉丝: 0
- 资源: 3
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功