`
文章列表

将博客搬至CSDN

将博客搬至CSDN
sudo ifconfig en0 ether a4:5e:60:e0:b6:f9
流水不腐户枢不蠹,动也。 今日体量大,变动之力。和整个世界变动形成共振。 鹏怒而飞,其翼若垂天之云  == 逍遥游 水击三千里,碧空九万丈  ===毛对《沁园春·长沙》批注 好风凭借力,送我上青云  == 红楼梦 曹雪芹 ====== 鹏之背,不知其几千里也,怒而飞,其翼若垂天之云。 《逍遥游》 《沁园春·长沙》 独立寒秋,湘江北去,橘子洲头。 看万山红遍,层林尽染;漫江碧透,百舸争流。 鹰击长空,鱼翔浅底,万类霜天竞自由。 怅寥廓,问苍茫天地,谁主沉浮? 携来百侣曾游,忆往昔峥嵘岁月稠。 恰同学少年,风华正茂;书生意气,挥斥方遒。 指点江山,激扬文字,粪土当年万户侯。 曾记否,到中流击水, ...
private Map<String, Number> collection; public static void main(String[] args) throws Exception{ Class<?> clazz = TestgetGenericType.class; //取得 Class Field field = clazz.getDeclaredField("collection"); //取得字段变量 Type type = fi ...
Gson gson = new GsonBuilder().enableComplexMapKeySerialization().create();       newSendPayMapJson = JSON.toJSONString(sendPayMap, SerializerFeature.MapSortField, SerializerFeature.WriteNonStringKeyAsString);       优雅单例 public class GsonUtil { private static class G ...

ajax判断

  protected boolean isAjaxRequest(HttpServletRequest request) { if (request.getHeader("X-Requested-With") != null && "XMLHttpRequest".equalsIgnoreCase(request.getHeader("X-Requested-With"))) { return true; } ...

汉字范围

    博客分类:
  • Java
汉字范围     String regex = "^[\u4e00-\u9fa5]*$";  

jar文件查找类

    博客分类:
  • Java
#! /usr/bin/perl my $jar_list = ".jar.list"; die "findinjar dir class name" if(@ARGV != 2); my $classname = $ARGV[1]; #list all jar files in given dir `find $ARGV[0] -name "*.jar" > $jar_list`; open(JAR_FILE,"$jar_list") || die "there no ...

jackson gson

    博客分类:
  • Java
  class JsonUtils {        private static final Gson GSON =             new GsonBuilder().disableHtmlEscaping().serializeNulls().setDateFormat("yyyy-MM-dd HH:mm:ss").create();      public static String toJson(Object obj) {         return GSON.toJson(obj)    } }     public clas ...

JSF直调用

var orderIds=[124678266297,124690369688]; var i=0; for (let val of orderIds) { i++; setTimeout(function() { console.log(val); var obj = {"@type":"java.util.HashMap","id":val,"yun": 0}; $('#methodParam').val(JSON.string ...

node抓包

'use strict' var co = require('co'); var cheerio = require('cheerio'); var Promise = require('bluebird'); var request = Promise.promisify(require('request')); var URL = 'http://www.piaohua.com/'; var typeLink = { V1001_TODAY_LATEST:'http://www.piaohua.com/', V1001_TYPE_KEHUAN:'http:/ ...

rizhi清理 jdos

$('#DataTables_Table_7 tr td:nth-child(3)').each (function () { var ip = ""+$.trim(this.innerText)+""; var tpl = `{\"operation\":\"clear\",\"paths\":[\"/export/Logs/binlake.sync.client.jd.local/proces ...

Shell

request的promise化   var Promise = require('bluebird') var request = Promise.promisify(request)   var wechat = new     stringify。  promisifyAll       -- const Promise = require('bluebird'),   fs = require('fs'),   path = require('path'); Promise.promisifyAll(fs);     fs.readFileA

shell

    博客分类:
  • Java
  #!/bin/sh # Get home directory APP_HOME=$(cd $(dirname $0); cd ..; pwd -P) # Project Information ARTIFACT_ID=sample-app VERSION=0.1 MAIN_CLASS=com.inventec.test.StartApp # Set entry MAIN_JAR_DIR=lib MAIN_JAR=$ARTIFACT_ID-$VERSION.jar # Set log directory for log4j LOG_DIR=/ ...

serverxml 精简版

    博客分类:
  • Java
  <?xml version='1.0' encoding='utf-8'?>  <Server port="9001" shutdown="SHUTDOWN">     <Listener className="org.apache.catalina.startup.VersionLoggerListener" />   <!-- Security listener. Documentation at /docs/config/listeners.html          & ...
Global site tag (gtag.js) - Google Analytics