直接讀取有下面幾個(gè)問題:
1、你直接讀取,還要自己去切割每行?另外,還要考慮空的情況
2、存在各種分割符
寫的話也存在同樣的問題,要自己拼符號(hào),多麻煩。
re: 面試見聞錄 jspark 2007-08-09 16:15
哈哈,現(xiàn)在的人越來越?jīng)]激情了,對(duì)IT業(yè)感到很納悶哦。有好多架構(gòu)師、技術(shù)經(jīng)理居然什么東西都不懂,還推薦不要用面向?qū)ο蟆⒉灰谜齽t表達(dá)式
re: 面試見聞錄 jspark 2007-08-09 16:14
test
re: 面試見聞錄 jspark 2007-08-09 15:59
內(nèi)容被禁止顯示
re: 面試見聞錄[未登錄] jspark 2007-08-09 15:57
內(nèi)容被禁止顯示
其實(shí)不一定要加上
<beans default-autowire="autodetect"> <!--記注一定要加上-->
<bean id="userManager" singleton="true" class="helloWorld.UserManager"/>
</beans>
只要在webwork.properties加上配置屬性webwork.objectFactory.spring.autoWire = type就可以
re: ThreadLocal的幾種誤區(qū) jspark 2006-08-01 13:21
hibernateInterceptor其實(shí)也是Spring的一個(gè)AOP實(shí)現(xiàn)。
他里面的主要處理的事情是幫你綁定session,并沒有幫我們做commit操作。
實(shí)際上,不管是用hibernateInterceptor也好,hibernatetemplate也好,都是可以獨(dú)立聲明事務(wù)的。
這里有spring參考文檔的翻譯版
http://www.jactiongroup.net/reference/html/orm.html
里面應(yīng)該比較清楚
templateContent=templateContent.replaceAll("#title#",title);
templateContent=templateContent.replaceAll("#author#",editer);//替換掉模塊中相應(yīng)的地方
templateContent=templateContent.replaceAll("#content#",content);
請(qǐng)問title、editor、content從那來的?不用訪問數(shù)據(jù)嗎
re: 諸葛亮與IOC的關(guān)系 jspark 2006-07-31 19:41
呵呵,好!
有意思,以前看過一篇是關(guān)于談戀愛的設(shè)計(jì)模式,也挺有趣的
這種方法實(shí)現(xiàn)有點(diǎn)累贅,而且不能重用。
建議用兩種:
在根目錄寫一個(gè)公用的jsp
二,自己寫一個(gè)ResponstUtils來實(shí)現(xiàn),比如,我的一個(gè)實(shí)現(xiàn)是這樣:
//提示并返回值同時(shí)關(guān)閉當(dāng)前窗口,只適用于用window.open打開的窗口
public static void alertAndReturnWithOpen(HttpServletResponse response, String msg, boolean b)
{
try
{
response.setContentType("text/html; charset=GBK");
response.getWriter().println("<script>");
response.getWriter().println("alert('" + msg + "');");
if(b){
response.getWriter().println("opener.location.reload();");
}
response.getWriter().println("window.close();");
response.getWriter().println("</script>");
}
catch (IOException e)
{}
}
re: 開通個(gè)人blog,開心! jspark 2006-07-29 13:28
你小子,個(gè)人blog也可以用生意形容!
以后要經(jīng)常來這里喝喝茶,吐吐口水,呵呵
呵呵,是的,說得沒錯(cuò),只能防君子不能防小人。
可以先用代碼混淆、然戶再通過上面辦法加密。
re: 代碼混淆器的使用 jspark 2006-07-25 11:49
呵呵,的確是自己原創(chuàng)的!
自己的一點(diǎn)工作心得