首页 > 编程语言 >基于SpringBoot+Vue的校园博客管理系统设计与实现毕设(文档+源码)

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

时间:2024-06-01 14:57:28浏览次数:12  
标签:map Vue SpringBoot jubaotousu 源码 jubaotousuService new public RequestMapping

      

目录

一、项目介绍

二、开发环境

三、功能介绍

四、核心代码

五、效果图

六、源码获取:


        大家好呀,我是一个混迹在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);
	}
	


}

五、效果图

六、源码获取:

标签:map,Vue,SpringBoot,jubaotousu,源码,jubaotousuService,new,public,RequestMapping
From: https://blog.csdn.net/m0_48205251/article/details/138425226

相关文章

  • SpringBoot 中获取项目的路径和文件流
    SSMweb项目以工程名为TEST为例:(1)得到包含工程名的当前页面全路径:request.getRequestURI()结果:/TEST/test.jsp(2)得到工程名:request.getContextPath()结果:/TEST(3)得到当前页面所在目录下全名称:request.getServletPath()结果:如果页面在jsp目录下/TEST/jsp/test.jsp......
  • 基于springboot校园医疗保险管理系统(源码+lw+部署文档+讲解等)
    前言......
  • 旅游门票预订系统小程序源码购票源码
    功能介绍:景点项目支持发布多个景点项目、景点门票等。 在线支付支持整合微信支付功能 一款基于ThinkPHP+Uniapp开发的旅游i]票预订系统支持景点]票、导游产品便捷预订、美食打卡、景点分享、旅游笔记分享等综合系统,提供前后台无加密源码,支持私有化部署。 ......
  • Spring Bean多例作用域:原型模式的深度剖析与源码之旅
    1.引言在Spring框架中,Bean的多例作用域(prototype)提供了一种重要的实例化模式,它允许每次从Spring容器中请求Bean时都创建一个新的实例。这种模式在处理需要频繁创建和销毁实例的场景,以及不希望在不同请求或会话之间共享状态的Bean时特别有用。本文将通过深度剖析多例作用域......
  • WEB网页设计期末作业个人主页——简单的学生网页作业源码 基于HTML CSS制作个人简介网
    @TOC>......
  • PCL欧式距离聚类源码解析
    1.Findapointp10inspace,thereiskdTreeFindthenpointsclosesttohim,andjudgethedistancefromthesenpointstop.Putpointsp12,p13,p14….withdistanceslessthanthethresholdrinclassQFindabitofp12inQ(p10)andrepeat1.3Fi......
  • 基于springboot的毕业设计成绩管理系统源码数据库
    基于springboot的毕业设计成绩管理系统源码数据库传统办法管理信息首先需要花费的时间比较多,其次数据出错率比较高,而且对错误的数据进行更改也比较困难,最后,检索数据费事费力。因此,在计算机上安装毕业设计成绩管理系统软件来发挥其高效地信息处理的作用,可以规范信息管理流程,让......
  • 使用 Vue 3 和 JsBarcode 开发一维码显示组件
    在现代前端开发中,条形码(或称一维码)在许多应用场景中非常常见,例如商品管理、物流跟踪等。本文将介绍如何使用Vue3和JsBarcode库来创建一个灵活的一维码显示组件,并展示如何在应用中使用它。1.安装必要的依赖首先,我们需要安装Vue3和JsBarcode。如果你还没有创建Vue3......
  • 进件最新版点微同城源码34.7+全套插件+小程序前后端
    模板挺好看的带全套插件自己耐心点配置一下插件可以H5可以小程序资源链接:最新版点微同城源码34.7+全套插件+小程序前后端-资源吧......
  • Springboot 开发 -- 跨域问题技术详解
    一、跨域的概念跨域访问问题指的是在客户端浏览器中,由于安全策略的限制,不允许从一个源(域名、协议、端口)直接访问另一个源的资源。当浏览器发起一个跨域请求时,会被浏览器拦截,并阻止数据的传输。这种限制是为了保护用户的隐私和安全,防止恶意网站利用用户的浏览器向其他网站......