發表文章

Windows 連接埠被佔用了怎麼辦?

在commamd line 中下 [ netstat -ano ] 命令 在local address欄位中找到被佔用的 port 跟在 pid 欄位中找到對應的 process id 按 Ctrl+Alt+Del 叫出工作管理員,按下處理程序 tab,在[檢視]-->[顯示欄位]中勾選pid才會顯示pid欄位,這樣就可以知道是誰幹的好事了! 找不到pid的話試著去勾選下面有個 [顯示來自所有使用者的處理程序] 吧!

Srping MultiactionController 使用綁定的設定

跟simpleform controller一樣,先在xml中設定好validator 只要validator的support有支援到在multiaction controller中的command的時候 就會採用該valiodator 接下來新增一個MyMultiacitonController 擴展原本的multiaction controller public class MyMultiactionController extends MultiActionController { //用來儲存binding error的model private Map errorModel = null; //以下是修改原始程式碼的結果 @Override protected void bind(HttpServletRequest request, Object command) throws Exception { logger.debug("Binding request parameters onto MultiActionController command"); ServletRequestDataBinder binder = createBinder(request, command); binder.bind(request); if (getValidators() != null) { for (int i = 0; i if (getValidators()[i].supports(command.getClass())) { ValidationUtils.invokeValidator(getValidators()[i], command, binder.getBindingResult()); } } } if (binder.getBindingResult().hasErrors()) { setErrorModel(binder.getBindingResult().getModel()); } } public Map getErrorModel() { Map map = this.errorModel; this.errorModel = n...

管理 resource bundle的好工具

http://www.eclipse-plugins.info/eclipse/plugin_details.jsp?id=886 好用的工具,終於可以逃脫用沒多久就令人厭倦的native2ascii, 有人寫出了這樣的好工具,真是太方便了。 他可以直接看到我們想要的結果,並且可以同時編輯,棒!!

Windows server 2003變更Terminal Server 的 listening port

廢話就不多說了,直接參考 Reference : http://support.microsoft.com/kb/187623/EN-US/

Android 初學者的論壇

Android 开发者论坛 http://www.mymobisoft.com/bbs/index.php Android很讓人振奮,希望他能夠夠持續讓人振奮!!

Windows server 2003 port 重導

圖片
由於防火牆的限制,沒辦法使用 port 3389 連線,但又不想修改server上遠端登入的port,因為這樣會影響到別人的登入,便想到用轉port的方式,譬如說防火牆可能沒鎖某個port(e.g. 22),那我就把 port 22 的連線都導到 port 3389,問題就解決了。 步驟如下 1.開始-->控制台-->Windows防火牆 2.進階-->設定 3.新增 4.依序將每個項目填入,按下確定後大功告成 Reference : http://support.microsoft.com/kb/317530

Starting Linux

Ubuntu改變了我對linux的偏見,我從他身上看到了曙光,linux當作業系統就是要這樣,爽!!