0
点赞
收藏
分享

微信扫一扫

基于springboot mybaits的后台管理系统脚手架


 项目介绍

本系统采用springboot脚手架,数据层采用mybatis,数据库使用mysql,

适合选题:适合使用二次开发

项目技术

后端:springboot mybatis
前端:jsp、js、css bootstrap jquery等
开发工具:idea/eclipse
数据库:mysql 5.7
JDK版本:jdk1.8

功能介绍

用户管理:可以对用户进行管理 支持增删改查

角色管理:对角色进行管理,并且分配权限信息

菜单管理:对系统中的菜单进行管理。便于新增编辑

字典管理:对常用信息进行管理操作比如状态/行为等信息

代码生成:可以在线绘制htm 生成代码

效果展示

基于springboot mybaits的后台管理系统脚手架_mysql

基于springboot mybaits的后台管理系统脚手架_mysql_02

​编辑

基于springboot mybaits的后台管理系统脚手架_数据_03

基于springboot mybaits的后台管理系统脚手架_spring_04

​编辑

基于springboot mybaits的后台管理系统脚手架_数据_05

基于springboot mybaits的后台管理系统脚手架_spring_06

​编辑

 核心代码

@Controller
@RequestMapping("/system/actionLog")
public class ActionLogController {

@Autowired
private ActionLogService actionLogService;

/**
* 列表页面
*/
@GetMapping("/index")
@RequiresPermissions("system:actionLog:index")
public String index(Model model, ActionLog actionLog){

// 创建匹配器,进行动态查询匹配
ExampleMatcher matcher = ExampleMatcher.matching();

// 获取日志列表
Example<ActionLog> example = Example.of(actionLog, matcher);
Page<ActionLog> list = actionLogService.getPageList(example);

// 封装数据
model.addAttribute("list",list.getContent());
model.addAttribute("page",list);
return "/system/actionLog/index";
}

/**
* 跳转到详细页面
*/
@GetMapping("/detail/{id}")
@RequiresPermissions("system:actionLog:detail")
public String toDetail(@PathVariable("id") ActionLog actionLog, Model model){
model.addAttribute("actionLog",actionLog);
return "/system/actionLog/detail";
}

/**
* 删除指定的日志
*/
@RequestMapping("/status/delete")
@RequiresPermissions("system:actionLog:delete")
@ResponseBody
public ResultVo delete(
@RequestParam(value = "ids", required = false) Long id){
if (id != null){
actionLogService.deleteId(id);
return ResultVoUtil.success("删除日志成功");
}else {
actionLogService.emptyLog();
return ResultVoUtil.success("清空日志成功");
}
}
}

基于springboot mybaits的后台管理系统脚手架_mysql_07



举报

相关推荐

0 条评论