import java.awt.Color; import java.awt.Font; import java.awt.Graphics; import java.awt.image.BufferedImage; import java.io.IOException; import java.io.OutputStream; import java.util.Random; import jav… 更多


/** * UTF中文字符编码和解码 * 中文字符占3个字节,前缀分别是:1110XXXX 10XXXXXX 10XXXXXX * * @author FreeDroid * */ public class Utf8codeANDdecode { public static void main(String[] args) { int ch = ‘我’; byte[] bytes = codeUT… 更多


public void newFile(File file){ try { if (file.createNewFile()) { System.out.println(“文件创建成功!”); } else { String cName = changeName(file); File files = new File(“.” + File.separator + cName); newFile(… 更多


Cnd cnd = Cnd.NEW(); if (!Strings.isBlank(src)) { cnd.and(“srcFrom”, “=”, src); } if (!Strings.isBlank(name)) { String[] n = StringUtils.split(name, ” “); SqlExpressionGroup group = new SqlExpressionG… 更多


elasticsearch 5.0/5.0.1以上版本的elasticsearch-head插件,使用node单独运行,会出现跨站访问的问题: http://localhost:9200/_nodes. No ‘Access-Control-Allow-Origin’ header is present on the requested resource. Origin ‘http://local… 更多