1 import java.lang.ref.SoftReference;
2
3 public class SoftReferenceDemo {
4 public static void main(String[] args) {
5 Object a = new Object();
6 SoftReference
1 import java.lang.ref.WeakReference;
2
3 public class SoftReferenceDemo {
4 public static void main(String[] args) {
5 Object a = new Object();
6 WeakReference
1、java.lang.IllegalStateException: Class invariant violation
at org.apache.log4j.LogManager.getLoggerRepository(LogManager.java:199)at org.apache.log4j.LogManager.getLogger(LogManager.java:228)
at o
hadoop jps出现process information unavailable提示解决办法
jps时出现如下信息:
3019 -- process information unavailable3053 -- process information unavailable2985 -- process information unavailable2917 --
<?php
class Image{
private $path;
function __construct($path='./'){
$this->path=rtrim($path,'/').'/';
}
//水印函数,参数:背景图,水印图,位置,前缀,TMD透明度
public function water($b,$l,$pos