这里写自定义目录标题
- **注意:对hutool工具包进行一个快速入门,主要通过里面几个比较常用的Util来分析。**
- 插入链接与图片
- 如何插入一段漂亮的代码片
- 生成一个适合你的列表
- 创建一个表格
- 创建一个自定义列表
- 如何创建一个注脚
- 注释也是必不可少的
- KaTeX数学公式
- 新的甘特图功能,丰富你的文章
- UML 图表
- FLowchart流程图
- 导出与导入
注意:对hutool工具包进行一个快速入门,主要通过里面几个比较常用的Util来分析。
一:导包
<dependency><groupId>cn.hutool</groupId><artifactId>hutool-all</artifactId><version>5.7.17</version></dependency>
(1)Util
BeanUtil.fillBeanWithMap(map, new User(), false)
讲解:这个方法是将一个map对象里面key和value封装到一个bean对象中,第一个方法参数是需要传入一个map,第二个方法参数需要传入new一个bean对象,第三个参数是需要忽略错误嘛,当然不,所以我们设置为false
案例:
![](/assets/blank.gif)
输出:User(id=null, name=王莎, age=23, email=1812921389, isDeleted=null)
二: beanToMap()方法
BeanUtil.beanToMap(user)
BeanUtil.beanToMap(user, new HashMap<>(),CopyOptions.create().setIgnoreNullValue(true).setFieldValueEditor((fieldName, fileldValue) -> fieldValue.toString()))
讲解:这个方法分成两份代码讲解,总之这个方法就是将我们的bean对象转换成一个map对象,由于有时候我们的bean对象中有id字段是一个Long的数据类型,所以才有了下面的一份代码,如果还是用第一份代码的话就会出现一个Long转换成String类型的错误,所以需要我们亲自去toString()一下
![](/assets/blank.gif)
输出:{id=100, name=哇哈哈, age=20, email=123456, isDeleted=null}
三:copyProperties()方法
BeanUtil.copyProperties(user,userDTO.class)
讲解:这个方法就是将user对象变成一个userDTO对象,但是要实现user对象里面的数据向userDTO对象中转移,第一个方法参数是要被转换的对象,第二个方法参数是将要转换成另一个对象的一个class对象
![](/assets/blank.gif)
输出:User(id=100, name=哇哈哈, age=20, email=123456, isDeleted=null)
插入链接与图片
链接: link.
图片: ![](/assets/blank.gif)
带尺寸的图片: ![](/assets/blank.gif)
居中的图片: ![](/assets/blank.gif)
居中并且带尺寸的图片: ![](/assets/blank.gif)
当然,我们为了让用户更加便捷,我们增加了图片拖拽功能。
如何插入一段漂亮的代码片
去博客设置页面,选择一款你喜欢的代码片高亮样式,下面展示同样高亮的 代码片
.
// An highlighted block
var foo = 'bar';
生成一个适合你的列表
- 项目1
- 项目2
- 项目3
创建一个表格
一个简单的表格是这么创建的:
项目
|
Value
|
电脑
|
$1600
|
手机
|
$12
|
导管
|
$1
|
设定内容居中、居左、居右
使用:---------:
居中
使用:----------
居左
使用----------:
居右
第一列
|
第二列
|
第三列
|
第一列文本居中
|
第二列文本居右
|
第三列文本居左
|
SmartyPants
SmartyPants将ASCII标点字符转换为“智能”印刷标点HTML实体。例如:
TYPE
|
ASCII
|
HTML
|
Single backticks
|
'Isn't this fun?'
|
‘Isn’t this fun?’
|
Quotes
|
"Isn't this fun?"
|
“Isn’t this fun?”
|
Dashes
|
-- is en-dash, --- is em-dash
|
– is en-dash, — is em-dash
|
创建一个自定义列表
-
Markdown
-
Text-to- HTML conversion tool
-
Authors
-
John
-
Luke
如何创建一个注脚
一个具有注脚的文本。1
注释也是必不可少的
Markdown将文本转换为 HTML。
KaTeX数学公式
您可以使用渲染LaTeX数学表达式 KaTeX:
Gamma公式展示 Γ ( n ) = ( n − 1 ) ! ∀ n ∈ N \Gamma(n) = (n-1)!\quad\forall n\in\mathbb N Γ(n)=(n−1)!∀n∈N 是通过欧拉积分
Γ ( z ) = ∫ 0 ∞ t z − 1 e − t d t . \Gamma(z) = \int_0^\infty t^{z-1}e^{-t}dt\,. Γ(z)=∫0∞tz−1e−tdt.
你可以找到更多关于的信息 LaTeX 数学表达式here.
新的甘特图功能,丰富你的文章
Mon 06 Mon 13 Mon 20 已完成 进行中 计划一 计划二 现有任务 Adding GANTT diagram functionality to mermaid
UML 图表
可以使用UML图表进行渲染。 Mermaid. 例如下面产生的一个序列图:
#mermaid-svg-RxQmiEp67m0WVxFU {font-family:"trebuchet ms",verdana,arial,sans-serif;font-size:16px;fill:#333;}#mermaid-svg-RxQmiEp67m0WVxFU .error-icon{fill:#552222;}#mermaid-svg-RxQmiEp67m0WVxFU .error-text{fill:#552222;stroke:#552222;}#mermaid-svg-RxQmiEp67m0WVxFU .edge-thickness-normal{stroke-width:2px;}#mermaid-svg-RxQmiEp67m0WVxFU .edge-thickness-thick{stroke-width:3.5px;}#mermaid-svg-RxQmiEp67m0WVxFU .edge-pattern-solid{stroke-dasharray:0;}#mermaid-svg-RxQmiEp67m0WVxFU .edge-pattern-dashed{stroke-dasharray:3;}#mermaid-svg-RxQmiEp67m0WVxFU .edge-pattern-dotted{stroke-dasharray:2;}#mermaid-svg-RxQmiEp67m0WVxFU .marker{fill:#333333;stroke:#333333;}#mermaid-svg-RxQmiEp67m0WVxFU .marker.cross{stroke:#333333;}#mermaid-svg-RxQmiEp67m0WVxFU svg{font-family:"trebuchet ms",verdana,arial,sans-serif;font-size:16px;}#mermaid-svg-RxQmiEp67m0WVxFU .actor{stroke:hsl(259.6261682243, 59.7765363128%, 87.9019607843%);fill:#ECECFF;}#mermaid-svg-RxQmiEp67m0WVxFU text.actor>tspan{fill:black;stroke:none;}#mermaid-svg-RxQmiEp67m0WVxFU .actor-line{stroke:grey;}#mermaid-svg-RxQmiEp67m0WVxFU .messageLine0{stroke-width:1.5;stroke-dasharray:none;stroke:#333;}#mermaid-svg-RxQmiEp67m0WVxFU .messageLine1{stroke-width:1.5;stroke-dasharray:2,2;stroke:#333;}#mermaid-svg-RxQmiEp67m0WVxFU #arrowhead path{fill:#333;stroke:#333;}#mermaid-svg-RxQmiEp67m0WVxFU .sequenceNumber{fill:white;}#mermaid-svg-RxQmiEp67m0WVxFU #sequencenumber{fill:#333;}#mermaid-svg-RxQmiEp67m0WVxFU #crosshead path{fill:#333;stroke:#333;}#mermaid-svg-RxQmiEp67m0WVxFU .messageText{fill:#333;stroke:#333;}#mermaid-svg-RxQmiEp67m0WVxFU .labelBox{stroke:hsl(259.6261682243, 59.7765363128%, 87.9019607843%);fill:#ECECFF;}#mermaid-svg-RxQmiEp67m0WVxFU .labelText,#mermaid-svg-RxQmiEp67m0WVxFU .labelText>tspan{fill:black;stroke:none;}#mermaid-svg-RxQmiEp67m0WVxFU .loopText,#mermaid-svg-RxQmiEp67m0WVxFU .loopText>tspan{fill:black;stroke:none;}#mermaid-svg-RxQmiEp67m0WVxFU .loopLine{stroke-width:2px;stroke-dasharray:2,2;stroke:hsl(259.6261682243, 59.7765363128%, 87.9019607843%);fill:hsl(259.6261682243, 59.7765363128%, 87.9019607843%);}#mermaid-svg-RxQmiEp67m0WVxFU .note{stroke:#aaaa33;fill:#fff5ad;}#mermaid-svg-RxQmiEp67m0WVxFU .noteText,#mermaid-svg-RxQmiEp67m0WVxFU .noteText>tspan{fill:black;stroke:none;}#mermaid-svg-RxQmiEp67m0WVxFU .activation0{fill:#f4f4f4;stroke:#666;}#mermaid-svg-RxQmiEp67m0WVxFU .activation1{fill:#f4f4f4;stroke:#666;}#mermaid-svg-RxQmiEp67m0WVxFU .activation2{fill:#f4f4f4;stroke:#666;}#mermaid-svg-RxQmiEp67m0WVxFU .actorPopupMenu{position:absolute;}#mermaid-svg-RxQmiEp67m0WVxFU .actorPopupMenuPanel{position:absolute;fill:#ECECFF;box-shadow:0px 8px 16px 0px rgba(0,0,0,0.2);filter:drop-shadow(3px 5px 2px rgb(0 0 0 / 0.4));}#mermaid-svg-RxQmiEp67m0WVxFU .actor-man line{stroke:hsl(259.6261682243, 59.7765363128%, 87.9019607843%);fill:#ECECFF;}#mermaid-svg-RxQmiEp67m0WVxFU .actor-man circle,#mermaid-svg-RxQmiEp67m0WVxFU line{stroke:hsl(259.6261682243, 59.7765363128%, 87.9019607843%);fill:#ECECFF;stroke-width:2px;}#mermaid-svg-RxQmiEp67m0WVxFU :root{--mermaid-font-family:"trebuchet ms",verdana,arial,sans-serif;} 张三 李四 王五 你好!李四, 最近怎么样? 你最近怎么样,王五? 我很好,谢谢! 我很好,谢谢! 李四想了很长时间, 文字太长了 不适合放在一行. 打量着王五... 很好... 王五, 你怎么样? 张三 李四 王五
这将产生一个流程图。:
#mermaid-svg-QasfTz1IWVhsBmet {font-family:"trebuchet ms",verdana,arial,sans-serif;font-size:16px;fill:#333;}#mermaid-svg-QasfTz1IWVhsBmet .error-icon{fill:#552222;}#mermaid-svg-QasfTz1IWVhsBmet .error-text{fill:#552222;stroke:#552222;}#mermaid-svg-QasfTz1IWVhsBmet .edge-thickness-normal{stroke-width:2px;}#mermaid-svg-QasfTz1IWVhsBmet .edge-thickness-thick{stroke-width:3.5px;}#mermaid-svg-QasfTz1IWVhsBmet .edge-pattern-solid{stroke-dasharray:0;}#mermaid-svg-QasfTz1IWVhsBmet .edge-pattern-dashed{stroke-dasharray:3;}#mermaid-svg-QasfTz1IWVhsBmet .edge-pattern-dotted{stroke-dasharray:2;}#mermaid-svg-QasfTz1IWVhsBmet .marker{fill:#333333;stroke:#333333;}#mermaid-svg-QasfTz1IWVhsBmet .marker.cross{stroke:#333333;}#mermaid-svg-QasfTz1IWVhsBmet svg{font-family:"trebuchet ms",verdana,arial,sans-serif;font-size:16px;}#mermaid-svg-QasfTz1IWVhsBmet .label{font-family:"trebuchet ms",verdana,arial,sans-serif;color:#333;}#mermaid-svg-QasfTz1IWVhsBmet .cluster-label text{fill:#333;}#mermaid-svg-QasfTz1IWVhsBmet .cluster-label span{color:#333;}#mermaid-svg-QasfTz1IWVhsBmet .label text,#mermaid-svg-QasfTz1IWVhsBmet span{fill:#333;color:#333;}#mermaid-svg-QasfTz1IWVhsBmet .node rect,#mermaid-svg-QasfTz1IWVhsBmet .node circle,#mermaid-svg-QasfTz1IWVhsBmet .node ellipse,#mermaid-svg-QasfTz1IWVhsBmet .node polygon,#mermaid-svg-QasfTz1IWVhsBmet .node path{fill:#ECECFF;stroke:#9370DB;stroke-width:1px;}#mermaid-svg-QasfTz1IWVhsBmet .node .label{text-align:center;}#mermaid-svg-QasfTz1IWVhsBmet .node.clickable{cursor:pointer;}#mermaid-svg-QasfTz1IWVhsBmet .arrowheadPath{fill:#333333;}#mermaid-svg-QasfTz1IWVhsBmet .edgePath .path{stroke:#333333;stroke-width:2.0px;}#mermaid-svg-QasfTz1IWVhsBmet .flowchart-link{stroke:#333333;fill:none;}#mermaid-svg-QasfTz1IWVhsBmet .edgeLabel{background-color:#e8e8e8;text-align:center;}#mermaid-svg-QasfTz1IWVhsBmet .edgeLabel rect{opacity:0.5;background-color:#e8e8e8;fill:#e8e8e8;}#mermaid-svg-QasfTz1IWVhsBmet .cluster rect{fill:#ffffde;stroke:#aaaa33;stroke-width:1px;}#mermaid-svg-QasfTz1IWVhsBmet .cluster text{fill:#333;}#mermaid-svg-QasfTz1IWVhsBmet .cluster span{color:#333;}#mermaid-svg-QasfTz1IWVhsBmet div.mermaidTooltip{position:absolute;text-align:center;max-width:200px;padding:2px;font-family:"trebuchet ms",verdana,arial,sans-serif;font-size:12px;background:hsl(80, 100%, 96.2745098039%);border:1px solid #aaaa33;border-radius:2px;pointer-events:none;z-index:100;}#mermaid-svg-QasfTz1IWVhsBmet :root{--mermaid-font-family:"trebuchet ms",verdana,arial,sans-serif;}
链接
长方形
圆
圆角长方形
菱形
FLowchart流程图
我们依旧会支持flowchart的流程图:
Created with Raphaël 2.3.0 开始 我的操作 确认? 结束 yes no
- 关于 Flowchart流程图 语法,参考 这儿.
导出与导入
导出
如果你想尝试使用此编辑器, 你可以在此篇文章任意编辑。当你完成了一篇文章的写作, 在上方工具栏找到 文章导出 ,生成一个.md文件或者.html文件进行本地保存。
导入
如果你想加载一篇你写过的.md文件,在上方工具栏可以选择导入功能进行对应扩展名的文件导入,
继续你的创作。
hutool工具包快速入门相关推荐
- 圣天诺HL加密锁(原HASP加密锁)快速入门
圣天诺HL加密锁(原HASP加密锁)初学者工具包 快速入门指南 祝贺您选择 Sentinel LDK 保护您的软件.本快速入门说明了用 Sentinel HL 锁,通过 Sentinel LDK 自 ...
- 凸优化工具包CVX快速入门
CVX工具包可以从斯坦福Boyed教授的个人主页下载http://cvxr.com/cvx/download/,也可以从我的资源中下载http://download.csdn.net/detail/h ...
- RMAN快速入门指南
RMAN快速入门指南 1. What is RMAN? 什么是RMAN? 4 2. Terminology 专业词汇解释 4 2.1. Backup sets 备份集合 4 2. ...
- Lucene第一篇【介绍Lucene、快速入门】
tags: Lucene 什么是Lucene?? Lucene是apache软件基金会发布的一个开放源代码的全文检索引擎工具包,由资深全文检索专家Doug Cutting所撰写,它是一个全文检索引擎的 ...
- Flux快速入门指南
翻译自 http://www.jackcallister.com/2015/02/26/the-flux-quick-start-guide.html 2015年2月26日 本文将概述如何使用Flux ...
- 【完结】12大深度学习开源框架(caffe,tf,pytorch,mxnet等)快速入门项目
这是一篇总结文,给大家来捋清楚12大深度学习开源框架的快速入门,这是有三AI的GitHub项目,欢迎大家star/fork. https://github.com/longpeng2008/yousa ...
- 【完结】给新手的12大深度学习开源框架快速入门项目
文/编辑 | 言有三 这是一篇总结文,给大家来捋清楚12大深度学习开源框架的快速入门,这是有三AI的GitHub项目,欢迎大家star/fork. https://github.com/longpen ...
- Apollo进阶课程㊳丨Apollo平台的快速入门
原文链接:进阶课程㊳丨Apollo平台的快速入门 Apollo是向汽车行业及自动驾驶领域的合作伙伴提供一个开放.完整.安全的软件平台,帮助他们结合车辆和硬件系统,快速搭建一套属于自己的完整的自动驾驶系 ...
- JScharts快速入门
JScharts快速入门 作者:chszs,转载需注明.博客主页:http://blog.csdn.net/chszs 一.JScharts介绍 JScharts是一个用于在浏览器直接绘制图表的Jav ...
最新文章
- 安装APK,启动系统Activity
- STM32 电机教程 24 - ST MCLIB实战之无感变绝对式位置传感器
- 常见计算机英语词汇翻译,常见计算机英语词汇解释(1)
- 失配树(border树)
- 武汉船舶职业技术学院计算机分数线,武汉船舶职业技术学院录取分数线2021是多少分(附历年录取分数线)...
- Android笔记 pacth图形
- python交互模式下tab键自动补全
- 运行出现 Multiple dex files define Landroid/support/annotation/AnimRes 解决方法
- 英文科技论文写作中常见的问题和技巧(自用整理)
- 领扣LintCode问题答案-5. 第k大元素
- 竞品分析:腾讯课堂vs中国大学MOOC(从用户体验五要素角度)
- 数据分析:AARRR模型
- 18 | 需求管理:太多人给你安排任务,怎么办?
- 编程语言php加密与解密的方法
- BIP语言介绍(一)
- java手机验证码登录代码_java web实现手机短信验证码登录实例
- UDS诊断服务—物理寻址,功能寻址区别
- uni-app框架调研
- 我有一台云服务器,可以干什么?
- 数据分析中缺失值的处理方法
热门文章
- 最“土气”财报出炉,全是田间地头那点事儿
- java+springboot+vue驾校网站_毕业设计
- 【无标题】c++ MFC图像处理CImage类常用操作代码
- sma4win数据处理_[原创]Win10 SXE使用-申精
- NB-IoT成为利器,物联网云服务平台如何卡位?
- Blizzard Something
- 哈工大计算机系统大作业-Hello的程序人生
- 长度是指字节还是字符
- 相位解包裹(四)两类相位解包裹算法
- 计算机跳过密码直接登录密码,小编传授win10免密码自动登录怎么设置 win10跳过密码直接登录电脑的操作教程...