Java项目:53 springboot校园管理系统的设计与实现014

作者主页:源码空间codegym

简介:Java领域优质创作者、Java项目、学习资料、技术互助

文中获取源码

项目介绍

1、关于校园管理系统的基本要求:

(1)功能要求:可以管理首页、个人中心、院校管理、用户管理、单位类别管理、院校管理员管理、单位管理、通知推送管理、投票信息管理、通知回复管理等功能模块。

(2)性能:在不同操作系统上均能无差错实现在不同类型的用户登入相应界面后能不出差错、方便地进行预期操作。

(3)安全与保密要求:用户都必须通过身份验证才能进入系统,并且用户的权限也需要根据用户的类型进行限定。

(4)环境要求:支持多种平台,可在Windows系列、Vista系统等多种操作系统下使用。

环境要求

1.运行环境:最好是java jdk1.8,我们在这个平台上运行的。其他版本理论上也可以。

2.IDE环境:IDEA,Eclipse,Myeclipse都可以。推荐IDEA;

3.tomcat环境:Tomcat7.x,8.X,9.x版本均可

4.硬件环境:windows7/8/10 4G内存以上;或者Mac OS;

5.是否Maven项目:是;查看源码目录中是否包含pom.xml;若包含,则为maven项目,否则为非maven.项目

6.数据库:MySql5.7/8.0等版本均可;

技术栈

运行环境:jdk8 + tomcat9 + mysql5.7 + windows10

服务端技术:Spring Boot+ Mybatis +VUE

使用说明

1.使用Navicati或者其它工具,在mysql中创建对应sq文件名称的数据库,并导入项目的sql文件;

2.使用IDEA/Eclipse/MyEclipse导入项目,修改配置,运行项目;

3.将项目中config-propertiesi配置文件中的数据库配置改为自己的配置,然后运行;

运行指导

idea导入源码空间站顶目教程说明(Vindows版)-ssm篇:

http://mtw.so/5MHvZq

源码地址:http://codegym.top

运行截图

文档截图

微信截图_20240309165214

项目截图

图片1

图片2

图片3

图片4

图片5

图片6

图片7

图片9

代码

package com.work.controller;

import java.util.List;
import javax.servlet.http.HttpServletResponse;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;
import com.work.common.utils.BaseUtil;
import com.work.common.utils.JsonUtil;
import com.work.pojo.Mailbox;
import com.work.service.MailboxService;

@Controller
@RequestMapping("/server/mailbox")
public class MailboxController extends BaseUtil{

	@Autowired
	private MailboxService mailboxService;
	
	//去信箱列表
	@RequestMapping("/goMailboxList")
	public ModelAndView goMailboxList(ModelAndView mv){
		mv.setViewName("server/mailboxManage/mailboxList");
		return mv;
	}
	
	//获取信箱列表
	@RequestMapping("/getMailboxList")
	public void getMailboxList(HttpServletResponse response,Mailbox mailbox,Integer page,Integer limit){
		if(page == null){
			page = 1;
		}
		if(limit == null){
			limit = 10;
		}
		int totalCount = mailboxService.getMailboxListCount(mailbox);
		List<Mailbox> list = mailboxService.getMailboxList(mailbox,(page-1) * limit, limit);
		output(response,JsonUtil.buildJsonByTotalCount(list, totalCount));
	}
	
	//去查看信件
	@RequestMapping("/goUpdateMailbox")
	public ModelAndView goUpdateMailbox(ModelAndView mv,Integer id){
		Mailbox mailbox = mailboxService.getMailboxById(id);
		mv.addObject("mailbox", mailbox);
		mv.setViewName("server/mailboxManage/updateMailbox");
		return mv;
	}
	
	//编辑信件
	@RequestMapping("/updateMailbox")
	public void updateMailbox(HttpServletResponse response,Mailbox mailbox){
		mailboxService.updateMailbox(mailbox);
		output(response,JsonUtil.buildFalseJson(0, "编辑成功!"));
	}

	//删除信件
	@RequestMapping("/deleteMailbox")
	public void deleteMailbox(HttpServletResponse response,Integer id){
		mailboxService.deleteMailboxById(id);
		output(response,JsonUtil.buildFalseJson(0, "删除成功!"));
	}

	
}

  • 21
    点赞
  • 11
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值