資源簡介
基于javaweb,使用三層分層結構,能夠實現對商品,用戶的一系列增刪改查功能。
代碼片段和文件信息
package?dao;
import?org.springframework.jdbc.core.BeanPropertyRowMapper;
import?org.springframework.jdbc.core.JdbcTemplate;
import?pojo.Goods;
import?utils.JDBCUtils;
import?java.util.List;
import?java.util.Map;
public?class?AdminDao?{
????//創建一個JdbcTemplate對象?用來實現增刪該查功能
????JdbcTemplate?jdbcTemplate?=?new?JdbcTemplate(JDBCUtils.getDataSource());
????/**
?????*?創建validateLogin方法用來判斷是否存在?對應的用戶和密碼?通過返回int類型數據的個數
?????*?@param?username?用戶姓名
?????*?@param?password?密碼
?????*?@return?受影響的個數
?????*/
????public?int?validateLogin(String?usernameString?password){
????????String?sql?=?“select?count(1)?from?admin?where?username?=???and?password?=??“;
????????return?jdbcTemplate.queryForobject(sqlInteger.classusernamepassword);
????}
}
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件????????521??2019-09-07?15:57??Day05-Test\.idea\artifacts\Day05_Test_war_exploded.xm
?????文件?????????67??2019-08-28?16:49??Day05-Test\.idea\dataSources\4b627f69-6921-4199-83bd-6c73f5fa43a0\storage_v2\_src_\schema\db_fengmi.Na0vBA.me
?????文件??????51004??2019-09-23?16:23??Day05-Test\.idea\dataSources\4b627f69-6921-4199-83bd-6c73f5fa43a0.xm
?????文件???????1264??2019-08-28?16:56??Day05-Test\.idea\dataSources.local.xm
?????文件???????1631??2019-08-26?19:34??Day05-Test\.idea\dataSources.xm
?????文件???????1444??2019-08-25?16:04??Day05-Test\.idea\inspectionProfiles\Project_Default.xm
?????文件????????290??2019-08-26?07:49??Day05-Test\.idea\libraries\lib.xm
?????文件????????294??2019-09-02?20:26??Day05-Test\.idea\libraries\lib__2_.xm
?????文件????????294??2019-09-05?17:54??Day05-Test\.idea\libraries\lib__3_.xm
?????文件????????295??2019-09-05?14:53??Day05-Test\.idea\libraries\lib___2_.xm
?????文件????????278??2019-08-25?16:04??Day05-Test\.idea\misc.xm
?????文件????????273??2019-09-07?15:57??Day05-Test\.idea\modules.xm
?????文件??????52973??2019-09-27?09:55??Day05-Test\.idea\workspace.xm
?????文件???????1845??2019-09-05?17:54??Day05-Test\FengMiProject.iml
?????文件???????8463??2019-09-09?16:29??Day05-Test\out\artifacts\Day05_Test_war_exploded\after\add.jsp
?????文件??????26132??2016-07-25?23:51??Day05-Test\out\artifacts\Day05_Test_war_exploded\after\css\bootstrap-theme.css
?????文件?????146010??2016-07-25?23:51??Day05-Test\out\artifacts\Day05_Test_war_exploded\after\css\bootstrap.css
?????文件????????900??2019-09-03?17:41??Day05-Test\out\artifacts\Day05_Test_war_exploded\after\css\st
?????文件??????20127??2016-07-25?23:51??Day05-Test\out\artifacts\Day05_Test_war_exploded\after\fonts\glyphicons-halflings-regular.eot
?????文件?????108738??2016-07-25?23:51??Day05-Test\out\artifacts\Day05_Test_war_exploded\after\fonts\glyphicons-halflings-regular.svg
?????文件??????45404??2016-07-25?23:51??Day05-Test\out\artifacts\Day05_Test_war_exploded\after\fonts\glyphicons-halflings-regular.ttf
?????文件??????23424??2016-07-25?23:51??Day05-Test\out\artifacts\Day05_Test_war_exploded\after\fonts\glyphicons-halflings-regular.woff
?????文件??????18028??2016-07-25?23:51??Day05-Test\out\artifacts\Day05_Test_war_exploded\after\fonts\glyphicons-halflings-regular.woff2
?????文件??????14138??2019-09-07?19:40??Day05-Test\out\artifacts\Day05_Test_war_exploded\after\goodsManage.jsp
?????文件??????22620??2019-08-25?23:12??Day05-Test\out\artifacts\Day05_Test_war_exploded\after\img\1.jpg
?????文件?????278355??2019-08-25?23:13??Day05-Test\out\artifacts\Day05_Test_war_exploded\after\img\2.jpg
?????文件?????909010??2019-08-25?23:09??Day05-Test\out\artifacts\Day05_Test_war_exploded\after\img\3.jpg
?????文件?????694344??2019-08-25?23:10??Day05-Test\out\artifacts\Day05_Test_war_exploded\after\img\4.jpg
?????文件??????69707??2016-07-25?23:51??Day05-Test\out\artifacts\Day05_Test_war_exploded\after\js\bootstrap.js
?????文件??????37045??2016-07-25?23:51??Day05-Test\out\artifacts\Day05_Test_war_exploded\after\js\bootstrap.min.js
............此處省略521個文件信息
評論
共有 條評論