@RequestMapping 路由正则

  • Post author:
  • Post category:其他

package com.dida.springboot.demo.controller; import org.springframework.stereotype.Controller; import org.springframework.web.bind.annotation.GetMapping; @Controller public class TestController { // 匹…

继续阅读 @RequestMapping 路由正则

AutoMapper系列2-聚合、解耦

  • Post author:
  • Post category:其他

对于某个聚合对象,可能存在嵌套,思路基本是一致的: #region demo5 public class OuterSource { public int Value { get; set; } public InnerSource Inner { get; set; } } public class InnerSource { public int OtherValue { get; set; …

继续阅读 AutoMapper系列2-聚合、解耦

安装octomap

  • Post author:
  • Post category:其他

先下载,不过下来后需要查看自己电脑中ros的octomap版本,查看方法/opt/ros/kinetic/share/octomap里的octomapconfigversion打开找到版本 编译之前要sudo apt-get install libqglviewer-dev-qt4,详情请看https://www.cnblogs.com/hitlrk/p/6667253.html?utm_sour…

继续阅读 安装octomap

HDFS学习笔记(四):MapReduce原理

  • Post author:
  • Post category:其他

文章目录 1、MapReduce 基本概念 1.1、MapReduce 基本定义 1.2、MapReduce 的模型简介 1.3、MapReduce 的特点 1.4、MapReduce 与传统并行计算框架的对比 1.5、小结 2、MapReduce 的体系结构 3、MapReduce 编程模型 3.1、MapReduce 各个执行阶段 3.2、Split(分片) 3.3、Shuffle 过程(洗牌…

继续阅读 HDFS学习笔记(四):MapReduce原理

java使用Map缓存

  • Post author:
  • Post category:java

缓存 什么是缓存? 平常的开发项目中,多多少少都会使用到缓存,因为一些数据我们没有必要每次查询的时候都去查询到数据库。 缓存的使用场景: 在Java应用中,对于访问频率高,更新少的数据,通常的方案是将这类数据加入缓存中,相对从数据库中读取,读缓存效率会有很大提升。 在集群环境下,常用的分布式缓存有Redis等。但在某些业务场景上,可能不需要去搭建一套复杂的分布式缓存系统,在单机环境下,通常是会希望…

继续阅读 java使用Map缓存

Solidity学习过程:mapping映射

  • Post author:
  • Post category:solidity

pragma solidity^0.5.0; contract mappingTest{ //idmapping代表地址与id映射到了一起,namemapping代表id与名字的字符串映射到了一起 mapping(address => uint) idmapping;//0xAb8483F64d9C6d1EcF9b849Ae677dD3315835cb2 => 1 mapping(ui…

继续阅读 Solidity学习过程:mapping映射

mapState使用方法

  • Post author:
  • Post category:其他

一、mapState是什么? 当一个组件需要获取多个状态的时候,将这些状态都声明为计算属性会有些重复和冗余。为了解决这个问题,我们可以使用 mapState 辅助函数帮助我们生成计算属性 二、在options api 中使用mapState? 代码如下(示例): 1.store中代码 2.组件中使用 import { mapState } from 'vuex' // computed模板 com…

继续阅读 mapState使用方法

XmlMapper详解及工具类封装

  • Post author:
  • Post category:其他

一、XmlMapper说明 1、依赖包引入 <dependency> <groupId>com.fasterxml.jackson.dataformat</groupId> <artifactId>jackson-dataformat-xml</artifactId> <version>2.11.2</version&g…

继续阅读 XmlMapper详解及工具类封装

resultMap与resultType、parameterMap与 parameterType的区别

  • Post author:
  • Post category:其他

Map:映射;Type:Java类型 resultMap 与 resultType、parameterMap 与  parameterType的区别 在面试的时候被问到的几率非常高,出现的次数到了 令人发指 的地步,笔者认为有必要单独列一章郑重声明, 共勉 resultMap & resultType 两者都是表示 查询结果集 与 java对象 之间的一种关系,处理查询结果集,映射到jav…

继续阅读 resultMap与resultType、parameterMap与 parameterType的区别