Complete introduction
A simple example~
[Important!]
將設定檔放在Jar包外部執行!
final InputStream inStream = ClassLoader.getSystemResourceAsStream("EJBProp.properties");
取得的方式較簡單
重點在MANIFEST.MF中 設定Class-Path: ./
表示需從 class loader所在的位置搜尋檔案~!!
This blog records some ideas, notes, and information of my works and studies in information technology.
No comments:
Post a Comment