基于ssm车库智能管理平台源码和论文

news2024/10/5 19:21:14

基于ssm车库智能管理平台源码和论文092

 开发工具:idea 
 数据库mysql5.7+
 数据库链接工具:navcat,小海豚等
  技术:ssm

选题的根据:1)说明本选题的理论、实际意义

2)综述国内外有关本选题的研究动态和自己的见解

随着经济的增长及城市化进程的加快,小汽车进入家庭,私人车拥有量越来越多。因为车辆的增长,实有的停车泊位越来越不能满足停车需求,车辆的任意停放给交通的安全和畅通带来了很大的影响,也给交通控制工作带来了很多不便,因此,停车控制开始受到人们的重视。所以,汽车停车场的数量将随之增加,规模不断扩大,这给各停车场的管理提出了新的挑战,停车场的自动化管理系统或智能化管理系统的停车场很少,这类管理系统产品也很少。为使停车场安全、快捷运转,必须配备一套综合收费及管理的平台。而现代化停车场系统的投资与管理不但是一种形式,也是一种低投入,高回报的商业行为。

Tomcat是一个轻量级应用服务器,在中小型系统和并发访问用户不是很多的场合下被普遍使用,是开发和调试JSP 程序的首选。当在一台机器上配置好Apache 服务器,可利用它响应对HTML 页面的访问请求。实际上Tomcat部分是Apache 服务器的扩展,但它是独立运行的,所以当你 Apache Tomcat运行tomcat 时,它实际上作为一个与Apache独立的进程单独运行的。与此同时,Tomcat服务器还支持负载平衡与邮件服务等开发应用系统常用的功能。Tomcat服务器使用Tomcat系统,所具有的优点也很鲜明,首先它具有免费的开源代码,其次是Tomcat系统技术先进并且性能也是相当的稳定,最后Tomcat服务器具有良好的扩展性和安全性,很适合一些中小企业使用。

该平台为客户和业主提供等信息服务平台的运营方,管理方,如何通过车库平台建立实现优化管理的方法提供参考。能够实现在一个相对广阔的地域内(例如一座城市)的多个停车场的随意停车。管理平台会统一调度车位资源,自动进行交易结算。需要停车车库客户在家中通过网络就可以预定停车车库,在线支付停车费用,查询出行目的地的各类车库信息。这种新型预约停车场管理方式适应了网络在人们日常生活中越来越重要的现状,使车库智能管理平台的作用范围和功能得到了极大的扩展和延伸。

 

package com.controller;

import java.text.SimpleDateFormat;
import java.util.*;
import javax.servlet.http.HttpServletRequest;

import com.entity.YonghuEntity;
import com.entity.YuyvejiluEntity;
import com.service.YonghuService;
import com.service.YuyvejiluService;
import org.apache.commons.lang3.StringUtils;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
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.entity.ChekuEntity;

import com.service.ChekuService;
import com.utils.PageUtils;
import com.utils.R;

/**
 * 洗衣机
 * 后端接口
 * @author
 * @email
 * @date 2021-03-16
*/
@RestController
@Controller
@RequestMapping("/cheku")
public class ChekuController {
    private static final Logger logger = LoggerFactory.getLogger(ChekuController.class);

    @Autowired
    private ChekuService chekuService;

    @Autowired
    private YonghuService yonghuService;

    @Autowired
    private YuyvejiluService yuyvejiluService;

    /**
    * 后端列表
    */
    @RequestMapping("/page")
    public R page(@RequestParam Map<String, Object> params, HttpServletRequest request){
        logger.debug("Controller:"+this.getClass().getName()+",page方法");
        PageUtils page = null;
        if(request.getSession().getAttribute("role").equals("车库主人")){
            params.put("ryTypes",request.getSession().getAttribute("userId"));
        }
        page = chekuService.queryPage(params);
        return R.ok().put("data", page);
    }
    /**
    * 后端详情
    */
    @RequestMapping("/info/{id}")
    public R info(@PathVariable("id") Long id){
        logger.debug("Controller:"+this.getClass().getName()+",info方法");
        ChekuEntity cheku = chekuService.selectById(id);
        if(cheku!=null){
            return R.ok().put("data", cheku);
        }else {
            return R.error(511,"查不到数据");
        }

    }

