TCDBServer
1.0.0
最簡單的用戶數據庫管理系統。
二手技術:
TCDBServersrcmaindb.properties更改DAOFactoryImplementationClassName parameter on database.dao.factory.JdbcDaoFactoryTCDBServersrcmaindb.properties (使用jdbc)或hibernate.connection.url的ConnectionURL參數中指示用戶數據庫,名稱和密碼的路徑。 hibernate.connection.username , hibernate.connection.password文件TCDBServersrcmainhibernate.cfg.xml (使用hibernate)mvn install 。結果,將收集戰爭檔案Shift + F10項目啟動role = admin sql-pounding字段/admin/*/admin或單擊對應於菜單項的導航面板上查看所有用戶及其數據的列表/admin/add/admin/edit?id={id} ,其中{id}是變量用戶的ID/admin/delete?id={id} ,{id} - 刪除用戶的ID | ID | 登入 | 密碼 | 電子郵件 | 角色 |
|---|---|---|---|---|
| 1 | Kanyewest | passqwertypass | [email protected] | 行政 |
| 2 | 50cent | fjkngi7gj | [email protected] | 用戶 |
要使用其他DBM,您需要執行多個操作:
public class MyDbUserDao implements UserDao {
@ Override
...
} public class MyDbDaoFactory extends DaoFactory {
@ Override
public UserDao getUserDao () {
if ( userDao == null ) {
userDao = new MyDbUserDao ();
}
return userDao ;
}
}resources/db.properties文件中,指定daofactory實現的使用類,以及在hibernate.cfg.xml文件( db.properties取決於您將使用的內容)指示數據庫設置在springwebapp中實施(但在這裡未實施):