▼
2015年9月16日 星期三
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月11日 星期五
[JSP] Scriptlet VS EL expression / JSP Best Practices
What is Scriptlet?
Example: <% int i=0; %>
What is Expression Language?
Example: ${Some_Vars}
Better use EL overScriplet :
http://stackoverflow.com/questions/3177733/how-to-avoid-java-code-in-jsp-files/3180202#3180202
Example: <% int i=0; %>
What is Expression Language?
Example: ${Some_Vars}
Better use EL over
http://stackoverflow.com/questions/3177733/how-to-avoid-java-code-in-jsp-files/3180202#3180202
2015年9月9日 星期三
[Spring Bean] A Summary on why @Autowired field got null value
- 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