    /**
    * 后端保存
    */
    @RequestMapping("/save")
    public R save(@RequestBody ChekuEntity cheku, HttpServletRequest request){
        logger.debug("Controller:"+this.getClass().getName()+",save");
        Wrapper<ChekuEntity> queryWrapper = new EntityWrapper<ChekuEntity>()
            .eq("name", cheku.getName())
            .eq("location", cheku.getLocation())
            .eq("ry_types", cheku.getRyTypes())
            .eq("garageSize", cheku.getGarageSize())
            .eq("money", cheku.getMoney())
            .eq("ckzt_types", cheku.getCkztTypes())
            .eq("matter_content", cheku.getMatterContent())
            ;
        logger.info("sql语句:"+queryWrapper.getSqlSegment());
        ChekuEntity chekuEntity = chekuService.selectOne(queryWrapper);
        if("".equals(cheku.getImgPhoto()) || "null".equals(cheku.getImgPhoto())){
            cheku.setImgPhoto(null);
        }
        if(chekuEntity==null){
            cheku.setCkztTypes(2);
            chekuService.insert(cheku);
            return R.ok();
        }else {
            return R.error(511,"表中有相同数据");
        }
    }

    /**
    * 修改
    */
    @RequestMapping("/update")
    public R update(@RequestBody ChekuEntity cheku, HttpServletRequest request){
        logger.debug("Controller:"+this.getClass().getName()+",update");
        //根据字段查询是否有相同数据
        Wrapper<ChekuEntity> queryWrapper = new EntityWrapper<ChekuEntity>()
            .notIn("id",cheku.getId())
            .eq("name", cheku.getName())
            .eq("location", cheku.getLocation())
            .eq("ry_types", cheku.getRyTypes())
            .eq("garageSize", cheku.getGarageSize())
            .eq("money", cheku.getMoney())
            .eq("ckzt_types", cheku.getCkztTypes())
            .eq("matter_content", cheku.getMatterContent())
            ;
        logger.info("sql语句:"+queryWrapper.getSqlSegment());
        ChekuEntity chekuEntity = chekuService.selectOne(queryWrapper);
        if("".equals(cheku.getImgPhoto()) || "null".equals(cheku.getImgPhoto())){
                cheku.setImgPhoto(null);
        }
        if(chekuEntity==null){
            chekuService.updateById(cheku);//根据id更新
            return R.ok();
        }else {
            return R.error(511,"表中有相同数据");
        }
    }


    /**
    * 删除
    */
    @RequestMapping("/renting")
    public R renting(Integer id,Integer day, HttpServletRequest request){
        Long u = (Long) request.getSession().getAttribute("userId");
        Integer userId = Integer.parseInt(String.valueOf(u));
        if(day == null){
            return R.error("使用时间不能为空");
        }
        if(day > 30){
            return R.error("使用时间不能大于30天");
        }
        ChekuEntity cheku = chekuService.selectById(id);
        if(cheku == null){
            return R.error();
        }
        if(cheku.getCkztTypes() == 1){
            return R.error("这个车库已经出租");
        }
        //算账
        YonghuEntity yonghu = yonghuService.selectById(userId);
        YonghuEntity user = yonghuService.selectById(cheku.getRyTypes());
        if(user == null){
            return R.error();
        }
        if(yonghu == null){
            return R.error();
        }
        YuyvejiluEntity yuyvejilu = new YuyvejiluEntity();
        yuyvejilu.setCreateTime(new Date());
        yuyvejilu.setCkTypes(id);
        yuyvejilu.setYhTypes(userId);
        yuyvejilu.setRyTypes(cheku.getRyTypes());
        yuyvejilu.setDay(day);
        yuyvejilu.setLocation(cheku.getLocation());
        Integer max = day * cheku.getMoney();
        yuyvejilu.setDayMax(max);
        if(yonghu.getMoney() < max){
            return R.error("余额不足请充值");
        }
        yonghu.setMoney(yonghu.getMoney()-max);
        user.setMoney(user.getMoney()+max);
        Wrapper<YuyvejiluEntity> queryWrapper = new EntityWrapper<YuyvejiluEntity>()
                .eq("ck_types", yuyvejilu.getCkTypes())
                .eq("yh_types", yuyvejilu.getYhTypes())
                .eq("ry_types", yuyvejilu.getRyTypes())
                ;
        logger.info("sql语句:"+queryWrapper.getSqlSegment());
        YuyvejiluEntity yuyvejiluEntity = yuyvejiluService.selectOne(queryWrapper);
        if(yuyvejiluEntity==null){
            cheku.setCkztTypes(1);
            chekuService.updateById(cheku);
            yonghuService.updateById(yonghu);
            yonghuService.updateById(user);
            yuyvejiluService.insert(yuyvejilu);
            return R.ok();
        }else {
            return R.error(511,"表中有相同数据");
        }
    }


