資源簡介
使用 JSP+Servlet 實現(xiàn)理財產(chǎn)品信息管理系統(tǒng),MySQL5.5 作為后臺數(shù)據(jù)庫,實現(xiàn)查看理財 和增加理財功能,具體要求如下: 打開首頁頁面,默認(rèn)顯示所有記錄,且按發(fā)售起始日降序排序,查詢列表使用樣式實現(xiàn)標(biāo)題字 體、標(biāo)題背景色和隔行變色效果
代碼片段和文件信息
package?cn.jbit.Financing.dao;
import?java.sql.Connection;
import?java.sql.PreparedStatement;
import?java.sql.ResultSet;
import?java.sql.SQLException;
import?cn.jbit.Financing.util.DatabaseUtil;
/**
?*?執(zhí)行數(shù)據(jù)庫操作的工具類。
?*/
public?class?baseDao?{
private?Connection?conn;
/**
?*?增、刪、改操作的方法
?*?
?*?@param?sql???sql語句
?*?@param?prams?參數(shù)數(shù)組
?*?@return?執(zhí)行結(jié)果
?*?@throws?SQLException
?*/
protected?int?executeUpdate(String?sql?object...?params)?throws?SQLException?{
int?result?=?0;
conn=DatabaseUtil.getConnection();
PreparedStatement?pstmt?=?null;
try?{
pstmt?=?conn.prepareStatement(sql);
for?(int?i?=?0;?i? pstmt.setobject(i?+?1?params[i]);
}
result?=?pstmt.executeUpdate();
}?catch?(SQLException?e)?{
e.printStackTrace();
throw?e;
}?finally?{
DatabaseUtil.closeAll(null?pstmt?null);
}
return?result;
}
/**
?*?查詢操作的方法
?*?
?*?@param?sql????sql語句
?*?@param?params?參數(shù)數(shù)組
?*
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????目錄???????????0??2018-09-25?14:15??FinancingProduct\
?????文件????????1219??2018-09-25?08:49??FinancingProduct\.classpath
?????文件????????1066??2018-09-24?19:52??FinancingProduct\.project
?????目錄???????????0??2018-09-24?20:23??FinancingProduct\.settings\
?????文件?????????564??2018-09-24?19:52??FinancingProduct\.settings\.jsdtscope
?????文件?????????210??2018-09-26?21:51??FinancingProduct\.settings\org.eclipse.core.resources.prefs
?????文件?????????364??2018-09-24?19:52??FinancingProduct\.settings\org.eclipse.jdt.core.prefs
?????文件?????????587??2018-09-24?20:23??FinancingProduct\.settings\org.eclipse.wst.common.component
?????文件?????????414??2018-09-24?19:52??FinancingProduct\.settings\org.eclipse.wst.common.project.facet.core.xm
?????文件??????????49??2018-09-24?19:52??FinancingProduct\.settings\org.eclipse.wst.jsdt.ui.superType.container
?????文件???????????6??2018-09-24?19:52??FinancingProduct\.settings\org.eclipse.wst.jsdt.ui.superType.name
?????目錄???????????0??2018-09-25?14:15??FinancingProduct\WebRoot\
?????目錄???????????0??2018-09-24?19:52??FinancingProduct\WebRoot\me
?????文件??????????39??2018-09-24?19:52??FinancingProduct\WebRoot\me
?????目錄???????????0??2018-09-24?19:52??FinancingProduct\WebRoot\WEB-INF\
?????目錄???????????0??2018-10-18?16:14??FinancingProduct\WebRoot\WEB-INF\classes\
?????目錄???????????0??2018-10-18?16:14??FinancingProduct\WebRoot\WEB-INF\classes\cn\
?????目錄???????????0??2018-10-18?16:14??FinancingProduct\WebRoot\WEB-INF\classes\cn\jbit\
?????目錄???????????0??2018-10-18?16:14??FinancingProduct\WebRoot\WEB-INF\classes\cn\jbit\Financing\
?????目錄???????????0??2018-10-18?16:14??FinancingProduct\WebRoot\WEB-INF\classes\cn\jbit\Financing\dao\
?????文件????????1865??2018-10-18?16:14??FinancingProduct\WebRoot\WEB-INF\classes\cn\jbit\Financing\dao\ba
?????文件?????????484??2018-10-18?16:14??FinancingProduct\WebRoot\WEB-INF\classes\cn\jbit\Financing\dao\FinancingDao.class
?????目錄???????????0??2018-10-18?16:14??FinancingProduct\WebRoot\WEB-INF\classes\cn\jbit\Financing\dao\impl\
?????文件????????4531??2018-10-18?17:37??FinancingProduct\WebRoot\WEB-INF\classes\cn\jbit\Financing\dao\impl\FinancingDaoImpl.class
?????目錄???????????0??2018-10-18?16:14??FinancingProduct\WebRoot\WEB-INF\classes\cn\jbit\Financing\entity\
?????文件????????2173??2018-10-18?16:35??FinancingProduct\WebRoot\WEB-INF\classes\cn\jbit\Financing\entity\Financing.class
?????目錄???????????0??2018-10-18?16:14??FinancingProduct\WebRoot\WEB-INF\classes\cn\jbit\Financing\service\
?????文件?????????500??2018-10-18?16:14??FinancingProduct\WebRoot\WEB-INF\classes\cn\jbit\Financing\service\FinancingService.class
?????目錄???????????0??2018-10-18?16:14??FinancingProduct\WebRoot\WEB-INF\classes\cn\jbit\Financing\service\impl\
?????文件????????1377??2018-10-18?16:14??FinancingProduct\WebRoot\WEB-INF\classes\cn\jbit\Financing\service\impl\FinancingServiceImpl.class
?????目錄???????????0??2018-10-18?16:14??FinancingProduct\WebRoot\WEB-INF\classes\cn\jbit\Financing\servlet\
............此處省略41個文件信息
評論
共有 條評論