- 2020-03-14
Jackson__Zhang
班级:L3-B姓名:张文清Jackson学号:20193000624日期:2020/3/10作业序号(WritingAssignmentNo.):001题目:Somepeoplesaythatplayingateamsport,suchassoccerorbasketball,shouldbecompulsoryforstudentsbecauseithasmanybenefits.Whatare
- 【SpringMVC】五、Json数据交互 Json乱码处理 Jackson Fastjson【狂神篇】
Y1567409
程序员json交互
简洁和清晰的层次结构使得JSON成为理想的数据交换语言。易于人阅读和编写,同时也易于机器解析和生成,并有效地提升网络传输效率。在JavaScript语言中,一切都是对象。因此,任何JavaScript支持的类型都可以通过JSON来表示,例如字符串、数字、对象、数组等。要求和语法格式:对象表示为键值对,数据由逗号分隔花括号保存对象方括号保存数组JSON键值对是用来保存JavaScript对象的一种方
- 03-JSON-JSON数据和Java对象的相互转换(jackson解析器、注解、list、map)
Gy-qwert
javajsonservlet
一、JSON数据转换Java对象在Java中,将JSON数据转换为Java对象,Jackson作为一个优秀的JSON处理库,提供了方便的API来实现这个需求。具体来说,需要使用ObjectMapper类提供的readValue()方法,该方法提供多种重载形式,可以根据不同的参数类型来读取JSON数据并转换为对应的Java对象。以下是一个将JSON数据转换为Java对象的示例:假设有如下的JSON数
- 使用jackson将xml和对象、List相互转换
齐 飞
xmllistjavaspringboot后端
文章目录JacksonXml常用注解常用的配置属性相关依赖jackson工具类xml和对象相互转换xml数据实体类xml转为对象对象转为xmlxml和List相互转换xml数据实体类List转xmlxml转List方法1方法2@JacksonXmlElementWrapper的useWrapping参数区别总结JacksonXmlJackson是一个广泛使用的JSON处理库,但在处理XML数据时,
- Redis的incr命令引发的反序列化异常和ERR value is not an integer or out of range异常
臣妾写不来啊
Java编码技巧redis数据库缓存
在Java中使用inc命令的时候发现redis中的值被反序列化后居然不是数字,检查后发现可能是序列化器没对,在redis配置的地方将序列化器设置为Jackson2JsonRedisSerializer后使用整成,贴上代码@Bean(name="RedisTemplate")@SuppressWarnings("all")publicRedisTemplateredisTemplate(RedisC
- JSON parse error: Illegal character ((CTRL-CHAR, code 31)): only regular white space (\r, \n, \t)
Chen__Wu
javajavajson
JSONparseerror:Illegalcharacter((CTRL-CHAR,code31)):onlyregularwhitespace(\r,\n,\t)isallowedbetweentokens;nestedexceptioniscom.fasterxml.jackson.core.JsonParseException:Illegalcharacter((CTRL-CHAR,cod
- java xml 转json json 转 json对象
在下,杨江河
遇到的问题javaxmljson
xml转json在Java中将XML转换为JSON是一个常见的需求,尤其是在处理Web服务或数据交换时。有多种库可以帮助你完成这项任务,但其中最流行和广泛使用的一个是org.json(虽然它本身不直接支持XML到JSON的转换,但可以通过解析XML然后构建JSON来实现)和com.fasterxml.jackson.dataformat.xml(Jackson库的一个扩展,可以直接从XML解析到J
- 后端处理前端NaN导致报错
旋转跳跃闭着眼
用实体接参数时,属性类型是Double,前端传NaN会报错,做了简单处理,记录一下,当然前端不传NaN就更好了…packagecn.edu.oa.jsonSerializer;importcn.micro.framework.exception.BusinessException;importcom.fasterxml.jackson.core.JsonParser;importcom.faste
- JWT生成、解析token
睆小白
javaandroid开发语言
目录1.导入JWT相关依赖2.JWT生成token3.JWT解析token4.测试结果5.JWT加密、解密工具类1.导入JWT相关依赖io.jsonwebtokenjjwt-api0.10.2io.jsonwebtokenjjwt-impl0.10.2io.jsonwebtokenjjwt-jackson0.10.22.JWT生成token/***获取JWT令牌*@return*/publicst
- 数据分析利器:Java与MySQL构建强大的数据挖掘系统
lizi88888
数据挖掘数据分析java
数据分析在当今信息时代具有重要的作用,它可以帮助企业和组织深入理解数据,发现隐藏在数据中的模式和规律,并基于这些洞察进行决策和优化。Java与MySQL作为两个强大的工具,结合起来可以构建出一个高效、可靠且功能丰富的数据挖掘系统。一、Java在数据分析中的应用1、数据处理和清洗:Java提供了丰富的数据处理和操作库,例如ApacheCommons、Jackson等,可以方便地对各种数据格式进行解析
- Java反射机制笔记
爱吃大猫的小鱼
java笔记
在一些组件或者框架中开发中,他们本身是不知道要处理哪些类,例如jackson组件,我们给他什么类,他就要处理转换什么类newObjectMapper().writeValueAsString(user)newObjectMapper().writeValueAsString(admin)newObjectMapper().writeValueAsString(result)在web.xml中配置了
- only regular white space (\r, \n, \t) is allowed between tokens
梦昼初PurpleShell
经验分享javaspringcloudfeign
Causedby:com.fasterxml.jackson.core.JsonParseException:Illegalcharacter((CTRL-CHAR,code31)):onlyregularwhitespace(\r,\n,\t)isallowedbetweentokensat[Source:(PushbackInputStream);line:1,column:2]该异常是由于S
- 联华证券-美联储降息补贴:额外补贴,美元短期走势或保持稳定
ccjpcbe
金融
市场进一步确信美联储9月的加息举措,即便对加息幅度的预测并不一致。当地时间8月23日,美联储主席鲍威尔在JacksonHole年度会议中发出迄今为止最强烈的降息信号:为避免国内劳动力市场进一步疲弱,美联储打算采取行动,即将在9月降息。尽管鲍威尔表示现在已到了政策调整的时候,对通胀前景有更多的信心,但其并未明确降息的幅度,后者将取决于即将公布的数据、不断变化的前景和风险平衡。投资者此前已经预期美联储
- Spring Boot中处理JSON日期格式
林凤g
springbootjson后端
文章目录SpringBoot中处理JSON日期格式一、@JsonFormat二、配置默认格式三、自定义Jackson的ObjectMapper总结SpringBoot中处理JSON日期格式SpringBootweb,往往需要对返回的日期格式进行相应的处理,以下列出目前常用的三种处理日期格式的方式。一、@JsonFormat需要在每个日期属性上,添加@JsonFormat注解,可以是LocalDat
- java json工具类_Java 的 JSON 开源类库之JackSon工具类--JSONUtils
奉义天涯
javajson工具类
Java的JSON开源类库之JackSon工具类--JSONUtils,有需要的朋友可以参考下。JSON是JavaScriptObjectNotation的缩写,是一种轻量级的数据交换形式,是一种XML的替代方案,而且比XML更小,更快而且更易于解析。因为JSON描述对象的时候使用的是JavaScript语法,它是语言和平台独立的,并且这些年许多JSON的解析器和类库被开发出来。在这篇文章中,我们
- Java工具封装:Yaml、Properties、Json三种内容格式之间互相转换
嗯嗯**
JavajavajsonYamlProperties内容转换
文章目录概述工具支持转换的形式代码测试可视化体验测试概述源码地址:https://github.com/FasterXML/jackson-dataformats-text依赖com.fasterxml.jackson.dataformatjackson-dataformat-yaml2.14.0-rc3com.fasterxml.jackson.dataformatjackson-datafor
- Java中的Jackson:高级进阶篇
墨瑾轩
Java类库Java乐园java开发语言
关注墨瑾轩,带你探索编程的奥秘!超萌技术攻略,轻松晋级编程高手技术宝库已备好,就等你来挖掘订阅墨瑾轩,智趣学习不孤单即刻启航,编程之旅更有趣❓引言嗨,小伙伴们!今天我们将一起探索Jackson这个强大的JSON处理库。如果你需要在Java程序中处理JSON数据,那么Jackson绝对是你的首选。接下来,我们就一步步地探索Jackson的魅力吧!什么是Jackson?Jackson是一个开源的Ja
- Java反射机制&反射方法解析&反射案例
NapKinG111
JavaSEjava开发语言学习笔记交互json
java反射在一些组件或者框架开发中声明,他们本身不知道要处理哪些类,例如Jackson组件,在web.xml中配置了哪些servlet类,Tomcat就要创建哪些类对象在mybatis中,给了什么类型,mybatis就可以将结果封装映射对给定的类的对象中以前已知类名的使用方式,可以看作是正向使用类框架只需要写一套程序,就可以处理我们给他的任意类只需要知道类的名字,通过名字动态获取类中的信息,被称
- Jackson 反序列化漏洞
B1ackMa9ic
网络安全安全系统安全web安全安全架构python网络
文章目录Jackson反序列化漏洞利用条件Jackson反序列化漏洞原理漏洞利用过程漏洞示例Jackson反序列化漏洞黑盒测试方法猜测后端是否有JacksonJackson反序列化漏洞利用条件1.DefaultTyping设置参数:开启了JAVA_LANG_OBJECT2.@JsonTypeInfo注解:@JsonTypeInfo(use=JsonTypeInfo.Id.MINIMAL_CLASS
- mybatis 排坑日记1 – @TableField(typeHandler = JacksonTypeHandler.class) 查询时不生效为null
chenkangck50
mybatisjava开发语言
使用@TableField(typeHandler=JacksonTypeHandler.class)经常发现数据新增可以,查询结果为null,记录下空查询结果1.如果在使用JacksonTypeHandler时遇到空查询结果,则可能需要将autoResultMap属性添加到@TableName注释中。例如:@TableName(value=“my_table”,autoResultMap=tru
- Jackson消息转换器
Annaday
springjavaymlspringboot
Jacksonjson的概念json是一种应用广泛的数据交换格式,例如:{"name":"admin","age":20,"hobbies":["唱","跳","rap"]}Jackson就是将Java对象与Json数据进行相互转换的工具。publicclass{privateStringname;privateintage;privateString[]hobbies}Jackson是Sprin
- java实体中返回前端的double类型四舍五入(格式化)
婲落ヽ紅顏誶
java
根据业务,需要通过后端给前端返回部分double类型的数值,一般需要保留两位小数,使用jackson转换对象packagecom.ruoyi.common.core.config;importcom.fasterxml.jackson.core.JsonGenerator;importcom.fasterxml.jackson.databind.JsonSerializer;importcom.f
- Spring Cloud GateWay整合熔断器实现限流
暮色里de白雪檐
springcloud#java核心知识点网关hystrx限流CircuitBreakergateway
其实网关是很强大,能做的事情很多,包含很多过滤器包括限流,具体的网关可以参考我的另外一篇博文SpringCloudGateWay-过滤器今天我们来说下网关如何限流,主要两种方案:SpringCloudGateWay整合hystrxenvironment:testmanagement:security:enabled:falsespring:jackson:date-format:yyyy-MM-d
- Java入门-java对象与json之间的转换
自信人间三百年
java入门javajson开发语言
json对象转Json字符串使用jackson实现java对象转为Json字符串引入依赖com.fasterxml.jackson.corejackson-databind对象转json字符串Objectval=newObject();//val表示java对象JsonMapperjsonMapper=newJsonMapper();StringjsonString=jsonMapper.writ
- 使用Jackson库进行JSON序列化和反序列化
才艺のblog
jsonpython开发语言
一、序言在现代Web开发中,JSON(JavaScriptObjectNotation)成为了一种广泛使用的数据格式,用于前后端数据传输和存储。Java是一种面向对象编程语言,而JSON是一种键值对格式的数据,因此在Java中,需要将Java对象转换为JSON字符串,或者将JSON字符串转换为Java对象。这个过程就是JSON的序列化和反序列化。对于Java中的JSON序列化和反序列化,有很多开源
- vue+elmentUI解决前端页面时间显示为一串数字
梅秃头
稀奇古怪的问题前端
在该属性上添加注解@JsonFormat(pattern="yyyy-MM-ddHH:mm:ss")privateDatecreateTime;导入包importcom.fasterxml.jackson.annotation.JsonFormat;效果
- Flutter json 转model 问题
松_THOM
由于Flutter禁用运行时反射,所以在Flutter中是没有GSON,Jackson这类解析JSON的库。官方解释运行时反射会干扰Dart的_treeshaking_。使用_treeshaking_我们可以在发版时去除未使用的代码。这可以显着优化应用程序的大小。由于反射会默认使用所有代码,因此_treeshaking_会很难工作。这些工具无法知道哪些widget在运行时未被使用,因此冗余代码很难
- Rabbitmq入门与应用(四)-RabbitMQ常见模式
自信人间三百年
rabbitmqrabbitmq分布式
RabbitMQ常见Queue模式简单模式点对点模式,一个生产者一个消费者生产者将消息发送到队列,消费者从队列中获取消息,队列是存储消息的缓冲区。查看管理端效果序列化解决方案基于java序列化基于Json@BeanpublicMessageConvertermessageConverter(){returnnewJackson2JsonMessageConverter();}@Beanpublic
- SpringBoot解决前端js处理大数字丢失精度问题Long转String
shun35
面试必学前端springbootjavascript
一、Jackson对Long类型的处理导致精度丢失的问题表的某一个字段的类型是BIGINT,对应的Java类的属性的类型就是Long。当这个字段的值由后端返回给前端网页时,发现了精度丢失的问题。比如后端返回的值是588085469986509185,到了前端是588085469986509200,后面的几位数变成了0,精度丢失了二、原因JavaScript中数字的精度是有限的,BIGINT类型的的
- 八:英语流利说Level1-Unit2-Part3(中英文版)
要有钱要悠闲
L1-U2-P3-1Listening:TheJacksonFamily1ThisisLisaJackson.这是丽莎·杰克逊。Thisisherfamily.这是她的家人。Theseareherparents.Thisisherfather.这是她父亲。Herfather'snameisBill.她父亲叫比尔。Billiswhite.比尔是白人。Thisishermother.这是她妈妈。Her
- java数字签名三种方式
知了ing
javajdk
以下3钟数字签名都是基于jdk7的
1,RSA
String password="test";
// 1.初始化密钥
KeyPairGenerator keyPairGenerator = KeyPairGenerator.getInstance("RSA");
keyPairGenerator.initialize(51
- Hibernate学习笔记
caoyong
Hibernate
1>、Hibernate是数据访问层框架,是一个ORM(Object Relation Mapping)框架,作者为:Gavin King
2>、搭建Hibernate的开发环境
a>、添加jar包:
aa>、hibernatte开发包中/lib/required/所
- 设计模式之装饰器模式Decorator(结构型)
漂泊一剑客
Decorator
1. 概述
若你从事过面向对象开发,实现给一个类或对象增加行为,使用继承机制,这是所有面向对象语言的一个基本特性。如果已经存在的一个类缺少某些方法,或者须要给方法添加更多的功能(魅力),你也许会仅仅继承这个类来产生一个新类—这建立在额外的代码上。
- 读取磁盘文件txt,并输入String
一炮送你回车库
String
public static void main(String[] args) throws IOException {
String fileContent = readFileContent("d:/aaa.txt");
System.out.println(fileContent);
- js三级联动下拉框
3213213333332132
三级联动
//三级联动
省/直辖市<select id="province"></select>
市/省直辖<select id="city"></select>
县/区 <select id="area"></select>
- erlang之parse_transform编译选项的应用
616050468
parse_transform游戏服务器属性同步abstract_code
最近使用erlang重构了游戏服务器的所有代码,之前看过C++/lua写的服务器引擎代码,引擎实现了玩家属性自动同步给前端和增量更新玩家数据到数据库的功能,这也是现在很多游戏服务器的优化方向,在引擎层面去解决数据同步和数据持久化,数据发生变化了业务层不需要关心怎么去同步给前端。由于游戏过程中玩家每个业务中玩家数据更改的量其实是很少
- JAVA JSON的解析
darkranger
java
// {
// “Total”:“条数”,
// Code: 1,
//
// “PaymentItems”:[
// {
// “PaymentItemID”:”支款单ID”,
// “PaymentCode”:”支款单编号”,
// “PaymentTime”:”支款日期”,
// ”ContractNo”:”合同号”,
//
- POJ-1273-Drainage Ditches
aijuans
ACM_POJ
POJ-1273-Drainage Ditches
http://poj.org/problem?id=1273
基本的最大流,按LRJ的白书写的
#include<iostream>
#include<cstring>
#include<queue>
using namespace std;
#define INF 0x7fffffff
int ma
- 工作流Activiti5表的命名及含义
atongyeye
工作流Activiti
activiti5 - http://activiti.org/designer/update在线插件安装
activiti5一共23张表
Activiti的表都以ACT_开头。 第二部分是表示表的用途的两个字母标识。 用途也和服务的API对应。
ACT_RE_*: 'RE'表示repository。 这个前缀的表包含了流程定义和流程静态资源 (图片,规则,等等)。
A
- android的广播机制和广播的简单使用
百合不是茶
android广播机制广播的注册
Android广播机制简介 在Android中,有一些操作完成以后,会发送广播,比如说发出一条短信,或打出一个电话,如果某个程序接收了这个广播,就会做相应的处理。这个广播跟我们传统意义中的电台广播有些相似之处。之所以叫做广播,就是因为它只负责“说”而不管你“听不听”,也就是不管你接收方如何处理。另外,广播可以被不只一个应用程序所接收,当然也可能不被任何应
- Spring事务传播行为详解
bijian1013
javaspring事务传播行为
在service类前加上@Transactional,声明这个service所有方法需要事务管理。每一个业务方法开始时都会打开一个事务。
Spring默认情况下会对运行期例外(RunTimeException)进行事务回滚。这
- eidtplus operate
征客丶
eidtplus
开启列模式: Alt+C 鼠标选择 OR Alt+鼠标左键拖动
列模式替换或复制内容(多行):
右键-->格式-->填充所选内容-->选择相应操作
OR
Ctrl+Shift+V(复制多行数据,必须行数一致)
-------------------------------------------------------
- 【Kafka一】Kafka入门
bit1129
kafka
这篇文章来自Spark集成Kafka(http://bit1129.iteye.com/blog/2174765),这里把它单独取出来,作为Kafka的入门吧
下载Kafka
http://mirror.bit.edu.cn/apache/kafka/0.8.1.1/kafka_2.10-0.8.1.1.tgz
2.10表示Scala的版本,而0.8.1.1表示Kafka
- Spring 事务实现机制
BlueSkator
spring代理事务
Spring是以代理的方式实现对事务的管理。我们在Action中所使用的Service对象,其实是代理对象的实例,并不是我们所写的Service对象实例。既然是两个不同的对象,那为什么我们在Action中可以象使用Service对象一样的使用代理对象呢?为了说明问题,假设有个Service类叫AService,它的Spring事务代理类为AProxyService,AService实现了一个接口
- bootstrap源码学习与示例:bootstrap-dropdown(转帖)
BreakingBad
bootstrapdropdown
bootstrap-dropdown组件是个烂东西,我读后的整体感觉。
一个下拉开菜单的设计:
<ul class="nav pull-right">
<li id="fat-menu" class="dropdown">
- 读《研磨设计模式》-代码笔记-中介者模式-Mediator
bylijinnan
java设计模式
声明: 本文只为方便我个人查阅和理解,详细的分析以及源代码请移步 原作者的博客http://chjavach.iteye.com/
/*
* 中介者模式(Mediator):用一个中介对象来封装一系列的对象交互。
* 中介者使各对象不需要显式地相互引用,从而使其耦合松散,而且可以独立地改变它们之间的交互。
*
* 在我看来,Mediator模式是把多个对象(
- 常用代码记录
chenjunt3
UIExcelJ#
1、单据设置某行或某字段不能修改
//i是行号,"cash"是字段名称
getBillCardPanelWrapper().getBillCardPanel().getBillModel().setCellEditable(i, "cash", false);
//取得单据表体所有项用以上语句做循环就能设置整行了
getBillC
- 搜索引擎与工作流引擎
comsci
算法工作搜索引擎网络应用
最近在公司做和搜索有关的工作,(只是简单的应用开源工具集成到自己的产品中)工作流系统的进一步设计暂时放在一边了,偶然看到谷歌的研究员吴军写的数学之美系列中的搜索引擎与图论这篇文章中的介绍,我发现这样一个关系(仅仅是猜想)
-----搜索引擎和流程引擎的基础--都是图论,至少像在我在JWFD中引擎算法中用到的是自定义的广度优先
- oracle Health Monitor
daizj
oracleHealth Monitor
About Health Monitor
Beginning with Release 11g, Oracle Database includes a framework called Health Monitor for running diagnostic checks on the database.
About Health Monitor Checks
Health M
- JSON字符串转换为对象
dieslrae
javajson
作为前言,首先是要吐槽一下公司的脑残编译部署方式,web和core分开部署本来没什么问题,但是这丫居然不把json的包作为基础包而作为web的包,导致了core端不能使用,而且我们的core是可以当web来用的(不要在意这些细节),所以在core中处理json串就是个问题.没办法,跟编译那帮人也扯不清楚,只有自己写json的解析了.
- C语言学习八结构体,综合应用,学生管理系统
dcj3sjt126com
C语言
实现功能的代码:
# include <stdio.h>
# include <malloc.h>
struct Student
{
int age;
float score;
char name[100];
};
int main(void)
{
int len;
struct Student * pArr;
int i,
- vagrant学习笔记
dcj3sjt126com
vagrant
想了解多主机是如何定义和使用的, 所以又学习了一遍vagrant
1. vagrant virtualbox 下载安装
https://www.vagrantup.com/downloads.html
https://www.virtualbox.org/wiki/Downloads
查看安装在命令行输入vagrant
2.
- 14.性能优化-优化-软件配置优化
frank1234
软件配置性能优化
1.Tomcat线程池
修改tomcat的server.xml文件:
<Connector port="8080" protocol="HTTP/1.1" connectionTimeout="20000" redirectPort="8443" maxThreads="1200" m
- 一个不错的shell 脚本教程 入门级
HarborChung
linuxshell
一个不错的shell 脚本教程 入门级
建立一个脚本 Linux中有好多中不同的shell,但是通常我们使用bash (bourne again shell) 进行shell编程,因为bash是免费的并且很容易使用。所以在本文中笔者所提供的脚本都是使用bash(但是在大多数情况下,这些脚本同样可以在 bash的大姐,bourne shell中运行)。 如同其他语言一样
- Spring4新特性——核心容器的其他改进
jinnianshilongnian
spring动态代理spring4依赖注入
Spring4新特性——泛型限定式依赖注入
Spring4新特性——核心容器的其他改进
Spring4新特性——Web开发的增强
Spring4新特性——集成Bean Validation 1.1(JSR-349)到SpringMVC
Spring4新特性——Groovy Bean定义DSL
Spring4新特性——更好的Java泛型操作API
Spring4新
- Linux设置tomcat开机启动
liuxingguome
tomcatlinux开机自启动
执行命令sudo gedit /etc/init.d/tomcat6
然后把以下英文部分复制过去。(注意第一句#!/bin/sh如果不写,就不是一个shell文件。然后将对应的jdk和tomcat换成你自己的目录就行了。
#!/bin/bash
#
# /etc/rc.d/init.d/tomcat
# init script for tomcat precesses
- 第13章 Ajax进阶(下)
onestopweb
Ajax
index.html
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/
- Troubleshooting Crystal Reports off BW
blueoxygen
BO
http://wiki.sdn.sap.com/wiki/display/BOBJ/Troubleshooting+Crystal+Reports+off+BW#TroubleshootingCrystalReportsoffBW-TracingBOE
Quite useful, especially this part:
SAP BW connectivity
For t
- Java开发熟手该当心的11个错误
tomcat_oracle
javajvm多线程单元测试
#1、不在属性文件或XML文件中外化配置属性。比如,没有把批处理使用的线程数设置成可在属性文件中配置。你的批处理程序无论在DEV环境中,还是UAT(用户验收
测试)环境中,都可以顺畅无阻地运行,但是一旦部署在PROD 上,把它作为多线程程序处理更大的数据集时,就会抛出IOException,原因可能是JDBC驱动版本不同,也可能是#2中讨论的问题。如果线程数目 可以在属性文件中配置,那么使它成为
- 正则表达式大全
yang852220741
html编程正则表达式
今天向大家分享正则表达式大全,它可以大提高你的工作效率
正则表达式也可以被当作是一门语言,当你学习一门新的编程语言的时候,他们是一个小的子语言。初看时觉得它没有任何的意义,但是很多时候,你不得不阅读一些教程,或文章来理解这些简单的描述模式。
一、校验数字的表达式
数字:^[0-9]*$
n位的数字:^\d{n}$
至少n位的数字:^\d{n,}$
m-n位的数字:^\d{m,n}$