    /**
    * 删除
    */
    @RequestMapping("/thumbsupnumClick")
    public R thumbsupnumClick(Integer ids){
        ChekuEntity cheku = chekuService.selectById(ids);
        if(cheku == null){
           return R.error();
        }
        if(cheku.getThumbsupnum() < 0 || cheku.getThumbsupnum()== null){
            cheku.setThumbsupnum(0);
        }
        cheku.setThumbsupnum(cheku.getThumbsupnum()+1);
        chekuService.updateById(cheku);
        return R.ok();
    }
    /**
     * 删除
     */
    @RequestMapping("/crazilynumClick")
    public R crazilynumClick(Integer ids){
        ChekuEntity cheku = chekuService.selectById(ids);
        if(cheku == null){
            return R.error();
        }
        if(cheku.getCrazilynum() < 0 || cheku.getCrazilynum()== null){
            cheku.setCrazilynum(0);
        }
        cheku.setCrazilynum(cheku.getCrazilynum()+1);
        chekuService.updateById(cheku);
        return R.ok();
    }


    /**
    * 删除
    */
    @RequestMapping("/delete")
    public R delete(@RequestBody Long[] ids){
        logger.debug("Controller:"+this.getClass().getName()+",delete");
        chekuService.deleteBatchIds(Arrays.asList(ids));
        return R.ok();
    }
}

package com.controller;

import java.text.SimpleDateFormat;
import java.util.*;
import javax.servlet.http.HttpServletRequest;

import com.annotation.IgnoreAuth;
import com.entity.YonghuEntity;
import com.service.TokenService;
import com.utils.MPUtil;
import org.apache.commons.lang3.StringUtils;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.*;
import com.baomidou.mybatisplus.mapper.EntityWrapper;
import com.baomidou.mybatisplus.mapper.Wrapper;

import com.entity.YonghuEntity;

import com.service.YonghuService;
import com.utils.PageUtils;
import com.utils.R;

/**
 * 用户表
 * 后端接口
 * @author
 * @email
 * @date 2021-03-16
*/
@RestController
@Controller
@RequestMapping("/yonghu")
public class YonghuController {
    private static final Logger logger = LoggerFactory.getLogger(YonghuController.class);

    @Autowired
    private YonghuService yonghuService;


    @Autowired
    private TokenService tokenService;

    /**
     * 登录
     */
    @IgnoreAuth
    @RequestMapping(value = "/login")
    public R login(String username, String password,String role, HttpServletRequest request) {
        YonghuEntity user = yonghuService.selectOne(new EntityWrapper<YonghuEntity>().eq("username", username));
        if(!user.getRole().equals(role)){
            return R.error("账号、密码或权限不正确");
        }
        if(user==null || !user.getPassword().equals(password)) {
            return R.error("账号或密码不正确");
        }
        String token = tokenService.generateToken(Long.valueOf(user.getId()),user.getName(), "users", user.getRole());
        return R.ok().put("token", token);
    }

    /**
     * 注册
     */
    @IgnoreAuth
    @PostMapping(value = "/register")
    public R register(@RequestBody YonghuEntity user){
//    	ValidatorUtils.validateEntity(user);
        if(yonghuService.selectOne(new EntityWrapper<YonghuEntity>().eq("username", user.getUsername())) !=null) {
            return R.error("用户已存在");
        }
        yonghuService.insert(user);
        return R.ok();
    }

    /**
     * 退出
     */
    @GetMapping(value = "logout")
    public R logout(HttpServletRequest request) {
        request.getSession().invalidate();
        return R.ok("退出成功");
    }

