發表文章

目前顯示的是 2月, 2015的文章

eclipse format length

自動分行的字元長度設定: java Preferences -> Java -> Code Style -> Formatter / Edit -> Line wrapping -> Maximum line width html(include html and jsp) Preferences -> Web -> HTML Files -> Editor -> Line width xml Preferences > XML > XML Files > Editor > Line width 不要自動合併行設定: java Preferences -> Java -> Code Style -> Formatter / Edit -> Line wrapping -> Never join already wrapped lines html(include html and jsp) Preferences -> Web -> HTML Files -> Editor -> in line elements -> 移除不要併行的tag xml Preferences > XML > XML Files > Editor > 取消 join lines

修改MAC hostname主機名稱

修改方法: system Preferences - Sharing - Computer Name or Edit - Local Hostname 修改完成後重開機生效,在terminal的hostname也自動變更。 terminal指令:hostname 其他方法reference: sudo scutil --set HostName "newname" http://apple.stackexchange.com/questions/66611/how-to-change-computer-name-so-terminal-displays-it-in-mac-os-x-mountain-lion

Tomcat: A docBase inside the host appBase has been specified, and will be ignore

錯誤警告A docBase inside the host appBase has been specified, and will be ignore 因為${catalina.home}/webapps底下已經存在一個mywebapp, 而conf\Catalina\localhost\ROOT.xml 也指定同一個mywebapp的docBase, 導致啟動Tomcat時,檢測到webapp docBase已被載入過。 解決方法:將mywebapp移出 ${catalina.home}/webapps到其他路徑 reference http://blog.sina.com.cn/s/blog_7623ecc40100wvlo.html