基于SpringBoot+Vue实现智能菜谱推荐系统

发布时间:2025-12-18 11:07

使用智能菜谱推荐健康食谱 #生活知识# #科技生活# #健康生活技巧# #科技生活工具推荐#

作者简介:Java领域优质创作者、CSDN博客专家 、CSDN内容合伙人、掘金特邀作者、阿里云博客专家、51CTO特邀作者、多年架构师设计经验、多年校企合作经验,被多个学校常年聘为校外企业导师,指导学生毕业设计并参与学生毕业答辩指导,有较为丰富的相关经验。期待与各位高校教师、企业讲师以及同行交流合作

主要内容:Java项目、Python项目、前端项目、PHP、ASP.NET、人工智能与大数据、单片机开发、物联网设计与开发设计、简历模板、学习资料、面试题库、技术互助、就业指导等

业务范围:免费功能设计、开题报告、任务书、中期检查PPT、系统功能实现、代码编写、论文编写和辅导、论文降重、长期答辩答疑辅导、腾讯会议一对一专业讲解辅导答辩、模拟答辩演练、和理解代码逻辑思路等

收藏点赞不迷路  关注作者有好处

文末获取源码 

项目编号:BS-XX-321

一,环境介绍

语言环境:Java:  jdk1.8

数据库:Mysql: mysql5.7

应用服务器:Tomcat:  tomcat8.5.31

开发工具:IDEA或eclipse

开发技术:SpringBoot+Vue

二,项目简介

近些年来,随着科技的飞速发展,互联网的普及逐渐延伸到各行各业中,给人们生活带来了十分的便利,智能菜谱推荐系统利用计算机网络实现信息化管理,使整个智能菜谱推荐管理的发展和服务水平有显著提升。

本文拟采用java技术和Springboot 搭建系统框架,后台使用MySQL数据库进行信息管理,设计开发的智能菜谱推荐系统。通过调研和分析,系统拥有管理员和用户两个角色,主要具备登录注册、个人信息修改、对用户管理、类型管理、菜谱信息管理、评分信息管理、留言信息、系统管理等功能进行操作。将纸质管理有效实现为在线管理,极大提高工作效率。

本论文拟采用计算机技术设计并开发的智能菜谱推荐系统,主要是为菜谱推荐提供服务。使得的用户可依据、时间、地点或者其他特定条件,筛选出符合的信息,给客户提供更符合实际的合理化建议,再为客户提供服务。本课题的意义在于,用户能通过使用智能菜谱推荐系统,提高用户的工作效率和服务质量,进而提高客户的体验感。

三,系统展示

后台管理系统

四,核心代码展示

package com.controller;

import java.math.BigDecimal;

import java.text.SimpleDateFormat;

import java.text.ParseException;

import java.util.ArrayList;

import java.util.Arrays;

import java.util.Calendar;

import java.util.Map;

import java.util.HashMap;

import java.util.Iterator;

import java.util.Date;

import java.util.List;

import javax.servlet.http.HttpServletRequest;

import com.utils.ValidatorUtils;

import org.apache.commons.lang3.StringUtils;

import org.springframework.beans.factory.annotation.Autowired;

import org.springframework.transaction.annotation.Transactional;

import org.springframework.format.annotation.DateTimeFormat;

import org.springframework.web.bind.annotation.PathVariable;

import org.springframework.web.bind.annotation.RequestBody;

import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RequestParam;

import org.springframework.web.bind.annotation.RestController;

import com.baomidou.mybatisplus.mapper.EntityWrapper;

import com.baomidou.mybatisplus.mapper.Wrapper;

import com.annotation.IgnoreAuth;

import com.entity.PingfenxinxiEntity;

import com.entity.view.PingfenxinxiView;

import com.service.PingfenxinxiService;

import com.service.TokenService;

import com.utils.PageUtils;

import com.utils.R;

import com.utils.MD5Util;

import com.utils.MPUtil;

import com.utils.CommonUtil;

import java.io.IOException;

@RestController

@RequestMapping("/pingfenxinxi")

