锘??xml version="1.0" encoding="utf-8" standalone="yes"?>在线A亚洲老鸭窝天堂,亚洲午夜精品一区二区公牛电影院 ,亚洲AV无码一区东京热久久 http://www.tkk7.com/willim/zh-cnSun, 11 May 2025 05:59:39 GMTSun, 11 May 2025 05:59:39 GMT60Spring鐨凞AO瀛︿範絎旇http://www.tkk7.com/willim/archive/2007/01/22/95244.htmlwilllimwilllimMon, 22 Jan 2007 03:22:00 GMThttp://www.tkk7.com/willim/archive/2007/01/22/95244.htmlhttp://www.tkk7.com/willim/comments/95244.htmlhttp://www.tkk7.com/willim/archive/2007/01/22/95244.html#Feedback0http://www.tkk7.com/willim/comments/commentRss/95244.htmlhttp://www.tkk7.com/willim/services/trackbacks/95244.html1.鐞嗚В鐨凷pring鐨凞ataAccessException
DataAccessException錛氭槸Spring鎻愪緵浜嗕竴縐嶄笌鐗瑰畾鎶鏈棤鍏崇殑寮傚父錛屽疄鐜版湇鍔″眰涓庢暟鎹闂眰鐨勫垎紱匯?/p>

浣犱笉涓瀹氳澶勭悊DataAccessException,鍚屾椂鐢變簬DataAccessException鏄疦estedRunTimeException鐨勫瓙綾伙紝
浣犲彲浠ラ氳繃瀹冪殑getCourse()鑾峰緱瀵艱嚧榪欎釜寮傚父鐨勫彟涓涓紓甯革紝榪欐牱浣犲氨鍙互鑾峰緱涓庣壒瀹氭妧鏈浉鍏崇殑寮傚父淇℃伅銆?/p>

Spring涓轟綘鎵撻犲紓甯稿垎綾?br />Spring娓呮涓庣壒瀹氭妧鏈浉鍏崇殑寮傚父錛孲pring鑷繁浼氭姏鍑烘洿涓虹簿紜殑寮傚父
CleanupFailureDataAccessException
DataAccessResourceFailureException
DataIntegrityViolationException
DataRetrieveFailureException
DeadlockLoserDataAccessException
IncorrectUpdataSemanticsDataAccessException
InvalidDataAccessApiUsageException
InvalidDataAccessResourceUsageException
OptimisticLockingFailureException
TypeMismatchDataAccessException
UncategorizeDataAccesException

2.涓嶥ataSource涓璧峰伐浣?br />浠嶫NDI涓幏寰桪ataSource
鍒涘緩涓涓狣ataSource榪炴帴姹犅?org.apache.commons.dbcp.BasicDataSource
鍦ㄦ祴璇曟椂浣跨敤DataSource聽聽 DriveManageDataSource

3.涓鑷寸殑DAO鏀寔
Tempate妯″紡
嫻佺▼欏哄簭涓嶅彉錛屽彲鑳芥湁鏌愪釜嫻佺▼鐨勭粏鑺傛槸瑕佸彉鍖栵紝榪欎釜浜ょ粰鎺ュ彛浜嗭紝鐒跺悗姣忎釜瀹炵幇鐫鍘誨疄鐜拌繖涓帴鍙e氨鍙互銆?br />鎵浠pring鏄氳繃鎻愪緵鐩稿簲鐨勬ā鏉跨被鏉ュ疄鐜扮殑錛屽悓鏃朵篃鎻愪緵浜嗘敮鎾戠被銆?/p>

4.Spring涓巋ibernate鏁村悎
Spring涓巋ibernate鏁村悎涓昏鍦ㄤ互涓嬪嚑鏂歸潰錛?br />鏁村悎浜嬪姟綆$悊
寮傚父澶勭悊
綰跨▼瀹夊叏錛岃交閲忕駭妯℃澘綾?br />渚垮埄鐨勬敮鎸佺被
璧勬簮綆$悊

閰嶇疆SessionFactory
LocalSessionFactoryBean
dataSource
hibernateProperties
mappingDirectoryLocations
mappingResources

