上一页 1 2 3 4 5 6 7 8 9 10 ··· 13 下一页
摘要: 1 /* 2 * 解析Json得到数组信息 3 */ 4 public BrandData analyzeJson(String json){ 5 if(json==null){ 6 return null; 7 } 8 try { 9 JsonMapper mapper = JsonMapper.nonDefaultMapper();10 return mapper.fromJson(json, BrandData[].class)[0];11... 阅读全文
posted @ 2014-01-20 16:25 prison 阅读(267) 评论(0) 推荐(0) 编辑
摘要: 1、模糊查询表名称:Select * From sysobjects Where name like '%legalize%'2、查询表的字段信息select * from information_schema.columns where table_name='tab_sLegalize'3、查询text的长度:select LEN(cast(fld_Introduction as varchar )),fld_Introduction from tab_sLegalize 阅读全文
posted @ 2014-01-15 10:27 prison 阅读(163) 评论(0) 推荐(0) 编辑
摘要: 1、maven错误提示及解决方法:maven install 出现错误提示: Build errors for carmall-manager; org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.apache.maven.plugins:maven-enforcer-plugin:1.3:enforce (enforce-banned-dependencies) on project carmall-manager: Execution enforce-banned-depend 阅读全文
posted @ 2014-01-14 17:53 prison 阅读(2998) 评论(0) 推荐(0) 编辑
摘要: 1、mybatis的使用之jdbcType在insert的时候对于一些数据库中可以为空的值要指定jdbcType。 对于时间类型,如果只记录年月日,jdbcType即可指定为Date。如果需要记录时分秒,则需要指定jdbcType为TIMESTAMP类型。 阅读全文
posted @ 2014-01-14 14:48 prison 阅读(140) 评论(0) 推荐(0) 编辑
摘要: 1、安装zhcon的时候运行./configure 会出现configure:error:C++ preprocessor"/lib/cpp"fails sanity check 错误 是缺少基本的库造成的。解决方法:#sudo apt-get install build-essential这里面带有很多其他的基本库,为以后安装软件做基础。 阅读全文
posted @ 2014-01-14 14:29 prison 阅读(113) 评论(0) 推荐(0) 编辑
摘要: 1、jar包零散的散落在根目录:view - java - package exploer2、spring等配置文件出现标题红叉:window-proper-validate 去掉xml validate3、Eclipse中修改注释中@authorWindow-->Preferences-->Java-->Code Style-->Code Templates(Window--Preferences--java--代码样式--代码模块 --注释--类型)点击Comments(1)找到Types 然后双击填入以下几个东西即可,然后在新建类的时候在Generate comm 阅读全文
posted @ 2014-01-14 11:40 prison 阅读(163) 评论(0) 推荐(0) 编辑
摘要: 1、通过mysql自身 删除sleep程序 set global wait_timeout=1002、查看mysql的一些属性:show variables like '%timeout'; 阅读全文
posted @ 2013-12-30 15:57 prison 阅读(116) 评论(0) 推荐(0) 编辑
摘要: 启动redis打开运行窗口F:\>cd redis-2.0.2F:\redis-2.0.2>redis-server.exe redis.conf[2944] 15 Jun 22:44:29 * Server started, Redis version 2.0.2[2944] 15 Jun 22:44:29 * DB loaded from append only file: 0 seconds[2944] 15 Jun 22:44:29 * The server is now ready to accept connections on port379[2944] 15 Jun 阅读全文
posted @ 2013-12-30 11:31 prison 阅读(499) 评论(0) 推荐(0) 编辑
摘要: # Redis configuration file example # By default Redis does not run as a daemon. Use 'yes' if you need it. # Note that Redis will write a pid file in /var/run/redis.pid when daemonized. daemonize no # When run as a daemon, Redis write a pid file in /var/run/redis.pid by default. # You can sp. 阅读全文
posted @ 2013-12-30 11:23 prison 阅读(207) 评论(0) 推荐(0) 编辑
摘要: /** * redis简单测试 * redis-server.exe redis.conf * @author xzm * */public class RedisTest { public static void main(String[] args) { Jedis redis = new Jedis("localhost", 6379); redis.hset("mytest", "1", "a"); redis.hset("mytest", "2", "aa 阅读全文
posted @ 2013-12-30 10:45 prison 阅读(230) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 9 10 ··· 13 下一页