public class PingfenxinxiController {

@Autowired

private PingfenxinxiService pingfenxinxiService;

@RequestMapping("/page")

public R page(@RequestParam Map<String, Object> params,PingfenxinxiEntity pingfenxinxi,

HttpServletRequest request){

String tableName = request.getSession().getAttribute("tableName").toString();

if(tableName.equals("yonghu")) {

pingfenxinxi.setZhanghao((String)request.getSession().getAttribute("username"));

}

EntityWrapper<PingfenxinxiEntity> ew = new EntityWrapper<PingfenxinxiEntity>();

PageUtils page = pingfenxinxiService.queryPage(params, MPUtil.sort(MPUtil.between(MPUtil.likeOrEq(ew, pingfenxinxi), params), params));

return R.ok().put("data", page);

}

@IgnoreAuth

@RequestMapping("/list")

public R list(@RequestParam Map<String, Object> params,PingfenxinxiEntity pingfenxinxi,

HttpServletRequest request){

EntityWrapper<PingfenxinxiEntity> ew = new EntityWrapper<PingfenxinxiEntity>();

PageUtils page = pingfenxinxiService.queryPage(params, MPUtil.sort(MPUtil.between(MPUtil.likeOrEq(ew, pingfenxinxi), params), params));

return R.ok().put("data", page);

}

@RequestMapping("/lists")

public R list( PingfenxinxiEntity pingfenxinxi){

EntityWrapper<PingfenxinxiEntity> ew = new EntityWrapper<PingfenxinxiEntity>();

ew.allEq(MPUtil.allEQMapPre( pingfenxinxi, "pingfenxinxi"));

return R.ok().put("data", pingfenxinxiService.selectListView(ew));

}

@RequestMapping("/query")

public R query(PingfenxinxiEntity pingfenxinxi){

EntityWrapper< PingfenxinxiEntity> ew = new EntityWrapper< PingfenxinxiEntity>();

ew.allEq(MPUtil.allEQMapPre( pingfenxinxi, "pingfenxinxi"));

PingfenxinxiView pingfenxinxiView = pingfenxinxiService.selectView(ew);

return R.ok("查询评分信息成功").put("data", pingfenxinxiView);

}

@RequestMapping("/info/{id}")

public R info(@PathVariable("id") Long id){

PingfenxinxiEntity pingfenxinxi = pingfenxinxiService.selectById(id);

return R.ok().put("data", pingfenxinxi);

}

@IgnoreAuth

@RequestMapping("/detail/{id}")

public R detail(@PathVariable("id") Long id){

PingfenxinxiEntity pingfenxinxi = pingfenxinxiService.selectById(id);

return R.ok().put("data", pingfenxinxi);

}

@RequestMapping("/save")

public R save(@RequestBody PingfenxinxiEntity pingfenxinxi, HttpServletRequest request){

pingfenxinxi.setId(new Date().getTime()+new Double(Math.floor(Math.random()*1000)).longValue());

pingfenxinxiService.insert(pingfenxinxi);

return R.ok();

}

@RequestMapping("/add")

public R add(@RequestBody PingfenxinxiEntity pingfenxinxi, HttpServletRequest request){

pingfenxinxi.setId(new Date().getTime()+new Double(Math.floor(Math.random()*1000)).longValue());

pingfenxinxiService.insert(pingfenxinxi);

return R.ok();

}

@RequestMapping("/update")

@Transactional

public R update(@RequestBody PingfenxinxiEntity pingfenxinxi, HttpServletRequest request){

pingfenxinxiService.updateById(pingfenxinxi);

return R.ok();

}

@RequestMapping("/delete")

public R delete(@RequestBody Long[] ids){

pingfenxinxiService.deleteBatchIds(Arrays.asList(ids));

return R.ok();

}

@RequestMapping("/value/{xColumnName}/{yColumnName}")

public R value(@PathVariable("yColumnName") String yColumnName, @PathVariable("xColumnName") String xColumnName,HttpServletRequest request) {

Map<String, Object> params = new HashMap<String, Object>();

params.put("xColumn", xColumnName);

params.put("yColumn", yColumnName);

EntityWrapper<PingfenxinxiEntity> ew = new EntityWrapper<PingfenxinxiEntity>();

String tableName = request.getSession().getAttribute("tableName").toString();

if(tableName.equals("yonghu")) {

ew.eq("zhanghao", (String)request.getSession().getAttribute("username"));

}

List<Map<String, Object>> result = pingfenxinxiService.selectValue(params, ew);

SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");

for(Map<String, Object> m : result) {

for(String k : m.keySet()) {

if(m.get(k) instanceof Date) {

m.put(k, sdf.format((Date)m.get(k)));

}

}

}

return R.ok().put("data", result);

}

@RequestMapping("/valueMul/{xColumnName}")

public R valueMul(@PathVariable("xColumnName") String xColumnName,@RequestParam String yColumnNameMul, HttpServletRequest request) {

String[] yColumnNames = yColumnNameMul.split(",");

Map<String, Object> params = new HashMap<String, Object>();

params.put("xColumn", xColumnName);

List<List<Map<String, Object>>> result2 = new ArrayList<List<Map<String,Object>>>();

SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");

EntityWrapper<PingfenxinxiEntity> ew = new EntityWrapper<PingfenxinxiEntity>();

String tableName = request.getSession().getAttribute("tableName").toString();

if(tableName.equals("yonghu")) {

ew.eq("zhanghao", (String)request.getSession().getAttribute("username"));

}

for(int i=0;i<yColumnNames.length;i++) {

params.put("yColumn", yColumnNames[i]);

List<Map<String, Object>> result = pingfenxinxiService.selectValue(params, ew);

for(Map<String, Object> m : result) {

for(String k : m.keySet()) {

if(m.get(k) instanceof Date) {

m.put(k, sdf.format((Date)m.get(k)));

}

}

}

result2.add(result);

}

return R.ok().put("data", result2);

}

@RequestMapping("/value/{xColumnName}/{yColumnName}/{timeStatType}")

public R valueDay(@PathVariable("yColumnName") String yColumnName, @PathVariable("xColumnName") String xColumnName, @PathVariable("timeStatType") String timeStatType,HttpServletRequest request) {

Map<String, Object> params = new HashMap<String, Object>();

params.put("xColumn", xColumnName);

params.put("yColumn", yColumnName);

params.put("timeStatType", timeStatType);

EntityWrapper<PingfenxinxiEntity> ew = new EntityWrapper<PingfenxinxiEntity>();

String tableName = request.getSession().getAttribute("tableName").toString();

if(tableName.equals("yonghu")) {

ew.eq("zhanghao", (String)request.getSession().getAttribute("username"));

}

List<Map<String, Object>> result = pingfenxinxiService.selectTimeStatValue(params, ew);

SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");

for(Map<String, Object> m : result) {

for(String k : m.keySet()) {

if(m.get(k) instanceof Date) {

m.put(k, sdf.format((Date)m.get(k)));

}

}

}

return R.ok().put("data", result);

}

@RequestMapping("/valueMul/{xColumnName}/{timeStatType}")

public R valueMulDay(@PathVariable("xColumnName") String xColumnName, @PathVariable("timeStatType") String timeStatType,@RequestParam String yColumnNameMul,HttpServletRequest request) {

String[] yColumnNames = yColumnNameMul.split(",");

Map<String, Object> params = new HashMap<String, Object>();

params.put("xColumn", xColumnName);

params.put("timeStatType", timeStatType);

List<List<Map<String, Object>>> result2 = new ArrayList<List<Map<String,Object>>>();

SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");

EntityWrapper<PingfenxinxiEntity> ew = new EntityWrapper<PingfenxinxiEntity>();

String tableName = request.getSession().getAttribute("tableName").toString();

if(tableName.equals("yonghu")) {

ew.eq("zhanghao", (String)request.getSession().getAttribute("username"));

}

for(int i=0;i<yColumnNames.length;i++) {

params.put("yColumn", yColumnNames[i]);

List<Map<String, Object>> result = pingfenxinxiService.selectTimeStatValue(params, ew);

for(Map<String, Object> m : result) {

for(String k : m.keySet()) {

if(m.get(k) instanceof Date) {

m.put(k, sdf.format((Date)m.get(k)));

}

}

}

result2.add(result);

}

return R.ok().put("data", result2);

}

@RequestMapping("/group/{columnName}")

public R group(@PathVariable("columnName") String columnName,HttpServletRequest request) {

Map<String, Object> params = new HashMap<String, Object>();

params.put("column", columnName);

EntityWrapper<PingfenxinxiEntity> ew = new EntityWrapper<PingfenxinxiEntity>();

String tableName = request.getSession().getAttribute("tableName").toString();

if(tableName.equals("yonghu")) {

ew.eq("zhanghao", (String)request.getSession().getAttribute("username"));

}

List<Map<String, Object>> result = pingfenxinxiService.selectGroup(params, ew);

SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");

for(Map<String, Object> m : result) {

for(String k : m.keySet()) {

if(m.get(k) instanceof Date) {

m.put(k, sdf.format((Date)m.get(k)));

}

}

}

return R.ok().put("data", result);

}

@RequestMapping("/count")

public R count(@RequestParam Map<String, Object> params,PingfenxinxiEntity pingfenxinxi, HttpServletRequest request){

String tableName = request.getSession().getAttribute("tableName").toString();

if(tableName.equals("yonghu")) {

pingfenxinxi.setZhanghao((String)request.getSession().getAttribute("username"));

}

EntityWrapper<PingfenxinxiEntity> ew = new EntityWrapper<PingfenxinxiEntity>();

int count = pingfenxinxiService.selectCount(MPUtil.sort(MPUtil.between(MPUtil.likeOrEq(ew, pingfenxinxi), params), params));

return R.ok().put("data", count);

}

}