HibernateTemplate
HibernateDaoSupport



willlim 2007-01-22 11:22 鍙戣〃璇勮
]]>
JSP瀛︿範絎旇(EL綃?http://www.tkk7.com/willim/archive/2006/12/31/91118.htmlwilllimwilllimSun, 31 Dec 2006 03:19:00 GMThttp://www.tkk7.com/willim/archive/2006/12/31/91118.htmlhttp://www.tkk7.com/willim/comments/91118.htmlhttp://www.tkk7.com/willim/archive/2006/12/31/91118.html#Feedback0http://www.tkk7.com/willim/comments/commentRss/91118.htmlhttp://www.tkk7.com/willim/services/trackbacks/91118.html1.濡備綍閫氳繃EL璁塊棶Implicit Object
EL鍙互鐢ㄥ湪涓や釜浣嶇疆錛?br />a.template text
b.鏍囧噯鏍囩鍜岃嚜瀹氫箟鏍囩鐨勫睘鎬ц緗?/p>

Implicit Object
涓庡彇鍊艱寖鍥存湁鍏崇殑錛?applicationScope, sessionScope, requestScope, pageScope
涓庤緭鍏ヨ緭鍑烘湁鍏崇殑錛歱aram, paramValues
涓巋ead鏈夊叧鐨勶細header錛宧eaderValues
涓巆ookie鏈夊叧錛歝ookie
涓嶴ervletContext鐨勫垵浣垮寲鍙傛暟鏈夊叧錛歩nitParam
榪樻湁涓涓猵ageContext


2.EL璁塊棶鎿嶄綔絎?br />property鎿嶄綔絎﹀彿錛?鎴栬?[]
闆嗗悎鎿嶄綔絎﹀彿錛歔]
濡傛灉瑕佽闂殑灞炴ч噷闈㈠寘鍚潪瀛楁瘝錛屽繀欏昏鐢╗]

3. EL鍏朵粬鎿嶄綔絎﹀彿
a.Arithmetic: +,-(binary),*,/(div),%(mod)
b.logic: &&(and),||(or), !(not)
c.relational:==(eq), !=(ne), <(lt), >(gt),<=(le),>=(ge)
d.empty:鐢ㄦ潵鍒ゆ柇鏄惁涓簄ull鎴杄mpty
e.conditional: ?

4.EL functions
a.濡備綍浣跨敤el functions
${prefix:functionName(args0,...)}
b.濡備綍瀹氫箟涓涓猣unction
瀹氫箟function蹇呴』鏄竴涓猵ublic static鏂規(guī)硶錛屼笖綾葷殑璁塊棶淇グ絎︿篃鏄痯ublic
package willim;
public class MyFunction{
聽public static boolean equals(String str1, String str2) {
聽聽聽return str1.equals(str2);
聽}
}
c.閰嶇疆descriptor
<function>
聽聽<name>equals</name>
聽聽<function-class>willim.MyFunction</function-class>
聽聽<function-signature>boolean equals(java.lang.String, java.lang.String)</function-signature>
</function>



