2019年2月25日

手写代码注意点--java.lang.Math 相关

摘要: 1-如果用到了Math的函数,需要手动写上: import java.lang.Math; 2-求x的y次方,用的是Math.pow(x,y); 注意,返回值是double!!! 不是int, 如果需要转换记得加上强制类型转换。 int result = (int) Math.pow(x,y); 阅读全文

posted @ 2019-02-25 22:08 frank_cui 阅读(219) 评论(0) 推荐(0)

log4j中Logger.getLogger()加载一个类提示错误

摘要: 转载自:https://blog.csdn.net/q3229270/article/details/77986687 错误提示如下:The method getLogger(String) in the type Logger is not applicable for the arguments 阅读全文

posted @ 2019-02-25 17:58 frank_cui 阅读(2018) 评论(0) 推荐(0)

log4j - 输出格式控制, PatternLayout参数含义以及详细配置

摘要: 转载自:https://blog.csdn.net/reserved_person/article/details/52849505 做项目被log4j的输出格式化参数搞烦了,索性把API的相关部分大致翻译一下,原文参见http://logging.apache.org/log4j/docs/api 阅读全文

posted @ 2019-02-25 17:57 frank_cui 阅读(3107) 评论(0) 推荐(0)

log4j - 使用教程说明

摘要: 地址:http://www.codeceo.com/log4j-usage.html 日志是应用软件中不可缺少的部分,Apache的开源项目log4j是一个功能强大的日志组件,提供方便的日志记录。在apache网站:jakarta.apache.org/log4j 可以免费下载到Log4j最新版本的 阅读全文

posted @ 2019-02-25 17:56 frank_cui 阅读(198) 评论(0) 推荐(0)

JVM - 自动内存管理机制

摘要: 作者:EakonZhao链接:https://www.jianshu.com/p/3bfea2eda30a來源:简书简书著作权归作者所有,任何形式的转载都请联系作者获得授权并注明出处。 __________________________________________________ 写在前面 本 阅读全文

posted @ 2019-02-25 16:27 frank_cui 阅读(205) 评论(0) 推荐(0)

导航

levels of contents