摘要: 关键:在数字没有溢出的前提下,对于正数和负数,左移一位都相当于乘以2的1次方,左移n位就相当于乘以2的n次方,所以2左移7位就是2的8次方啦Java中最高效的方法算出2的8次方等于几?使用位运算:2<<7分析:2的二进制表示0000 0000 0000 0000 0000 0000 0010 向左位移7位,去掉高位,低位用0表示:0000 0000 0000 0000 0001 0000 0000 就是2的8次方 阅读全文
posted @ 2013-11-13 23:12 springstudent 阅读(2021) 评论(0) 推荐(0) 编辑
摘要: java.lang.NoSuchFieldError: TRACE atorg.jboss.logging.Log4jLogger.translate(Log4jLogger.java:64) at org.jboss.logging.Log4jLogger.isEnabled(Log4jLogger.java:39)at org.jboss.logging.Logger.logv(Logger.java:1953) at org.hibernate.internal.CoreMessageLogger_$logger.tracev(CoreMessageLogger_$logger.java 阅读全文
posted @ 2013-11-13 22:23 springstudent 阅读(3437) 评论(0) 推荐(0) 编辑
摘要: 注意:log4j ,slf4j,slf4j-log4j这3个jar的兼容性,否者会报错1,首先hibernate-release-4.1.10.Final\lib\required包中的jar包是必须的,全部都要2,从http://logging.apache.org/log4j/1.2/download.html下载log4j-1.2.17.zip3,从http://www.slf4j.org/dist/下载slf4j-1.6.1.zip,其中就包含slf4j-1.6.1.jar和slf4j-log4j12-1.6.1.jar4,加入log4j.properties配置文件在hibernat 阅读全文
posted @ 2013-11-13 22:12 springstudent 阅读(284) 评论(0) 推荐(0) 编辑
摘要: http://www.cnblogs.com/aigongsi/archive/2012/04/01/2429166.html 阅读全文
posted @ 2013-07-27 16:18 springstudent 阅读(160) 评论(0) 推荐(0) 编辑
摘要: 文章地址:http://www.cnblogs.com/aigongsi/archive/2012/04/01/2429166.html 阅读全文
posted @ 2013-07-27 16:15 springstudent 阅读(161) 评论(0) 推荐(0) 编辑
摘要: http://www.cnblogs.com/jacktu/archive/2007/11/21/966458.html 阅读全文
posted @ 2013-07-01 17:21 springstudent 阅读(145) 评论(0) 推荐(0) 编辑
摘要: #reion #endregion作用:折叠并隐藏代码 #if #else #endif 作用:控制编译的代码 例如:#if(condition)代码A#else代码B#endif 如果condition为真,则程序编译的时候只编译代码A,如果condition为假,则程序编译的时候只编译代码B 所以,#if#else#endif 只是一个起控制预编译的代码;如果不加#,当然就是一个简单的判断语句。 阅读全文
posted @ 2013-06-27 14:06 springstudent 阅读(371) 评论(0) 推荐(0) 编辑
摘要: ref:http://www.ijavascript.cn/shouce/javascript-function-395.html 阅读全文
posted @ 2013-05-06 10:40 springstudent 阅读(170) 评论(0) 推荐(0) 编辑
摘要: Function (Built-in Object) built-in嵌入的,内置Function (內置對象) Function is the object from which JavaScript functions are derived. Functions are first-class data types in JavaScript, soFunction对象是由javascript函数倒出,在javascript中Function是deribed[dɪ'raɪv]they may be assigned to variables and passed to funct 阅读全文
posted @ 2013-05-04 17:37 springstudent 阅读(306) 评论(0) 推荐(0) 编辑
摘要: 点击:工具>>参数设置>>文件>>去掉"保存时创建备份文件">>确定 阅读全文
posted @ 2013-05-03 10:49 springstudent 阅读(210) 评论(0) 推荐(0) 编辑