willlim 2006-12-31 11:19 鍙戣〃璇勮
]]>
鏄撲繚闈㈣瘯棰?/title><link>http://www.tkk7.com/willim/archive/2006/12/28/90515.html</link><dc:creator>willlim</dc:creator><author>willlim</author><pubDate>Thu, 28 Dec 2006 08:14:00 GMT</pubDate><guid>http://www.tkk7.com/willim/archive/2006/12/28/90515.html</guid><wfw:comment>http://www.tkk7.com/willim/comments/90515.html</wfw:comment><comments>http://www.tkk7.com/willim/archive/2006/12/28/90515.html#Feedback</comments><slash:comments>5</slash:comments><wfw:commentRss>http://www.tkk7.com/willim/comments/commentRss/90515.html</wfw:commentRss><trackback:ping>http://www.tkk7.com/willim/services/trackbacks/90515.html</trackback:ping><description><![CDATA[     鎽樿: eBaoTech聽 Test 涓 絎旇瘯 鍏ㄨ嫳鏂囷紙絳旀浠呬唬琛ㄦ湰浜烘剰瑙侊紝鏈漢鍋氫簡涓戦檵鐨勭炕璇戙傚笇鏈涜嚜宸辮鐪熸濊冦傦級 浠?..  <a href='http://www.tkk7.com/willim/archive/2006/12/28/90515.html'>闃呰鍏ㄦ枃</a><img src ="http://www.tkk7.com/willim/aggbug/90515.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.tkk7.com/willim/" target="_blank">willlim</a> 2006-12-28 16:14 <a href="http://www.tkk7.com/willim/archive/2006/12/28/90515.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>SERVLET瀛︿範絎旇(涓)http://www.tkk7.com/willim/archive/2006/12/25/servlet.htmlwilllimwilllimMon, 25 Dec 2006 14:30:00 GMThttp://www.tkk7.com/willim/archive/2006/12/25/servlet.htmlhttp://www.tkk7.com/willim/comments/89992.htmlhttp://www.tkk7.com/willim/archive/2006/12/25/servlet.html#Feedback0http://www.tkk7.com/willim/comments/commentRss/89992.htmlhttp://www.tkk7.com/willim/services/trackbacks/89992.html鎵撶畻榪欎釜鏄熸湡鎶奡ERVLET鍜孞SP澶嶄範涓?鎴戣涓哄熀紜瀵逛竴涓漢寰堥噸瑕?鎵浠ヤ細緇忓父鍥炶繃澶存潵鐪嬬湅.
1.HTTP鍗忚
姣忎釜鍋歸eb搴旂敤閮藉簲璇ョ啛鎮(zhèn)塇TTP鍗忚鍚?濡傛灉涓嶇啛鎮(zhèn)夊ぇ瀹舵壘浜涜祫鏂欏幓瀛﹀.
GET: 鍙傛暟鐩存帴浣滀負涓涓猶uery string鏀懼埌URL鍚庨潰浼犻掔殑.鍙互鏄痶ext
POST:鍙傛暟鏄綔涓哄皝瑁呬竴涓姹備俊鎭綋閲岀殑.鍙互鏄痶ext鍜宐inary
servlet閲屾湁澶氫釜鏂規(guī)硶鐢ㄦ潵瀵瑰簲澶勭悊http鍗忚鐨勮姹傛柟娉?br />doGet() : link,鍜岀洿鎺ュ湪嫻忚鍣ㄤ腑杈撳叆URL
doPost():聽 閫氳繃form琛ㄥ崟鏄劇ず澹版槑method="post",鍚﹀垯榛樿涓篻et
doDelete(): 閽堝瑕佸垹闄ゆ湇鍔″櫒鐨勬煇浜涜祫婧愮殑璇鋒眰
doTrace(): 璋冭瘯鏈嶅姟鍣ㄨ繛鎺ョ殑http鏂瑰紡
doOptions() : The OPTIONS request determines which HTTP methods the server supports and returns an appropriate header. For example, if a servlet overrides doGet, this method returns the following header:
Allow: GET, HEAD, TRACE, OPTIONS
doPut() : 閽堝瑕佸悜鏈嶅姟鍣ㄦ斁鍏ユ柊鐨勬枃浠剁殑璇鋒眰
doHead(): 閽堝鍙response鐨凥eader淇℃伅鐨勮姹?/p>

褰揷lient鏉ヤ竴涓姹傛椂,doService(HttpServletRequest request, HttpServletResponse response) throws ServletException ,IOException鎺ュ彈榪欎釜,騫墮夋嫨鐩稿簲鐨勮姹傞夋嫨鐩稿簲鐨勬柟娉曡繘琛屽鐞?/p>

2.HttpServletResquest浠嬬粛
甯哥敤鐨勬柟娉?String getParameter(String name)
Enumeration getParameterNames()
String[] getParameterValues(String name)
String聽聽 getHeader(String name)
int getIntHeader(String name)
long getDateHeader(String name)
Enumeration getHeaderNames()
String[] getHeaderValus(String name)
Cookies[] getCookies()