    /**
     * 密码重置
     */
    @IgnoreAuth
    @RequestMapping(value = "/resetPass")
    public R resetPass(String username, HttpServletRequest request){
        YonghuEntity user = yonghuService.selectOne(new EntityWrapper<YonghuEntity>().eq("username", username));
        if(user==null) {
            return R.error("账号不存在");
        }
        user.setPassword("123456");
        yonghuService.update(user,null);
        return R.ok("密码已重置为:123456");
    }


    /**
     * 获取用户的session用户信息
     */
    @RequestMapping("/session")
    public R getCurrUser(HttpServletRequest request){
        Long id = (Long)request.getSession().getAttribute("userId");
        YonghuEntity user = yonghuService.selectById(id);
        return R.ok().put("data", user);
    }

    /**
    * 后端列表
    */
    @RequestMapping("/page")
    public R page(@RequestParam Map<String, Object> params){
        logger.debug("Controller:"+this.getClass().getName()+",page方法");
        PageUtils page = yonghuService.queryPage(params);
        return R.ok().put("data", page);
    }
    /**
    * 后端详情
    */
    @RequestMapping("/info/{id}")
    public R info(@PathVariable("id") Long id){
        logger.debug("Controller:"+this.getClass().getName()+",info方法");
        YonghuEntity yonghu = yonghuService.selectById(id);
        if(yonghu!=null){
            return R.ok().put("data", yonghu);
        }else {
            return R.error(511,"查不到数据");
        }

    }

    /**
    * 后端保存
    */
    @RequestMapping("/save")
    public R save(@RequestBody YonghuEntity yonghu, HttpServletRequest request){
        logger.debug("Controller:"+this.getClass().getName()+",save");
        Wrapper<YonghuEntity> queryWrapper = new EntityWrapper<YonghuEntity>()
            .eq("name", yonghu.getName())
            .eq("username", yonghu.getUsername())
            .eq("password", yonghu.getPassword())
            .eq("sex_types", yonghu.getSexTypes())
            .eq("phone", yonghu.getPhone())
            .eq("money", yonghu.getMoney())
            .eq("role", yonghu.getRole())
            ;
        logger.info("sql语句:"+queryWrapper.getSqlSegment());
        YonghuEntity yonghuEntity = yonghuService.selectOne(queryWrapper);
        if("".equals(yonghu.getImgPhoto()) || "null".equals(yonghu.getImgPhoto())){
            yonghu.setImgPhoto(null);
        }
        if(yonghuEntity==null){
            yonghuService.insert(yonghu);
            return R.ok();
        }else {
            return R.error(511,"表中有相同数据");
        }
    }

    /**
    * 修改
    */
    @RequestMapping("/update")
    public R update(@RequestBody YonghuEntity yonghu, HttpServletRequest request){
        logger.debug("Controller:"+this.getClass().getName()+",update");
        //根据字段查询是否有相同数据
        Wrapper<YonghuEntity> queryWrapper = new EntityWrapper<YonghuEntity>()
            .notIn("id",yonghu.getId())
            .eq("name", yonghu.getName())
            .eq("username", yonghu.getUsername())
            .eq("password", yonghu.getPassword())
            .eq("sex_types", yonghu.getSexTypes())
            .eq("phone", yonghu.getPhone())
            .eq("money", yonghu.getMoney())
            .eq("role", yonghu.getRole())
            ;
        logger.info("sql语句:"+queryWrapper.getSqlSegment());
        YonghuEntity yonghuEntity = yonghuService.selectOne(queryWrapper);
        if("".equals(yonghu.getImgPhoto()) || "null".equals(yonghu.getImgPhoto())){
                yonghu.setImgPhoto(null);
        }
        if(yonghuEntity==null){
            yonghuService.updateById(yonghu);//根据id更新
            return R.ok();
        }else {
            return R.error(511,"表中有相同数据");
        }
    }


    /**
    * 删除
    */
    @RequestMapping("/delete")
    public R delete(@RequestBody Long[] ids){
        logger.debug("Controller:"+this.getClass().getName()+",delete");
        yonghuService.deleteBatchIds(Arrays.asList(ids));
        return R.ok();
    }
}

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处:http://www.coloradmin.cn/o/947910.html

如若内容造成侵权/违法违规/事实不符,请联系多彩编程网进行投诉反馈,一经查实,立即删除!

