排序
阿里巴巴fastjson使用示例
官方维基:新手指南; 示例数据1: String jsonString = { 'edges': { 'oim-6i8-1lp1-6h4': { 'id': 'oim-6i8-1lp1-6h4', 'label': 'link.legalperson', 'linkName': '法人关系', 'source': '84...
JS如何获取JSON对象的大小(size)
JS中获取JSON对象大小的方法如下: <script type='text/javascript'> var myObject = {'name':'Kasun', 'address':'columbo','age': '29'} var count = Object.keys(myObject).length; co...
通过nginx配置实现静态文件下载(不需后台代码)
nginx配置: server { listen 8123; server_name localhost; charset utf-8; root F:\myftp; location / { default_type 'application/octet-stream'; add_header Content-disposition 'attachm...
Java中将字符串转为驼峰格式
方式1 使用CaseUtils 对Java字符串进行转换为驼峰格式: CaseUtils.toCamelCase(null, false) = null CaseUtils.toCamelCase('', false, *) = '' CaseUtils.toCamelCase(*, false, null) = * Ca...
edu教育邮箱如何注册?(看这一篇就够了)
很多企业对于教育有支持性政策,比如IntelliJ Idea可以免费使用,Github可以免费升级为高级账户。那么如何获得Edu教育邮箱呢? 主要有以下几种方式: 前往高校网站申请(主要是指国外高校,国内...
Mybatis查询集合遍历出错,如何正确使用foreach判断空或null?
Mybatis动态SQL的另一个常见使用场景是对集合进行遍历(尤其是在构建 IN 条件语句的时候),可以将List、Set、数组等类型的数据作为参数。但是当List作为参数时,判断空需要特别注意。 例如: &...
The valid characters are defined in RFC 7230 and RFC 3986错误解决
通常请求地址包含未经编码的中文字符时会出现此错误提示: java.lang.IllegalArgumentException: Invalid character found in the request target. The valid characters are defined in RFC 72...
Spring/SpringBoot实现定时任务的4种方式
Spring使用@Scheduled批注为基于cron表达式的任务调度和异步方法执行提供了出色的支持。可以将@Scheduled批注与触发器元数据一起添加到方法中。 一、cron表达式规则定义 Crontab模式的表达式是...
Windows10 git commit报错node: command not found解决办法
在使用git准备提交文件时,报错: Commit failed with error 0 file committed, 1 file failed to commit: 上传车辆同行记录; .git/hooks/pre-commit: line 32: node: command not found 解决...
ZooKeeper伪分布式部署及真分布式环境部署步骤
搭建之前,先自行下载安装文件,配置hosts文件等操作。 下载页面:http://zookeeper.apache.org/releases.html,下载apache-zookeeper-3.7.0-bin.tar.gz文件; 配置/etc/hosts文件,添加127.0.0...