3.HttpServletResponse浠嬬粛
void setContentType(String type)
setHeader(String name, String value)
setIntHeader(String name, int value)
setDateHeader(String name, long value)
addHeader(String name, String name)
addIntHeader(String name, int value)
addDateHeader(String name ,long value)
boolean containsHeader(String name)

PrintWriter getWriter()聽 //榪斿洖瀛楃嫻?br />OutputStream getOutputStream()聽 //榪斿洖瀛楄妭嫻?/p>

void sendRedirect(String URL) //閲嶅畾鍚戝埌鏌愪釜欏甸潰

void sendError(int sc) //鍙戠敓閿欒鍚戝鎴風鍙戦佺姸鎬佺爜
void sendError(int sc, String message)

void addCookie(Cookie cookie) //澧炲姞涓涓猚ookie

Cookie(String name, String value) //聽 cookie鐨勬瀯閫犳柟娉?/p>

4.SERVLET鐨勭敓鍛藉懆鏈?br />servlet loading聽 ---> servlet instantiation ---> call init() ---> call doService handle request ---> call destroy()

public void init(ServletConfig config) throws ServletException
濡傛灉override榪欎釜鏂規(guī)硶蹇呴』鍏堣皟鐢╯uper.init(config)

public void init() throws ServletException

public void service() throws ServletException, IOException

public void destroy() throws ServletException