相关文章

【LeetCode75】第四十一题 二叉搜索树中的搜索

目录 题目&#xff1a; 示例&#xff1a; 分析&#xff1a; 代码&#xff1a; 题目&#xff1a; 示例&#xff1a; 分析&#xff1a; 题目给我们一个搜索二叉树&#xff0c;让我们找出节点值等于目标的节点并返回出去。 首先我们可以直接遍历整棵二叉树&#xff0c;找到值…

Mybatis2,注解实现CRUD

2&#xff0c;注解实现CRUD 使用注解开发会比配置文件开发更加方便。如下就是使用注解进行开发 Select(value "select * from tb_user where id #{id}") public User select(int id);注意&#xff1a; 注解是用来替换映射配置文件方式配置的&#xff0c;所以使用了…

使用 Privoxy 在 Linux 上配置本地代理服务器详细教程

Privoxy 是一个功能强大的开源网络代理软件&#xff0c;它可以帮助我们在 Linux 系统上搭建本地代理服务器。通过配置和使用 Privoxy&#xff0c;您可以实现更安全、匿名以及自定义过滤规则等高级特性。本文将详细介绍如何在 Linux 环境下利用 Privoxy 配置并运行本地代理服务器…

文字转语音怎么转?几种简单转换方法快速转换

将文本转换为语音&#xff0c;可以帮助那些有视觉障碍的人士更便捷地获取信息&#xff0c;以便于听觉上的理解和处理。对于那些需要进行多任务处理的人士&#xff0c;例如在开车或做家务时需要获取信息的人&#xff0c;文字转语音也可以提供便利。那么怎么将文字转换成语音呢&a…

【100天精通python】Day47:python网络编程_Web编程,前后端以及静态服务器

目录 1 网络编程与web编程 1.1 网络编程 1.2 web编程 1.3 前后端交互的基本原理 2 Web开发基础 2.1 HTTP协议 2.2 Web服务器 2.3 前端基础 2.3.1 HTML&#xff08;超文本标记语言&#xff09; 2. 3.2 CSS&#xff08;层叠样式表&#xff09; 2.3.3 JavaScript 2.…

【pyqt5界面化工具开发-1】运行界面程序框架+按钮+文本+位置的设置

目录 一、运行界面化框架 二、基础控件 目标1&#xff1a;新增按钮 目标2&#xff1a;新增文本&#xff1a; 目标3&#xff1a;设置位置 一、运行界面化框架 import sysfrom PyQt5.QtWidgets import QApplication,QWidgetif __name__ __main__:# 接收参数&#xff08;仅…

数据库的备份与分类以及日志

目录 1、数据库的概念 1.1、数据备份的重要性 1.2、造成数据丢失的原因 1.3、 数据库备份的分类 1.3.1、从物理与逻辑的角度&#xff0c; 1.3.2、原理图 1.3.3.1 完全备份&#xff1a; 1.3.2.2 差异备份 1.2.3.3、 增量备份 1.3.3、 备份方式比较 1.4、常见的备份方…

pdf转word怎么进行转换?这几种转换技巧别错过

pdf转word怎么进行转换&#xff1f;将PDF转换为Word文档可以带来很多便利。一些人可能需要编辑PDF文件中的文本或者图片&#xff0c;但是PDF文件通常不易于编辑。将PDF文件转换为Word文档之后&#xff0c;就可以像编辑普通Word文档一样轻松地编辑它们。那么今天小编就来给大家介…

计算机竞赛 基于机器视觉的火车票识别系统

文章目录 0 前言1 课题意义课题难点&#xff1a; 2 实现方法2.1 图像预处理2.2 字符分割2.3 字符识别部分实现代码 3 实现效果最后 0 前言 &#x1f525; 优质竞赛项目系列&#xff0c;今天要分享的是 基于机器视觉的火车票识别系统 该项目较为新颖&#xff0c;适合作为竞赛…

IntelliJ IDEA2021.3.1 使用 MybatisCodeHelperPro插件

一、 下载 下载破解后的 MybatisCodeHelperPro 的 V3.2.2版本 V3.2.2-CSDN 或者 V3.2.2-Gitee 二、 应用 将下载下来的Zip文件 放到电脑上的某个位置 (最好放在Idea 管理插件的 plugins 下) 然后自从搜索 Idea如何从磁盘中应用插件 三、激活 由于已经破解过了 但是还是需要激活…

