Java项目:82 springboot飘香水果购物网站的设计与实现

本文主要是介绍Java项目:82 springboot飘香水果购物网站的设计与实现,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!

作者主页:源码空间codegym

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

文中获取源码

项目介绍

本水果购物网站管理员、用户两个角色。

管理员功能有,个人中心管理,用户管理,会员管理,会员卡管理,开通会员记录管理,积分管理,水果管理,购买水果订单管理,积分兑换管理,积分兑换记录管理,加积分记录管理,减积分记录管理。

用户可以注册登录,在首页开通会员卡,查看水果,购买水果,查看水果信息,以及个人中心修改个人资料,在自己的后台查看自己的购买记录等。

环境要求

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

服务端技术:SpringBoot + MyBatis + Vue + Bootstrap + jQuery

使用说明

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

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

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

运行指导

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

http://mtw.so/5MHvZq

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

运行截图

文档截图

img

img

项目截图

前台

1

2

3

4

5

后台

6

7

8

<template><div style="backgroundImage: url('/yiliaozonghefuwu/img/back-img-bg.jpg');background-size:cover;"><div class="container"><div class="login-form" style="backgroundColor:rgba(183, 174, 174, 0.5);borderRadius:22px"><h1 class="h1" style="color:#000;fontSize:28px;">妇幼健康管理系统注册</h1><el-form class="rgs-form" label-width="120px"><el-form-item label="账号" class="input"><el-input v-model="ruleForm.username" autocomplete="off" placeholder="账号"  /></el-form-item><el-form-item label="密码" class="input"><el-input type="password" v-model="ruleForm.password" autocomplete="off" show-password/></el-form-item><el-form-item label="重复密码" class="input"><el-input type="password" v-model="ruleForm.repetitionPassword" autocomplete="off" show-password/></el-form-item><el-form-item label="医生姓名" class="input" v-if="tableName=='yisheng'"><el-input v-model="ruleForm.yishengName" autocomplete="off" placeholder="医生姓名"  /></el-form-item><el-form-item label="医生手机号" class="input" v-if="tableName=='yisheng'"><el-input v-model="ruleForm.yishengPhone" autocomplete="off" placeholder="医生手机号"  /></el-form-item><el-form-item label="医生身份证号" class="input" v-if="tableName=='yisheng'"><el-input v-model="ruleForm.yishengIdNumber" autocomplete="off" placeholder="医生身份证号"  /></el-form-item><el-form-item label="电子邮箱" class="input" v-if="tableName=='yisheng'"><el-input v-model="ruleForm.yishengEmail" autocomplete="off" placeholder="电子邮箱"  /></el-form-item><el-form-item label="用户姓名" class="input" v-if="tableName=='yonghu'"><el-input v-model="ruleForm.yonghuName" autocomplete="off" placeholder="用户姓名"  /></el-form-item><el-form-item label="用户手机号" class="input" v-if="tableName=='yonghu'"><el-input v-model="ruleForm.yonghuPhone" autocomplete="off" placeholder="用户手机号"  /></el-form-item><el-form-item label="用户身份证号" class="input" v-if="tableName=='yonghu'"><el-input v-model="ruleForm.yonghuIdNumber" autocomplete="off" placeholder="用户身份证号"  /></el-form-item><el-form-item label="电子邮箱" class="input" v-if="tableName=='yonghu'"><el-input v-model="ruleForm.yonghuEmail" autocomplete="off" placeholder="电子邮箱"  /></el-form-item><div style="display: flex;flex-wrap: wrap;width: 100%;justify-content: center;"><el-button class="btn" type="primary" @click="login()">注册</el-button><el-button class="btn close" type="primary" @click="close()">取消</el-button></div></el-form></div></div></div>
</template>
<script>export default {data() {return {ruleForm: {},tableName:"",rules: {},sexTypesOptions : [],};},mounted(){let table = this.$storage.get("loginTable");this.tableName = table;//级联表的下拉框查询},methods: {// 获取uuidgetUUID () {return new Date().getTime();},close(){this.$router.push({ path: "/login" });},// 注册login() {if((!this.ruleForm.username)){this.$message.error('账号不能为空');return}if((!this.ruleForm.password)){this.$message.error('密码不能为空');return}if((!this.ruleForm.repetitionPassword)){this.$message.error('重复密码不能为空');return}if(this.ruleForm.repetitionPassword != this.ruleForm.password){this.$message.error('密码和重复密码不一致');return}if((!this.ruleForm.yishengName)&& 'yisheng'==this.tableName){this.$message.error('医生姓名不能为空');return}if('yisheng' == this.tableName && this.ruleForm.yishengPhone&&(!this.$validate.isMobile(this.ruleForm.yishengPhone))){this.$message.error('手机应输入手机格式');return}if((!this.ruleForm.yishengIdNumber)&& 'yisheng'==this.tableName){this.$message.error('医生身份证号不能为空');return}if('yisheng' == this.tableName && this.ruleForm.yishengEmail&&(!this.$validate.isEmail(this.ruleForm.yishengEmail))){this.$message.error("邮箱应输入邮件格式");return}if((!this.ruleForm.yonghuName)&& 'yonghu'==this.tableName){this.$message.error('用户姓名不能为空');return}if('yonghu' == this.tableName && this.ruleForm.yonghuPhone&&(!this.$validate.isMobile(this.ruleForm.yonghuPhone))){this.$message.error('手机应输入手机格式');return}if((!this.ruleForm.yonghuIdNumber)&& 'yonghu'==this.tableName){this.$message.error('用户身份证号不能为空');return}if('yonghu' == this.tableName && this.ruleForm.yonghuEmail&&(!this.$validate.isEmail(this.ruleForm.yonghuEmail))){this.$message.error("邮箱应输入邮件格式");return}this.$http({url: `${this.tableName}/register`,method: "post",data:this.ruleForm}).then(({ data }) => {if (data && data.code === 0) {this.$message({message: "注册成功,请登录后在个人中心页面补充个人数据",type: "success",duration: 1500,onClose: () => {this.$router.replace({ path: "/login" });}});} else {this.$message.error(data.msg);}});}}};
</script>
<style lang="scss" scoped>.el-radio__input.is-checked .el-radio__inner {border-color: #00c292;background: #00c292;}.el-radio__input.is-checked .el-radio__inner {border-color: #00c292;background: #00c292;}.el-radio__input.is-checked .el-radio__inner {border-color: #00c292;background: #00c292;}.el-radio__input.is-checked+.el-radio__label {color: #00c292;}.el-radio__input.is-checked+.el-radio__label {color: #00c292;}.el-radio__input.is-checked+.el-radio__label {color: #00c292;}.h1 {margin-top: 10px;}body {padding: 0;margin: 0;}// .container {//    min-height: 100vh;//    text-align: center;//    // background-color: #00c292;//    padding-top: 20vh;//    background-image: url(../assets/img/bg.jpg);//    background-size: 100% 100%;//    opacity: 0.9;//  }// .login-form:before {// 	vertical-align: middle;// 	display: inline-block;// }// .login-form {// 	max-width: 500px;// 	padding: 20px 0;// 	width: 80%;// 	position: relative;// 	margin: 0 auto;// 	.label {// 		min-width: 60px;// 	}// 	.input-group {// 		max-width: 500px;// 		padding: 20px 0;// 		width: 80%;// 		position: relative;// 		margin: 0 auto;// 		display: flex;// 		align-items: center;// 		.input-container {// 			display: inline-block;// 			width: 100%;// 			text-align: left;// 			margin-left: 10px;// 		}// 		.icon {// 			width: 30px;// 			height: 30px;// 		}// 		.input {// 			position: relative;// 			z-index: 2;// 			float: left;// 			width: 100%;// 			margin-bottom: 0;// 			box-shadow: none;// 			border-top: 0px solid #ccc;// 			border-left: 0px solid #ccc;// 			border-right: 0px solid #ccc;// 			border-bottom: 1px solid #ccc;// 			padding: 0px;// 			resize: none;// 			border-radius: 0px;// 			display: block;// 			width: 100%;// 			height: 34px;// 			padding: 6px 12px;// 			font-size: 14px;// 			line-height: 1.42857143;// 			color: #555;// 			background-color: #fff;// 		}// 	}// }.nk-navigation {margin-top: 15px;a {display: inline-block;color: #fff;background: rgba(255, 255, 255, .2);width: 100px;height: 50px;border-radius: 30px;text-align: center;display: flex;align-items: center;margin: 0 auto;justify-content: center;padding: 0 20px;}.icon {margin-left: 10px;width: 30px;height: 30px;}}.register-container {margin-top: 10px;a {display: inline-block;color: #fff;max-width: 500px;height: 50px;border-radius: 30px;text-align: center;display: flex;align-items: center;margin: 0 auto;justify-content: center;padding: 0 20px;div {margin-left: 10px;}}}.container {height: 100vh;background-position: center center;background-size: cover;background-repeat: no-repeat;.login-form {right: 50%;top: 50%;height: auto;transform: translate3d(50%, -50%, 0);border-radius: 10px;background-color: rgba(255,255,255,.5);width: 420px;padding: 30px 30px 40px 30px;font-size: 14px;font-weight: 500;.h1 {margin: 0;text-align: center;line-height: 54px;font-size: 24px;color: #000;}.rgs-form {display: flex;flex-direction: column;justify-content: center;align-items: center;.input {width: 100%;& /deep/ .el-form-item__label {line-height: 40px;color: rgba(17, 16, 16, 1);font-size: #606266;}& /deep/ .el-input__inner {height: 40px;color: rgba(23, 24, 26, 1);font-size: 14px;border-width: 1px;border-style: solid;border-color: #606266;border-radius: 22px;background-color: #fff;}}.btn {margin: 0 10px;width: 88px;height: 44px;color: #fff;font-size: 14px;border-width: 1px;border-style: solid;border-color: #409EFF;border-radius: 22px;background-color: #409EFF;}.close {margin: 0 10px;width: 88px;height: 44px;color: #409EFF;font-size: 14px;border-width: 1px;border-style: solid;border-color: #409EFF;border-radius: 22px;background-color: #FFF;}}}}
</style>

这篇关于Java项目:82 springboot飘香水果购物网站的设计与实现的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!



http://www.chinasem.cn/article/862553

相关文章

Java通过驱动包(jar包)连接MySQL数据库的步骤总结及验证方式

《Java通过驱动包(jar包)连接MySQL数据库的步骤总结及验证方式》本文详细介绍如何使用Java通过JDBC连接MySQL数据库,包括下载驱动、配置Eclipse环境、检测数据库连接等关键步骤,... 目录一、下载驱动包二、放jar包三、检测数据库连接JavaJava 如何使用 JDBC 连接 mys

SpringBoot线程池配置使用示例详解

《SpringBoot线程池配置使用示例详解》SpringBoot集成@Async注解,支持线程池参数配置(核心数、队列容量、拒绝策略等)及生命周期管理,结合监控与任务装饰器,提升异步处理效率与系统... 目录一、核心特性二、添加依赖三、参数详解四、配置线程池五、应用实践代码说明拒绝策略(Rejected

Qt使用QSqlDatabase连接MySQL实现增删改查功能

《Qt使用QSqlDatabase连接MySQL实现增删改查功能》这篇文章主要为大家详细介绍了Qt如何使用QSqlDatabase连接MySQL实现增删改查功能,文中的示例代码讲解详细,感兴趣的小伙伴... 目录一、创建数据表二、连接mysql数据库三、封装成一个完整的轻量级 ORM 风格类3.1 表结构

基于Python实现一个图片拆分工具

《基于Python实现一个图片拆分工具》这篇文章主要为大家详细介绍了如何基于Python实现一个图片拆分工具,可以根据需要的行数和列数进行拆分,感兴趣的小伙伴可以跟随小编一起学习一下... 简单介绍先自己选择输入的图片,默认是输出到项目文件夹中,可以自己选择其他的文件夹,选择需要拆分的行数和列数,可以通过

一文详解SpringBoot中控制器的动态注册与卸载

《一文详解SpringBoot中控制器的动态注册与卸载》在项目开发中,通过动态注册和卸载控制器功能,可以根据业务场景和项目需要实现功能的动态增加、删除,提高系统的灵活性和可扩展性,下面我们就来看看Sp... 目录项目结构1. 创建 Spring Boot 启动类2. 创建一个测试控制器3. 创建动态控制器注

Python中将嵌套列表扁平化的多种实现方法

《Python中将嵌套列表扁平化的多种实现方法》在Python编程中,我们常常会遇到需要将嵌套列表(即列表中包含列表)转换为一个一维的扁平列表的需求,本文将给大家介绍了多种实现这一目标的方法,需要的朋... 目录python中将嵌套列表扁平化的方法技术背景实现步骤1. 使用嵌套列表推导式2. 使用itert

Java操作Word文档的全面指南

《Java操作Word文档的全面指南》在Java开发中,操作Word文档是常见的业务需求,广泛应用于合同生成、报表输出、通知发布、法律文书生成、病历模板填写等场景,本文将全面介绍Java操作Word文... 目录简介段落页头与页脚页码表格图片批注文本框目录图表简介Word编程最重要的类是org.apach

Python使用pip工具实现包自动更新的多种方法

《Python使用pip工具实现包自动更新的多种方法》本文深入探讨了使用Python的pip工具实现包自动更新的各种方法和技术,我们将从基础概念开始,逐步介绍手动更新方法、自动化脚本编写、结合CI/C... 目录1. 背景介绍1.1 目的和范围1.2 预期读者1.3 文档结构概述1.4 术语表1.4.1 核

在Linux中改变echo输出颜色的实现方法

《在Linux中改变echo输出颜色的实现方法》在Linux系统的命令行环境下,为了使输出信息更加清晰、突出,便于用户快速识别和区分不同类型的信息,常常需要改变echo命令的输出颜色,所以本文给大家介... 目python录在linux中改变echo输出颜色的方法技术背景实现步骤使用ANSI转义码使用tpu

Spring Boot中WebSocket常用使用方法详解

《SpringBoot中WebSocket常用使用方法详解》本文从WebSocket的基础概念出发,详细介绍了SpringBoot集成WebSocket的步骤,并重点讲解了常用的使用方法,包括简单消... 目录一、WebSocket基础概念1.1 什么是WebSocket1.2 WebSocket与HTTP