willlim 2006-12-25 22:30 鍙戣〃璇勮
]]>
鎴戠殑blog寮閫氬暒!!!!! 澶у澶氭潵閫涢?/title><link>http://www.tkk7.com/willim/archive/2006/12/20/89139.html</link><dc:creator>willlim</dc:creator><author>willlim</author><pubDate>Wed, 20 Dec 2006 13:13:00 GMT</pubDate><guid>http://www.tkk7.com/willim/archive/2006/12/20/89139.html</guid><wfw:comment>http://www.tkk7.com/willim/comments/89139.html</wfw:comment><comments>http://www.tkk7.com/willim/archive/2006/12/20/89139.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.tkk7.com/willim/comments/commentRss/89139.html</wfw:commentRss><trackback:ping>http://www.tkk7.com/willim/services/trackbacks/89139.html</trackback:ping><description><![CDATA[浠婂ぉ涓澶у枩浜嬪綋鐒跺氨鏄垜緇堜簬鎴愮珛鎴戣嚜宸辯殑blog鍟? 鑰屼笖鏄竴涓猨ava鎶鏈痓log,寰堝叴濂媔ng, 嬈㈣繋澶у鏉ュ悙鍙f按,浠ュ悗鎴戜細鍦ㄨ繖閲屽鍚愬彛姘寸殑.<br /><br /><br />娌℃庝箞鍐欒繃blog, 浣嗘槸鐪嬪埌濂藉浜洪兘鏈夎嚜宸辯殑blog,蹇冮噷鐥掔棐鐨?搴旇鎶婅嚜宸辯殑鎬濇兂,鑷繁瀛︾殑鏂扮煡璇嗙粰澶у鍒嗕韓搴旇鏄竴縐嶄韓鍙椾篃......聽 <br /><br /><br />鍦h癁蹇埌浜? 紲濊春澶у鍦h癁蹇箰!!!!!!<img src ="http://www.tkk7.com/willim/aggbug/89139.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.tkk7.com/willim/" target="_blank">willlim</a> 2006-12-20 21:13 <a href="http://www.tkk7.com/willim/archive/2006/12/20/89139.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item></channel></rss> <footer> <div class="friendship-link"> <p>感谢您访问我们的网站,您可能还对以下资源感兴趣:</p> <a href="http://www.tkk7.com/" title="亚洲av成人片在线观看">亚洲av成人片在线观看</a> <div class="friend-links"> </div> </div> </footer> 主站蜘蛛池模板: <a href="http://ystchem.com" target="_blank">国产日韩一区二区三免费高清</a>| <a href="http://hbjpxnyqckj.com" target="_blank">国产亚洲漂亮白嫩美女在线</a>| <a href="http://ss8kk.com" target="_blank">国产色无码精品视频免费</a>| <a href="http://www-566846.com" target="_blank">亚洲国产精品无码久久青草 </a>| <a href="http://deyingwh.com" target="_blank">亚洲美日韩Av中文字幕无码久久久妻妇</a>| <a href="http://yuduruizhi.com" target="_blank">亚洲婷婷在线视频</a>| <a href="http://jisuanq.com" target="_blank">中文字幕无码播放免费</a>| <a href="http://liuxilife.com" target="_blank">亚洲婷婷天堂在线综合</a>| <a href="http://wwwp784.com" target="_blank">成人最新午夜免费视频</a>| <a href="http://ittenyear.com" target="_blank">激情小说亚洲色图</a>| <a href="http://kph37.com" target="_blank">亚洲精品第一国产综合精品99</a>| <a href="http://2255325.com" target="_blank">一级特黄色毛片免费看</a>| <a href="http://010youhua.com" target="_blank">亚洲人成色7777在线观看</a>| <a href="http://7788xxx.com" target="_blank">久久青草免费91线频观看站街</a>| <a href="http://dazngt.com" target="_blank">久久精品国产亚洲精品2020</a>| <a href="http://wwwee2.com" target="_blank">久久天天躁狠狠躁夜夜免费观看 </a>| <a href="http://arkinbokis.com" target="_blank">亚洲美女视频网站</a>| <a href="http://69ct.com" target="_blank">久久久久久国产a免费观看黄色大片</a>| <a href="http://aizaicc.com" target="_blank">亚洲中字慕日产2020</a>| <a href="http://meiluniao.com" target="_blank">午夜男人一级毛片免费</a>| <a href="http://horticartf.com" target="_blank">一本久久免费视频</a>| <a href="http://tedegold.com" target="_blank">亚洲国产精品无码久久SM</a>| <a href="http://www97544.com" target="_blank">97av免费视频</a>| <a href="http://8xk7u9.com" target="_blank">亚洲第一第二第三第四第五第六 </a>| <a href="http://502274.com" target="_blank">亚洲福利视频一区二区</a>| <a href="http://s4lm0x.com" target="_blank">GOGOGO免费观看国语</a>| <a href="http://amjt9.com" target="_blank">久久久婷婷五月亚洲97号色</a>| <a href="http://hnlchb.com" target="_blank">毛片a级三毛片免费播放</a>| <a href="http://930mk.com" target="_blank">老司机免费午夜精品视频</a>| <a href="http://xyflash.com" target="_blank">国产亚洲精品无码成人</a>| <a href="http://yiren2233.com" target="_blank">97国产免费全部免费观看</a>| <a href="http://hn-hshb.com" target="_blank">国产亚洲精品91</a>| <a href="http://xin-matai.com" target="_blank">亚洲国产精品VA在线观看麻豆</a>| <a href="http://66keke.com" target="_blank">色se01短视频永久免费</a>| <a href="http://606059.com" target="_blank">九一在线完整视频免费观看</a>| <a href="http://48eh.com" target="_blank">亚洲国产精品专区</a>| <a href="http://cjfuli.com" target="_blank">国产亚洲精aa成人网站</a>| <a href="http://yutuzb.com" target="_blank">国产卡一卡二卡三免费入口</a>| <a href="http://kk600700.com" target="_blank">一级一级一片免费高清</a>| <a href="http://kuaizhuxia.com" target="_blank">亚洲精品综合久久中文字幕</a>| <a href="http://paweax.com" target="_blank">亚洲日韩精品无码专区网站 </a>| <script> (function(){ var bp = document.createElement('script'); var curProtocol = window.location.protocol.split(':')[0]; if (curProtocol === 'https') { bp.src = 'https://zz.bdstatic.com/linksubmit/push.js'; } else { bp.src = 'http://push.zhanzhang.baidu.com/push.js'; } var s = document.getElementsByTagName("script")[0]; s.parentNode.insertBefore(bp, s); })(); </script> </body>