java

运行

五,相关作品展示

基于Java开发、Python开发、PHP开发、C#开发等相关语言开发的实战项目

基于Nodejs、Vue等前端技术开发的前端实战项目

基于微信小程序和安卓APP应用开发的相关作品

基于51单片机等嵌入式物联网开发应用

基于各类算法实现的AI智能应用

基于大数据实现的各类数据管理和推荐系统

 

 

网址:基于SpringBoot+Vue实现智能菜谱推荐系统 https://www.yuejiaxmz.com/news/view/1420096

相关内容

基于Java+SpringBoot+Vue+MySQL的智能菜谱推荐管理系统
【毕业设计】基于SpringBoot + Vue的智能菜谱推荐系统
基于SpringBoot+Vue智能菜谱推荐系统的设计与实现
基于Java+SpringBoot+Vue+HTML5智能菜谱推荐系统(源码+LW+调试文档+讲解等)/智能化菜谱推荐/个性化菜谱推荐系统/智能餐饮推荐/智能菜品推荐系统/智慧菜谱推荐
基于springboot的智能菜谱推荐系统
基于springboot的智慧菜谱推荐系统
菜谱的未来:SpringBoot, Vue与MySQL的智能推荐系统设计
基于SpringBoot的智能食谱推荐网站的设计与实现
基于nodejs+vue智能菜谱推荐系统python
基于SpringBoot+Vue的健康菜谱推荐系统设计与实现(源码+lw+部署+讲解)

随便看看