基于SpringBoot+Vue的校园博客管理系统设计与实现毕设(文档+源码)

      

目录

一、项目介绍

二、开发环境

三、功能介绍

四、核心代码

五、效果图

六、源码获取:


        大家好呀,我是一个混迹在java圈的码农。今天要和大家分享的是 一款基于SpringBoot+Vue的校园博客管理系统,项目源码请点击文章末尾联系我哦~目前有各类成品 毕设 JavaWeb  SSM SpringBoot等等项目框架,源码丰富,欢迎咨询。 

一、项目介绍

        随着现在网络的快速发展,网上管理系统也逐渐快速发展起来,网上管理模式很快融入到了许多网站的之中,随之就产生了“校园博客系统”,这样就让校园博客系统更加方便简单。

        对于本校园博客系统的设计来说,系统开发主要是采用java语言技术,在整个系统的设计中应用MySQL数据库来完成数据存储,具体根据校园博客系统的现状来进行开发的,具体根据现实的需求来实现校园博客系统网络化的管理,各类信息有序地进行存储,进入校园博客系统页面之后,方可开始操作主控界面,主要功能包括管理员:首页、个人中心博主管理、文章分类管理文章信息管理举报投诉管理系统管理,博主;首页、个人中心、文章信息管理举报投诉管理、我的收藏管理,前台首页;首页、文章信息、系统公告、个人中心、后台管理、在线客服等功能。

        本论文主要讲述了校园博客系统开发背景,该系统它主要是对需求分析和功能需求做了介绍,并且对系统做了详细的测试和总结。具体从业务流程、数据库设计和系统结构等多方面的问题。望能利用先进的计算机技术和网络技术来改变目前的校园博客系统状况,提高管理效率。

关键词:校园博客系统Spring Boot框架mysql数据库

二、开发环境

开发系统:Windows
JDK版本:Java JDK1.8(推荐)
开发工具:IDEA/MyEclipse(推荐IDEA)
数据库版本: mysql8.0(推荐)
数据库可视化工具: navicat
服务器:SpringBoot自带 apache tomcat
框架:springboot,vue

三、功能介绍

        管理员对博主管理获取博主账号、博主姓名、头像、性别、年龄、手机、邮箱并进行详情、删除、修改。管理员对文章分类管理查看分类等信息进行详情、删除、修改操作。管理员对系统公告进行编辑标题、简介、图片等信息进行详情、删除、修改操作。管理员对文章信息管理进行编辑文章标题、分类、图片、发布日期、博主账号、邮箱等信息进行详情、删除、修改操作。博主对举报投诉管理进行查看标题、类型、图片、举报内容、举报时间、博主账号、手机、审核回复、审核状态、审核并进行详情、修改操作。校园博客系统,在系统首页可以查看首页、文章信息、系统公告、个人中心、后台管理、在线客服等内容。

四、核心代码


/**
 * 举报投诉
 * 后端接口
 * @author 
 * @email 
 */
@RestController
@RequestMapping("/jubaotousu")
public class JubaotousuController {
    @Autowired
    private JubaotousuService jubaotousuService;
    


    /**
     * 后端列表
     */
    @RequestMapping("/page")
    public R page(@RequestParam Map<String, Object> params,JubaotousuEntity jubaotousu,
		HttpServletRequest request){
		String tableName = request.getSession().getAttribute("tableName").toString();
		if(tableName.equals("bozhu")) {
			jubaotousu.setBozhuzhanghao((String)request.getSession().getAttribute("username"));
		}
        EntityWrapper<JubaotousuEntity> ew = new EntityWrapper<JubaotousuEntity>();
		PageUtils page = jubaotousuService.queryPage(params, MPUtil.sort(MPUtil.between(MPUtil.likeOrEq(ew, jubaotousu), params), params));

        return R.ok().put("data", page);
    }
    
    /**
     * 前端列表
     */
    @RequestMapping("/list")
    public R list(@RequestParam Map<String, Object> params,JubaotousuEntity jubaotousu, HttpServletRequest request){
        EntityWrapper<JubaotousuEntity> ew = new EntityWrapper<JubaotousuEntity>();
		PageUtils page = jubaotousuService.queryPage(params, MPUtil.sort(MPUtil.between(MPUtil.likeOrEq(ew, jubaotousu), params), params));
        return R.ok().put("data", page);
    }

	/**
     * 列表
     */
    @RequestMapping("/lists")
    public R list( JubaotousuEntity jubaotousu){
       	EntityWrapper<JubaotousuEntity> ew = new EntityWrapper<JubaotousuEntity>();
      	ew.allEq(MPUtil.allEQMapPre( jubaotousu, "jubaotousu")); 
        return R.ok().put("data", jubaotousuService.selectListView(ew));
    }

