快收藏!最适合计算机大学生的Java毕业设计项目--音乐视频网站系统!_适合计算机学生做的项目

功能截图:

前台用户

登陆,管理员输入个人的账号、密码、角色登录系统,这时候系统的数据库就会在进行查找相关的信息,如果我们输入的账号、密码不正确,数据库就会提示出错误的信息提示,同时会提示管理员重新输入自己的账号、密码,直到账号密码输入成功后,会提登录成功的信息。

系统首页:

前台首页浏览,通过内容列表可以获取网站首页、音乐库、音乐资讯、个人中心、后台管理、在线客服等信息操作内容

音乐库:

音乐库,通过内容列表可以查看

音乐详情:点赞、评论等操作

付费音乐:

付费音乐管理,通过内容列表可以查看编号、歌名、音乐标签、图片、演唱者、作曲、作词、音乐视频、价格、试听片段等可以进行点赞、评论、购买等操作

音乐资讯:

个人中心:

个人中心,通过内容列表可以获取用户名、密码、姓名、年龄、性别、手机、邮箱等信息可进行增、删、改或查看等操作

用户后台:

在线客服

后台管理:

个人信息:

个人中心,管理员对个人中心进行操作填写原密码、新密码、确认密码并进行添加、删除、修改以及查看

用户管理:

用户管理,管理员对用户管理进行用户名、密码、姓名、年龄、性别、手机、邮箱等等添加、删除、修改以及查看等操作

音乐标签分类:

音乐库管理:

音乐库管理,通过内容列表获取编号、歌名、音乐标签、图片、演唱者、作曲、作词、音乐视频、音乐等信息可进行详情、修改、删除或查看操作

付费音乐管理:

订单中心管理:

订单中心管理,在订单中心管理页面可以查看编号、歌名、音乐标签、演唱者、价格、用户名、是否支付、审核回复、审核、支付以及查看详情

付费音频管理:

在线客服管理:

管理员通过系统管理页面查看在线客服、轮播图、音乐资讯进行上传图片、客服回复、发布资讯进行添加、删除、修改以及查看并对整个系统进行维护等操作

轮播图管理:

音乐资讯管理:

主要代码:

spring-mvc配置:

<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:context="http://www.springframework.org/schema/context"
       xmlns:mvc="http://www.springframework.org/schema/mvc"
       xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context.xsd http://www.springframework.org/schema/mvc http://www.springframework.org/schema/mvc/spring-mvc.xsd">

    <mvc:default-servlet-handler/>

      </mvc:annotation-driven>
    <!-- 静态资源配置 -->
    <mvc:resources mapping="/resources/**" location="/resources/"/>
    <!-- 对模型视图名称的解析,即在模型视图名称添加前后缀 -->
    <bean class="org.springframework.web.servlet.view.InternalResourceViewResolver">
        <property name="prefix" value="/WEB-INF/pages/"/>
        <property name="suffix" value=".jsp"/>
    </bean>
    
    <!-- 拦截器配置 -->
    <mvc:interceptors>
        <mvc:interceptor>
            <mvc:mapping path="/**"/>
            <mvc:exclude-mapping path="/upload"/>
            <bean class="com.interceptor.AuthorizationInterceptor"/>
        </mvc:interceptor>
    </mvc:interceptors>

    <!-- 上传限制 -->
    <bean id="multipartResolver" class="org.springframework.web.multipart.commons.CommonsMultipartResolver">
        <!-- 上传文件大小限制为31M,31*1024*1024 -->
        <property name="maxUploadSize" value="32505856"/>
    </bean>

</beans>

文件上传:


/**
 * 上传文件映射表
 */
@RestController
@RequestMapping("file")
@SuppressWarnings({"unchecked","rawtypes"})
public class FileController{
	@Autowired
    private ConfigService configService;
	/**
	 * 上传文件
	 */
	@RequestMapping("/upload")
	public R upload(@RequestParam("file") MultipartFile file, String type,HttpServletRequest request) throws Exception {
		if (file.isEmpty()) {
			throw new EIException("上传文件不能为空");
		}
		String fileExt = file.getOriginalFilename().substring(file.getOriginalFilename().lastIndexOf(".")+1);
		String fileName = new Date().getTime()+"."+fileExt;
		File dest = new File(request.getSession().getServletContext().getRealPath("/upload")+"/"+fileName);
		file.transferTo(dest);
		if(StringUtils.isNotBlank(type) && type.equals("1")) {
			ConfigEntity configEntity = configService.selectOne(new EntityWrapper<ConfigEntity>().eq("name", "faceFile"));
			if(configEntity==null) {
				configEntity = new ConfigEntity();
				configEntity.setName("faceFile");
				configEntity.setValue(fileName);
			} else {
				configEntity.setValue(fileName);
			}
			configService.insertOrUpdate(configEntity);
		}
		return R.ok().put("file", fileName);
	}
	
	/**
	 * 下载文件
	 */
	@IgnoreAuth
	@RequestMapping("/download")
	public void download(@RequestParam String fileName, HttpServletRequest request, HttpServletResponse response) {
		try {
			File file = new File(request.getSession().getServletContext().getRealPath("/upload")+"/"+fileName);
			if (file.exists()) {
				response.reset();
				response.setHeader("Content-Disposition", "attachment; filename=\"" + fileName+"\"");
				response.setHeader("Cache-Control", "no-cache");
				response.setHeader("Access-Control-Allow-Credentials", "true");
				response.setContentType("application/octet-stream; charset=UTF-8");
				IOUtils.write(FileUtils.readFileToByteArray(file), response.getOutputStream());
			}

		} catch (IOException e) {
			e.printStackTrace();
		}
	}
	
}

