随笔分类 -  Java

Java面试题
摘要:作者:Anna的十二次方链接:https://www.nowcoder.com/discuss/297347?type=5来源:牛客网 一. Java 基础模块 1.JDK 和 JRE 有什么区别? 2.== 和 equals 的区别是什么? 3.两个对象的 hashCode() 相同,则 equa 阅读全文

posted @ 2019-12-20 15:21 长方形 阅读(348) 评论(0) 推荐(0)

Java自动生成testcase
摘要:package com.citi.sl.tlc.services.tlc.collateralDataProcess.util; import java.io.BufferedWriter;import java.io.IOException;import java.lang.reflect.Met 阅读全文

posted @ 2019-07-03 15:40 长方形 阅读(695) 评论(0) 推荐(0)

Java实现Windows锁屏
摘要:1 public class LockWindows { 2 public static void main(String [] args) throws Exception { 3 Runtime.getRuntime().exec("RunDll32.exe user32.dll,LockWorkStation"); 4 } 5 } 阅读全文

posted @ 2019-06-19 09:42 长方形 阅读(1331) 评论(0) 推荐(0)

Lifecycle mapping "org.eclipse.m2e.jdt.JarLifecycleMapping" Eclipse Maven报错
摘要:eclipse 项目中报错Lifecycle mapping "org.eclipse.m2e.jdt.JarLifecycleMapping" is not available, pom文件第一行同样报错. 解决方法: eclipse->help->check for updates 然后找到所有 阅读全文

posted @ 2019-05-28 15:02 长方形 阅读(474) 评论(0) 推荐(0)

Java1.8 获取文件总行数
摘要:Files.lines(Paths.get("aaa.txt")).count(); 阅读全文

posted @ 2019-05-27 18:13 长方形 阅读(1871) 评论(0) 推荐(0)

eclipse java formater 配置详解
摘要:comment.insert_new_line_before_root_tags(insert/do_not_insert):在Javadoc根标记块前插入空行,默认为insert; insert_space_after_comma_in_annotation(insert/do_not_insert):在注释中的逗号后面插入空格,默认为insert; insert_space_before_c... 阅读全文

posted @ 2019-04-08 16:07 长方形 阅读(439) 评论(0) 推荐(0)

eclipse导入maven项目,但无法编译的问题
摘要:同事今天从git 导入项目到eclipse 后,发现项目所依赖的包找不到依赖,初步判定是maven的依赖没有导入项目中。 最终发现,在项目中的.classpath 文件加入以下代码即可解决问题。 阅读全文

posted @ 2019-03-27 16:17 长方形 阅读(2644) 评论(0) 推荐(0)

导航