2012/12/25

[spring] xml 設定 system property 的方法

在 xml 設定 system property,將要加入的 system property 放到 <prop> 內。將 $PROPERTY_NAME$PROPERTY_VALUE 更換成設定的變數。

2012/11/09

[java] static block

欲對 static 變數初始化,可以怎麼作?

2012/05/24

[spring] class 繼承關係的 xml 設定

當 class 有繼承關係時,像是 BusTrunk 皆為 Vehicle

2012/05/23

[spring] Could not access JMS invoker queue

org.springframework.remoting.RemoteAccessException:
Could not access JMS invoker queue [name]; nested exception is javax.jms.JMSException: User name or password is invalid. at ...

2012/03/01

[zerojudge] d114 好累的小玫

題目:https://zerojudge.tw/ShowProblem?problemid=d114

[java] bat 檔案執行 main class

先用 -cp 設定 main class 會需要的檔案並載入到 classpath,接著執行 main 所在的 class 並傳入參數 (main 會收到的 String[] args)。

[java] bat 檔案載入 java classpath

在 bat 檔案設定 classpath 變數,再載入指定的 jar 檔後,用 for 迴圈來串接 CLASSPATH 變數。

2012/02/19

[java] subclass constructor different with superclass

當 subclass constructor 希望不同於 parent class constructor 時,程式碼該怎麼寫? 繼承時,super 都要放在 constructor 的第一行,這樣有辦法嗎?

2012/02/08

[Linux] Error: bin/bash^M: bad interpreter

Error: bin/bash^M: bad interpreter: no such file or directory

[Linux] 掛載隨身硬碟

掛載隨身硬碟指令