随笔分类 - Java
摘要:https://stackoverflow.com/questions/17601827/which-one-should-java-home-to-point-jdk-or-jre 临时变更JAVA_HOME的方案: https://stackoverflow.com/questions/2503
阅读全文
摘要:这个方法可以确认当前java.exe的版本,但是并不能确定输出JRE的具体路径。 JAVA_HOME的路径,也不一定就是当前运行的java的路径。path列表中,全部路径中,哪个jre的路径在前,就先用那个jre执行。 这个方法,比较准确地输出了java的路径(输出了java运行依赖的jar包的全部
阅读全文
摘要:
阅读全文
摘要:@Resource是JDK的annotation包下相关的类。 Resource,顾名思义,可以修饰任何资源,比如图片,XML文件,包括Mybatis的XML文件。 @Autowired是Spring的annotation包下相关的类。 https://www.zhihu.com/question/
阅读全文
摘要:Eclipse Java was started but returned exit code=-1073741819C:\WINDOWS\system32\javaw.exe-Dosgi.requiredJavaVersion=1.6-Xms2048m-Xmx4096m-XX:MaxPermSiz
阅读全文
摘要:/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding ...
阅读全文
摘要:https://www.tutorialspoint.com/javamail_api/javamail_api_smtp_servers.htm https://www.mkyong.com/java/javamail-api-sending-email-via-gmail-smtp-exampl
阅读全文
摘要:上述两参数,可根据实际情况,逐渐调大。
阅读全文
摘要:我们常常遇到abstract class与 interface的区别,今天却遇到了abstract interface,感觉interface不用abstract再修饰了啊。结论:事实也确实如此,编译为.class文件后abstract interface成为了interface。 编程后结果比较:
阅读全文
摘要:AbstractQueuedLongSynchronizer类是扩展自AbstractQueuedSynchronizer的,实现了java.io.Serializable接口。 其中提到的wait queue是了CLH lock queue 的一个变种,CLH lock通常被用于spin Lock
阅读全文
摘要:S0 S1 E O P YGC YGCT FGC FGCT GCT 43.33 0.00 94.55 32.10 9.34 20 0.494 0 0.000 0.494
阅读全文
摘要:TransactionDefinition Interface that defines Spring-compliant transaction properties. Based on the propagation behavior definitions analogous to EJB C
阅读全文
摘要:mysql java.sql; Connection org.springframework.transaction; TransactionDefinitio/** org.springframework.transaction.annotation; enum Isolation org.spr
阅读全文
摘要:ActivitiEventSupport类成员eventListeners是使用CopyOnWriteArrayList实现的。 而CopyOnWriteArrayList中使用到了 因为锁是线程同步的机制,所以不需要序列化,加上transient(短暂的,易失的 =》Non Serialized)
阅读全文
摘要:Access restriction: The type 'BASE64Decoder' is not API (restriction on required library 'C:\Program Files\Java\jdk1.7.0\jre\lib\rt.jar') http://blog.
阅读全文
摘要:https://www.javaspecialists.eu/courses/concurrency.jsp http://www.jconcurrent.com/ javaConcurrentAnimated.jar Visualizing the Java Concurrent API,数据可视
阅读全文
摘要:IBM IBM IBM https://www.ibm.com/developerworks/cn/java/j-lo-taskschedule/index.html 写得非常详细,面面俱到,很好。
阅读全文
摘要:负载均衡的用途,路由等: 硬件方式:F5的负载均衡设备(张善友的以此起头,C#编写,ASP.NET Session State Partitioning using State Server Load Balancing)ASP.NET记录会话状态,采用负载均衡算法来分区存储状态数据。 软件方式:I
阅读全文
摘要:http://mopishv0.blog.163.com/blog/static/5445593220101016102129741/
阅读全文
摘要:https://commons.apache.org/proper/commons-io/javadocs/api-release/org/apache/commons/io/FileUtils.html General file manipulation utilities. Facilities
阅读全文