image.png
image.png
JDK1.7 + Tomcat7.0 + MySQL萧恕。
1.用Eclipse導(dǎo)入項(xiàng)目
2.新建數(shù)據(jù)庫mydb,導(dǎo)入SQL
image.png
image.png
3. 訪問項(xiàng)目
image.png
image.png
超管用戶:admin / 1
image.png
image.png
image.png
菜單管理:
image.png
默認(rèn)約定:除了原始的權(quán)限代碼外,所有頁面統(tǒng)一放在這里
image.png
本系統(tǒng)推薦采用的框架:EasyUI
image.png
本系統(tǒng)已經(jīng)集成了SpringMVC+Spring+Mybatis框架豆励。根據(jù)src的源碼目錄良蒸,放置不同的文件剿吻。
image.png
這里放置xxxMaper.sql
image.png
我已經(jīng)在配置文件中都配好了,保證可以用晰搀!
數(shù)據(jù)庫配置在這里:
image.png
本源碼還幫您配好了pageHelper,分頁查詢妥妥的鳞疲。
image.png
前端,除了用EasyUI外腺毫,還額外提供了樓主自己寫的自用小框架** Very-EasyUI,在easyUI**的基礎(chǔ)上更加Easy啦急黎!
image.png
具體使用教程可以參考我后續(xù)的教程哦~~用了我這個(gè)框架,一個(gè)頁面可能就是這樣的:
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<script>
var grid0 = {
title : '回收站' ,
url : '/t006.do?isDelete=1&shouxin=1',
singleSelect : true ,
hasSelect : true ,
paging : true ,
fields : [
'50|id|系統(tǒng)編號(hào)',
'100|code1|發(fā)件人',
'100|touserid|收件人',
'120|createTime|發(fā)送時(shí)間',
'220|content|郵件內(nèi)容|view',
'80|fj|附件|download',
],
buttons : [
{name:'恢復(fù)',actionName:'reGetMessage'},
] ,
search : {
fields : [
'touserid|收件人郵箱號(hào)碼'
],
}
}
function reGetMessage(){
var selectedRows=$("#dg0").datagrid('getSelections');
var row=selectedRows[0];
if(!row){
M("請(qǐng)選擇一封郵件!");
return;
}
post("/t007.do",{isDelete:"0",id:row.id},function(){
$.messager.alert('系統(tǒng)提示','恢復(fù)成功');
$("#dg0").datagrid('load');
});
}
</script>
<style>
</style>
<script type="text/javascript">
</script>
</head>
<body style="margin: 1px;" >
<div id="grid0" style="height:500px;width:100%;"></div>
</body>
</pre>
是的,你沒有看錯(cuò)删铃,一個(gè)頁面就OK啦A匝洹腐魂!
什么復(fù)雜HTML蛔屹,什么CSS,不存在的S豪嗽!
效果杠杠的!
這個(gè)新框架我后續(xù)會(huì)持續(xù)更新,如有需要框舔,后面做完善了我也會(huì)放到github上去刘绣。
下載鏈接:https://pan.baidu.com/s/1KnpM0TdMdZjfOHyMnlGccA
提取碼:okbi