摘要:
原文地址:http://www.blogjava.net/pengpenglin/archive/2010/02/22/313669.html【GBK转UTF-8】在很多论坛、网上经常有网友问“为什么我使用 new String(tmp.getBytes("ISO-8859-1"), "UTF-8"...
阅读全文
posted @ 2015-09-26 19:59
一天不进步,就是退步
阅读(616)
推荐(0)
摘要:
1.接口的可降级 调用接口提供调用者的信息,如来源,级别,签名,当tps过大时可以关掉一部分不重要的业务。2. 涉及费用的记录要记录到数据库中,便于统计。3. service的原子性,restful接口可聚合4. 返回Result最基本的包含code,message,data5. 涉及到缓存系统或者...
阅读全文
posted @ 2015-09-25 16:23
一天不进步,就是退步
阅读(149)
推荐(0)
摘要:
原生jdbc方式:Statement.getGeneratedKeys()示例:Statement stmt = null;ResultSet rs = null;try { // // Create a Statement instance that we can use for ...
阅读全文
posted @ 2015-09-24 19:43
一天不进步,就是退步
阅读(4495)
推荐(0)
摘要:
以前使用过Jedis,后面因项目需要使用spring-data-redis,设置一个键值及其过期时间后怎么都不对。源代码:redisTemplate.opsForValue().set(key, value,100l);于是,不得不翻出api:Overwrite parts of key start...
阅读全文
posted @ 2015-09-18 11:50
一天不进步,就是退步
阅读(1218)
推荐(0)
摘要:
原文地址:http://shiyanjun.cn/archives/78.htmlCloudera公司已经推出了基于Hadoop平台的查询统计分析工具Impala,只要熟悉SQL,就可以熟练地使用Impala来执行查询与分析的功能。不过Impala的SQL和关系数据库的SQL还是有一点微妙地不同的。...
阅读全文
posted @ 2015-09-18 11:41
一天不进步,就是退步
阅读(2783)
推荐(0)
摘要:
nginx location的正则法则: ~ 为区分大小写的匹配。~* 不区分大小写的匹配(匹配firefox的正则同时匹配FireFox)。!~ 不匹配的!~* 不匹配的. 匹配除换行符以外的任意字符 location 匹配的优先级(与location在配置文件中的顺序无关)= 精确匹配会第一个被
阅读全文
posted @ 2015-09-13 16:58
一天不进步,就是退步
阅读(1995)
推荐(0)
摘要:
原文地址:http://itindex.net/detail/52530-rpc-%E6%A1%86%E6%9E%B6-%E5%88%86%E6%9E%90什么是RPC:RPC(Remote Procedure Call Protocol)——远程过程调用协议,它是一种通过网络从远程计算机程序上请求...
阅读全文
posted @ 2015-09-11 17:05
一天不进步,就是退步
阅读(1856)
推荐(0)
摘要:
hbase 是什么? Apache HBase is an open-source, distributed, versioned, non-relational database modeled after Google's Bigtable: A Distributed Storage Syst...
阅读全文
posted @ 2015-09-11 15:30
一天不进步,就是退步
阅读(4870)
推荐(1)
摘要:
solr官方给出的解决方式是:DataImportHandler is designed to stream row one-by-one. It passes a fetch size value (default: 500) to Statement#setFetchSize which som...
阅读全文
posted @ 2015-09-11 14:46
一天不进步,就是退步
阅读(622)
推荐(0)
摘要:
原文地址:http://www.demnag.com/b/java-machine-learning-tools-libraries-cm570/?ref=dzoneThis is a list of 25 Java Machine learning tools & libraries.Wekaha...
阅读全文
posted @ 2015-09-11 13:45
一天不进步,就是退步
阅读(557)
推荐(0)