/** * 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… 更多


Shop_goods_type obj = shopGoodsTypeService.fetch(id); shopGoodsTypeService.fetchLinks(obj, null, Cnd.orderBy().asc(“location”)); for (Shop_goods_type_props o : obj.getPropsList()) { shopGoodsTypeServi… 更多


server { listen 80; listen 443 ssl; if ( $scheme = “http” ) { rewrite ^(.*) https://$host$1; } server_name nutzwk.wizzer.cn; root “/java/work/nutzwk”; ssl_certificate /java/work/1_nutzwk.wizzer.cn_bun… 更多


List<BasicNameValuePair> formParams = new ArrayList<>(); formParams.add(new BasicNameValuePair(“urlpp”, “”)); formParams.add(new BasicNameValuePair(“urlkm”, “”)); formParams.add(new BasicN… 更多