資源簡介
java實現圖書管理系統 源碼
登陸賬號:20170001 密碼 111111
調試步驟:
1.在mysql 創建 library數據庫
2.執行 library.sql腳本
3.修改如下數據庫連接串為你本機信息 即可
代碼片段和文件信息
package?com.book.dao;
import?org.springframework.beans.factory.annotation.Autowired;
import?org.springframework.jdbc.core.JdbcTemplate;
import?org.springframework.stereotype.Repository;
@Repository
public?class?AdminDao?{
????private?JdbcTemplate?jdbcTemplate;
????@Autowired
????public?void?setJdbcTemplate(JdbcTemplate?jdbcTemplate)?{
????????this.jdbcTemplate?=?jdbcTemplate;
????}
????private?static?final?String?MATCH_ADMIN_SQL=“SELECT?COUNT(*)?FROM?admin?where?admin_id?=???and?password?=???“;
????private?static?final?String?RE_PASSWORD_SQL=“UPDATE?admin?set?password?=???where?admin_id?=???“;
????private?static?final?String?GET_PASSWD_SQL=“SELECT?password?from?admin?where?admin_id?=??“;
????public?int?getMatchCount(int?adminIdString?password){
????????return?jdbcTemplate.queryForO
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件???????8196??2018-05-21?14:42??Books-Management-System\.DS_Store
?????文件????????287??2018-05-20?21:02??Books-Management-System\.git\config
?????文件?????????73??2018-05-20?21:02??Books-Management-System\.git\desc
?????文件?????????23??2018-05-20?21:02??Books-Management-System\.git\HEAD
?????文件????????478??2018-05-20?21:02??Books-Management-System\.git\hooks\applypatch-msg.sample
?????文件????????896??2018-05-20?21:02??Books-Management-System\.git\hooks\commit-msg.sample
?????文件????????189??2018-05-20?21:02??Books-Management-System\.git\hooks\post-update.sample
?????文件????????424??2018-05-20?21:02??Books-Management-System\.git\hooks\pre-applypatch.sample
?????文件???????1642??2018-05-20?21:02??Books-Management-System\.git\hooks\pre-commit.sample
?????文件???????1348??2018-05-20?21:02??Books-Management-System\.git\hooks\pre-push.sample
?????文件???????4898??2018-05-20?21:02??Books-Management-System\.git\hooks\pre-reba
?????文件???????1239??2018-05-20?21:02??Books-Management-System\.git\hooks\prepare-commit-msg.sample
?????文件???????3610??2018-05-20?21:02??Books-Management-System\.git\hooks\update.sample
?????文件???????7450??2018-05-21?15:22??Books-Management-System\.git\index
?????文件????????240??2018-05-20?21:02??Books-Management-System\.git\info\exclude
?????文件????????202??2018-05-20?21:02??Books-Management-System\.git\logs\HEAD
?????文件????????202??2018-05-20?21:02??Books-Management-System\.git\logs\refs\heads\master
?????文件????????202??2018-05-20?21:02??Books-Management-System\.git\logs\refs\remotes\origin\HEAD
?????文件?????????46??2018-05-20?21:02??Books-Management-System\.git\ob
?????文件????????148??2018-05-20?21:02??Books-Management-System\.git\ob
?????文件???????1355??2018-05-20?21:02??Books-Management-System\.git\ob
?????文件????????322??2018-05-20?21:02??Books-Management-System\.git\ob
?????文件????????552??2018-05-20?21:02??Books-Management-System\.git\ob
?????文件????????745??2018-05-20?21:02??Books-Management-System\.git\ob
?????文件????????253??2018-05-20?21:02??Books-Management-System\.git\ob
?????文件????????997??2018-05-20?21:02??Books-Management-System\.git\ob
?????文件?????340882??2018-05-20?21:02??Books-Management-System\.git\ob
?????文件????????181??2018-05-20?21:02??Books-Management-System\.git\ob
?????文件?????914265??2018-05-20?21:02??Books-Management-System\.git\ob
?????文件???????2058??2018-05-20?21:02??Books-Management-System\.git\ob
............此處省略462個文件信息
評論
共有 條評論