基于信息增益的特征重要性分析

培训和测试样本 用于模型评估的数据集包括8652个F1杂交玉米样本&#xff0c;这些样本具有测量的抽穗天数&#xff08;DTT&#xff09;、株高&#xff08;PH&#xff09;和穗重&#xff08;EW&#xff09;表型&#xff0c;这些表型来自母体库和30名父系测试者小组的杂交&#x…

服务报network error错误

问题&#xff1a;服务请求时会偶发性的报【network error网络超时】&#xff08;请求瞬间就报&#xff09; 可能原因&#xff1a; 服务器linux内核调优时将&#xff1a;net.ipv4.tcp_tw_recycle设置为1&#xff0c;开启TCP连接中TIME-WAIT sockets的快速回收&#xff0c;默认为…

GNU make系列之介绍Makefile(0)

一.欢迎来到我的酒馆 在本章节介绍Makefile。 目录 一.欢迎来到我的酒馆二.GNU make 预览三.一个简单的Makefile四.make程序如何处理Makefile文件五.在Makefile中使用变量 二.GNU make 预览 2.1 GNU make工具会自动决定哪些程序需要被重新编译&#xff0c;并且执行相应的命令来…

彩虹外链网盘V5.5更新 支持批量封禁/优化加载速度

彩虹外链网盘V5.5更新 支持批量封禁/优化加载速度 彩虹外链网盘&#xff0c;是一款PHP网盘与外链分享程序&#xff0c;支持所有格式文件的上传&#xff0c;可以生成文件外链、图片外链、音乐视频外链&#xff0c;生成外链同时自动生成相应的UBB代码和HTML代码&#xff0c;还可…

Mybatis1.7 修改

1.7 修改 1.7.1 编写接口方法1.7.2 编写SQL语句1.7.3 编写测试方法 如图所示是修改页面&#xff0c;用户在该页面书写需要修改的数据&#xff0c;点击 提交 按钮&#xff0c;就会将数据库中对应的数据进行修改。注意一点&#xff0c;如果哪儿个输入框没有输入内容&#xff0c;我…

苹果手机怎么录音?分享2个简单方法

录音软件能够帮助我们记录学习和工作中一些重要的笔记、讲座、课堂语录、音乐灵感等等。录制完成后它会自动生成文件&#xff0c;可供人们随时随地进行听阅。 但对于刚使用苹果手机的用户来说&#xff0c;他们还不太熟悉苹果系统&#xff0c;所以找不到语音备忘录在哪里。那么…

Linux CentOS7sed的替换及逆转功能

在各项工作&#xff0c;需要大量的文本处理。有时&#xff0c;想把文件按行翻转一下&#xff0c;最后一行显示在第一行&#xff0c;倒数第二行显示在正数第二行&#xff0c;等等。这是行的逆转要求&#xff0c;可以通过命令tac对文件操作&#xff0c;达到目的&#xff1b;有时&…

百望云产业链图谱引领数字变革 赋能企业高价值数字资产管理

全球经济相互依存度增加&#xff0c;技术进步的速度越来越快&#xff0c;市场竞争日益激烈……这些因素共同塑造了一个复杂多变、不确定性极高的商业环境。在当今风云变幻的经济格局和市场波动不断的大背景下&#xff0c;众多企业们面临着如何利用海量数据赋能业务决策的挑战和…

0829【综述】面向时空数据的区块链研究综述

摘要:时空数据包括时间和空间2个维度,常被应用于物流、供应链等领域。传统的集中式存储方式虽然具有一定的便捷性,但不能充分满足时空数据存储及查询等要求,而区块链技术采用去中心化的分布式存储机制,并通过共识协议来保证数据的安全性。研究现有区块链1.0、2.0和以Block-DAG为…

Java--输入(格式化)输出

1、读取输入 要想通过控制台进行输入&#xff0c;首先需要构造一个与“标准输入流”System.in关联的Scanner对象。 import java.util.*; // Scanner类定义在java.util包中 ​ Scanner in new Scanner(System.in); java.util.Scanner Scanner(InputStream in) 用给定的输人流…