	 /**
     * 查询
     */
    @RequestMapping("/query")
    public R query(JubaotousuEntity jubaotousu){
        EntityWrapper< JubaotousuEntity> ew = new EntityWrapper< JubaotousuEntity>();
 		ew.allEq(MPUtil.allEQMapPre( jubaotousu, "jubaotousu")); 
		JubaotousuView jubaotousuView =  jubaotousuService.selectView(ew);
		return R.ok("查询举报投诉成功").put("data", jubaotousuView);
    }
	
    /**
     * 后端详情
     */
    @RequestMapping("/info/{id}")
    public R info(@PathVariable("id") Long id){
        JubaotousuEntity jubaotousu = jubaotousuService.selectById(id);
        return R.ok().put("data", jubaotousu);
    }

    /**
     * 前端详情
     */
    @RequestMapping("/detail/{id}")
    public R detail(@PathVariable("id") Long id){
        JubaotousuEntity jubaotousu = jubaotousuService.selectById(id);
        return R.ok().put("data", jubaotousu);
    }
    



    /**
     * 后端保存
     */
    @RequestMapping("/save")
    public R save(@RequestBody JubaotousuEntity jubaotousu, HttpServletRequest request){
    	jubaotousu.setId(new Date().getTime()+new Double(Math.floor(Math.random()*1000)).longValue());
    	//ValidatorUtils.validateEntity(jubaotousu);
        jubaotousuService.insert(jubaotousu);
        return R.ok();
    }
    
    /**
     * 前端保存
     */
    @RequestMapping("/add")
    public R add(@RequestBody JubaotousuEntity jubaotousu, HttpServletRequest request){
    	jubaotousu.setId(new Date().getTime()+new Double(Math.floor(Math.random()*1000)).longValue());
    	//ValidatorUtils.validateEntity(jubaotousu);
        jubaotousuService.insert(jubaotousu);
        return R.ok();
    }

    /**
     * 修改
     */
    @RequestMapping("/update")
    public R update(@RequestBody JubaotousuEntity jubaotousu, HttpServletRequest request){
        //ValidatorUtils.validateEntity(jubaotousu);
        jubaotousuService.updateById(jubaotousu);//全部更新
        return R.ok();
    }
    

    /**
     * 删除
     */
    @RequestMapping("/delete")
    public R delete(@RequestBody Long[] ids){
        jubaotousuService.deleteBatchIds(Arrays.asList(ids));
        return R.ok();
    }
    
    /**
     * 提醒接口
     */
	@RequestMapping("/remind/{columnName}/{type}")
	public R remindCount(@PathVariable("columnName") String columnName, HttpServletRequest request, 
						 @PathVariable("type") String type,@RequestParam Map<String, Object> map) {
		map.put("column", columnName);
		map.put("type", type);
		
		if(type.equals("2")) {
			SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");
			Calendar c = Calendar.getInstance();
			Date remindStartDate = null;
			Date remindEndDate = null;
			if(map.get("remindstart")!=null) {
				Integer remindStart = Integer.parseInt(map.get("remindstart").toString());
				c.setTime(new Date()); 
				c.add(Calendar.DAY_OF_MONTH,remindStart);
				remindStartDate = c.getTime();
				map.put("remindstart", sdf.format(remindStartDate));
			}
			if(map.get("remindend")!=null) {
				Integer remindEnd = Integer.parseInt(map.get("remindend").toString());
				c.setTime(new Date());
				c.add(Calendar.DAY_OF_MONTH,remindEnd);
				remindEndDate = c.getTime();
				map.put("remindend", sdf.format(remindEndDate));
			}
		}
		
		Wrapper<JubaotousuEntity> wrapper = new EntityWrapper<JubaotousuEntity>();
		if(map.get("remindstart")!=null) {
			wrapper.ge(columnName, map.get("remindstart"));
		}
		if(map.get("remindend")!=null) {
			wrapper.le(columnName, map.get("remindend"));
		}

		String tableName = request.getSession().getAttribute("tableName").toString();
		if(tableName.equals("bozhu")) {
			wrapper.eq("bozhuzhanghao", (String)request.getSession().getAttribute("username"));
		}

		int count = jubaotousuService.selectCount(wrapper);
		return R.ok().put("count", count);
	}
	


}

五、效果图

六、源码获取:

👇🏻获取联系方式在文章末尾👇🏻
有需要的伙伴可以点击下方名片,与我联系哦~

  • 40
    点赞
  • 11
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值