音乐库管理:



/**
 * 音乐库处理器
 * @date 2022-02-03 20:15:08
 */
@RestController
@RequestMapping("/yinleku")
public class YinlekuController {
    @Autowired
    private YinlekuService yinlekuService;
    


    /**
     * 后端列表
     */
    @RequestMapping("/page")
    public R page(@RequestParam Map<String, Object> params,YinlekuEntity yinleku, HttpServletRequest request){

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

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

	 /**
     * 查询
     */
    @RequestMapping("/query")
    public R query(YinlekuEntity yinleku){
        EntityWrapper< YinlekuEntity> ew = new EntityWrapper< YinlekuEntity>();
 		ew.allEq(MPUtil.allEQMapPre( yinleku, "yinleku")); 
		YinlekuView yinlekuView =  yinlekuService.selectView(ew);
		return R.ok("查询音乐库成功").put("data", yinlekuView);
    }
	
    /**
     * 后端详情
     */
    @RequestMapping("/info/{id}")
    public R info(@PathVariable("id") Long id){
        YinlekuEntity yinleku = yinlekuService.selectById(id);
		yinleku.setClicknum(yinleku.getClicknum()+1);
		yinleku.setClicktime(new Date());
		yinlekuService.updateById(yinleku);
        return R.ok().put("data", yinleku);
    }

    /**
     * 前端详情
     */
	@IgnoreAuth
    @RequestMapping("/detail/{id}")
    public R detail(@PathVariable("id") Long id){
        YinlekuEntity yinleku = yinlekuService.selectById(id);
		yinleku.setClicknum(yinleku.getClicknum()+1);
		yinleku.setClicktime(new Date());
		yinlekuService.updateById(yinleku);
        return R.ok().put("data", yinleku);
    }
    


    /**
     * 赞或踩
     */
    @RequestMapping("/thumbsup/{id}")
    public R thumbsup(@PathVariable("id") String id,String type){
        YinlekuEntity yinleku = yinlekuService.selectById(id);
        if(type.equals("1")) {
        	yinleku.setThumbsupnum(yinleku.getThumbsupnum()+1);
        } else {
        	yinleku.setCrazilynum(yinleku.getCrazilynum()+1);
        }
        yinlekuService.updateById(yinleku);
        return R.ok();
    }

    /**
     * 后端保存
     */
    @RequestMapping("/save")
    public R save(@RequestBody YinlekuEntity yinleku, HttpServletRequest request){
    	yinleku.setId(new Date().getTime()+new Double(Math.floor(Math.random()*1000)).longValue());
    	//ValidatorUtils.validateEntity(yinleku);

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

        yinlekuService.insert(yinleku);
        return R.ok();
    }

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

    /**
     * 删除
     */
    @RequestMapping("/delete")
    public R delete(@RequestBody Long[] ids){
        yinlekuService.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<YinlekuEntity> wrapper = new EntityWrapper<YinlekuEntity>();
		if(map.get("remindstart")!=null) {
			wrapper.ge(columnName, map.get("remindstart"));
		}
		if(map.get("remindend")!=null) {
			wrapper.le(columnName, map.get("remindend"));


# 最后

无论是哪家公司,都很重视基础,大厂更加重视技术的深度和广度,面试是一个双向选择的过程,不要抱着畏惧的心态去面试,不利于自己的发挥。同时看中的应该不止薪资,还要看你是不是真的喜欢这家公司,是不是能真的得到锻炼。

针对以上面试技术点,我在这里也做一些分享,希望能更好的帮助到大家。

![](https://img-blog.csdnimg.cn/img_convert/06520609e571d71855d48a73a1bdd2aa.webp?x-oss-process=image/format,png)

![](https://img-blog.csdnimg.cn/img_convert/651de6e28db4891a05fa4eff21a6d334.webp?x-oss-process=image/format,png)

![](https://img-blog.csdnimg.cn/img_convert/f728a4172d54e2fb3ad5a0761e018e9e.webp?x-oss-process=image/format,png)

tityWrapper<YinlekuEntity>();
		if(map.get("remindstart")!=null) {
			wrapper.ge(columnName, map.get("remindstart"));
		}
		if(map.get("remindend")!=null) {
			wrapper.le(columnName, map.get("remindend"));


# 最后

无论是哪家公司,都很重视基础,大厂更加重视技术的深度和广度,面试是一个双向选择的过程,不要抱着畏惧的心态去面试,不利于自己的发挥。同时看中的应该不止薪资,还要看你是不是真的喜欢这家公司,是不是能真的得到锻炼。

针对以上面试技术点,我在这里也做一些分享,希望能更好的帮助到大家。

[外链图片转存中...(img-LLlIeHwL-1714701352269)]

[外链图片转存中...(img-9VFermPi-1714701352269)]

[外链图片转存中...(img-CXNG04Pi-1714701352270)]

> **本文已被[CODING开源项目:【一线大厂Java面试题解析+核心总结学习笔记+最新讲解视频+实战项目源码】](https://bbs.csdn.net/topics/618154847)收录**
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值