资料详情

基于Spring Boot+区块链技术的农产品溯源平台设计与实现 毕业论文++项目源码及数据库文件

头像

JAVA/JSP

编号:223

摘        要

在现如今的信息化时代中,社会经济文化的发展快速增长,中国国民经济在不断增长。消费者能购买到的农产品越来越多,品种越来越丰富。在农产品出产的过程中一旦出现食品安全问题,不仅会造成巨大的经济损失,也会危害民众的身体健康,引发一系列的社会问题。建立起有效的、安全的农产品溯源平台能够让消费者清楚的看见农产品从生长到收获再到加工的全过程,能有效解决消费者与生产者之间的信息不对等的问题。而在区块链技术下的农产品溯源系统能有效防止信息被篡改,保障信息的真实性、可靠性。

本农产品溯源平台以区块链技术Hyperledger Fabric为核心并部署智能合约,采用基于Spring Boot的若依框架开发。实现了管理员对用户的管理、农户对农作物详情及生长过程的管理、物流公司对运输的管理、原料厂商对农作物的质量检测、生产厂商对农产品的加工管理、消费者对农作物进行溯源等功能。

关键词:农产品溯源  区块链  Hyperledger Fabric  智能合约  Spring Boot


Abstract

In today's information age, social economy and culture are developing rapidly. China's national economy is also growing. Consumers can buy more and more agricultural products, varieties are becoming richer and richer. People's eyes are no longer limited to what they can eat, but also want to know whether the food is safe. Once food safety problems occur in the production of agricultural products, they will not only cause huge economic losses, but also harm people's health and cause a series of social problems. Establishing effective and safety of agricultural products traceability platform can let consumers clearly see whole process from growth to harvesting and processing of agricultural products, can effectively solve the problem of trust between consumers and producers, and under the block chain technology of agricultural products traceability system can effectively prevent information been tampered with, guarantee the authenticity of information.

The agricultural product traceability platform is based on Hyperledger Fabric blockchain technology and smart contract deployment. It adopts Spring Boot framework to develop and MySQL database to realize data persistence. The realization of the administrator to user management, farmers to crop management, raw material manufacturers to crop quality testing, manufacturers to agricultural products processing management, logistics companies to transport management, consumers to crop traceability.

Key words:agricultural products traceability; blockchain; Hyperledger Fabric; smart contract; Spring Boot


目        录

1 绪论

1.1 系统研究背景

1.2 系统开发的目的与意义

1.3 国内外研究现状

2 系统开发平台及使用技术

2.1 系统开发平台

2.2 系统相关技术介绍

2.2.1 Spring Boot

2.2.2 Mybatis

2.2.3 FastDFS

2.2.4 Redis

2.2.5 区块链技术

2.2.6 Hyperledger Fabric

3 需求分析

3.1 系统应用需求

3.2 平台业务流程设计

3.3 可行性分析

3.3.1 技术可行性

3.3.2 经济可行性

3.3.3 操作可行性

4 系统设计

4.1 系统项目架构

4.2 系统功能模块设计

4.3 数据库设计

4.3.1 数据库E-R图

4.3.2 数据库表结构

4.4 Fabric区块链设计

4.4.1 区块链设计

4.4.2 智能合约设计

4.4.3 系统内部溯源流程设计

5 系统实现

5.1 Fabric区块链网络搭建

5.2 用户登录

5.3 系统管理模块实现

5.3.1 用户管理

5.3.2 角色管理

5.3.3 日志管理

5.4 农作物管理模块实现

5.4.1 农作物信息管理

5.4.2 农作物生长记录管理

5.5 农产品加工模块实现

5.6 质量检测模块实现

5.7 运输管理模块实现

5.8 农产品溯源模块实现

6 系统测试

6.1 系统管理模块测试

6.2 农作物管理模块测试

6.3 农产品加工模块测试

6.4 运输管理模块测试

6.5 农产品溯源模块测试

7 总结与展望

参考文献

致谢