

JDK1.7 + Tomcat7.0 + MySQL。
1.用Eclipse导入项目
2.新建数据库mydb,导入SQL
image.png
3. 访问项目


超管用户:admin / 1



菜单管理:

默认约定:除了原始的权限代码外,所有页面统一放在这里

本系统推荐采用的框架:EasyUI

本系统已经集成了SpringMVC+Spring+Mybatis框架。根据src的源码目录,放置不同的文件。

这里放置xxxMaper.sql

我已经在配置文件中都配好了,保证可以用!
数据库配置在这里:

本源码还帮您配好了pageHelper,分页查询妥妥的。

前端,除了用EasyUI外,还额外提供了楼主自己写的自用小框架** Very-EasyUI,在easyUI**的基础上更加Easy啦!

具体使用教程可以参考我后续的教程哦~~用了我这个框架,一个页面可能就是这样的:
<!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|系统编号',
'100|code1|发件人',
'100|touserid|收件人',
'120|createTime|发送时间',
'220|content|邮件内容|view',
'80|fj|附件|download',
],
buttons : [
{name:'恢复',actionName:'reGetMessage'},
] ,
search : {
fields : [
'touserid|收件人邮箱号码'
],
}
}
function reGetMessage(){
var selectedRows=$("#dg0").datagrid('getSelections');
var row=selectedRows[0];
if(!row){
M("请选择一封邮件!");
return;
}
post("/t007.do",{isDelete:"0",id:row.id},function(){
$.messager.alert('系统提示','恢复成功');
$("#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>
是的,你没有看错,一个页面就OK啦!!
什么复杂HTML,什么CSS,不存在的!!
效果杠杠的!
这个新框架我后续会持续更新,如有需要,后面做完善了我也会放到github上去。
下载链接:https://pan.baidu.com/s/1KnpM0TdMdZjfOHyMnlGccA
提取码:okbi
网友评论