2015年9月15日 星期二

[JAVA RMI] Remote Method Invocation

The Java Remote Method Invocation (RMI) system allows an object running in one Java virtual machine to invoke methods on an object running in another Java virtual machine.

RMI provides for remote communication between programs written in the Java programming language.

https://docs.oracle.com/javase/tutorial/rmi/

2015年9月14日 星期一

[Java] SimpleDateFormat

Code Template:
Calendar cal = Calendar.getInstance();
SimpleDateFormat sdf = new SimpleDateFormat("YY/MM/dd HH:mm:ss");
System.out.println( sdf.format(cal.getTime()) );

2015年9月9日 星期三

[Spring Bean] A Summary on why @Autowired field got null value


  1. The object is instantiated via "new Object()" rather than in app context pool
    How to check
    Via Eclipse Debug > stacktrace > check where the instance are from 

日常秘技小輯錄

媽媽傳授: 用爉燭塗在線上縫紉,可以更容易打結,以及拉縫線更順 爸爸傳授: 貼玻璃紙前在玻璃面塗上肥皂水,可以移動玻璃紙不留摺痕