锘??xml version="1.0" encoding="utf-8" standalone="yes"?>在线A亚洲老鸭窝天堂,亚洲午夜精品一区二区公牛电影院 ,亚洲AV无码一区东京热久久 http://m.tkk7.com/willim/zh-cnSun, 11 May 2025 05:59:39 GMTSun, 11 May 2025 05:59:39 GMT60Spring鐨凞AO瀛︿範絎旇http://m.tkk7.com/willim/archive/2007/01/22/95244.htmlwilllimwilllimMon, 22 Jan 2007 03:22:00 GMThttp://m.tkk7.com/willim/archive/2007/01/22/95244.htmlhttp://m.tkk7.com/willim/comments/95244.htmlhttp://m.tkk7.com/willim/archive/2007/01/22/95244.html#Feedback0http://m.tkk7.com/willim/comments/commentRss/95244.htmlhttp://m.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://m.tkk7.com/willim/archive/2006/12/31/91118.htmlwilllimwilllimSun, 31 Dec 2006 03:19:00 GMThttp://m.tkk7.com/willim/archive/2006/12/31/91118.htmlhttp://m.tkk7.com/willim/comments/91118.htmlhttp://m.tkk7.com/willim/archive/2006/12/31/91118.html#Feedback0http://m.tkk7.com/willim/comments/commentRss/91118.htmlhttp://m.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://m.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://m.tkk7.com/willim/archive/2006/12/28/90515.html</guid><wfw:comment>http://m.tkk7.com/willim/comments/90515.html</wfw:comment><comments>http://m.tkk7.com/willim/archive/2006/12/28/90515.html#Feedback</comments><slash:comments>5</slash:comments><wfw:commentRss>http://m.tkk7.com/willim/comments/commentRss/90515.html</wfw:commentRss><trackback:ping>http://m.tkk7.com/willim/services/trackbacks/90515.html</trackback:ping><description><![CDATA[     鎽樿: eBaoTech聽 Test 涓 絎旇瘯 鍏ㄨ嫳鏂囷紙絳旀浠呬唬琛ㄦ湰浜烘剰瑙侊紝鏈漢鍋氫簡涓戦檵鐨勭炕璇戙傚笇鏈涜嚜宸辮鐪熸濊冦傦級 浠?..  <a href='http://m.tkk7.com/willim/archive/2006/12/28/90515.html'>闃呰鍏ㄦ枃</a><img src ="http://m.tkk7.com/willim/aggbug/90515.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://m.tkk7.com/willim/" target="_blank">willlim</a> 2006-12-28 16:14 <a href="http://m.tkk7.com/willim/archive/2006/12/28/90515.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>SERVLET瀛︿範絎旇(涓)http://m.tkk7.com/willim/archive/2006/12/25/servlet.htmlwilllimwilllimMon, 25 Dec 2006 14:30:00 GMThttp://m.tkk7.com/willim/archive/2006/12/25/servlet.htmlhttp://m.tkk7.com/willim/comments/89992.htmlhttp://m.tkk7.com/willim/archive/2006/12/25/servlet.html#Feedback0http://m.tkk7.com/willim/comments/commentRss/89992.htmlhttp://m.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://m.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://m.tkk7.com/willim/archive/2006/12/20/89139.html</guid><wfw:comment>http://m.tkk7.com/willim/comments/89139.html</wfw:comment><comments>http://m.tkk7.com/willim/archive/2006/12/20/89139.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://m.tkk7.com/willim/comments/commentRss/89139.html</wfw:commentRss><trackback:ping>http://m.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://m.tkk7.com/willim/aggbug/89139.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://m.tkk7.com/willim/" target="_blank">willlim</a> 2006-12-20 21:13 <a href="http://m.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://m.tkk7.com/" title="亚洲av成人片在线观看">亚洲av成人片在线观看</a> <div class="friend-links"> </div> </div> </footer> 主站蜘蛛池模板: <a href="http://7766ks.com" target="_blank">三年片在线观看免费大全电影</a>| <a href="http://fenglengqi.com" target="_blank">亚洲乱码日产精品一二三</a>| <a href="http://jsjumei.com" target="_blank">特黄aa级毛片免费视频播放</a>| <a href="http://j3223.com" target="_blank">亚洲av网址在线观看</a>| <a href="http://001mc.com" target="_blank">一级片在线免费看</a>| <a href="http://bjsunic.com" target="_blank">五月婷婷亚洲综合</a>| <a href="http://cswsfz.com" target="_blank">亚洲国产精品久久久久</a>| <a href="http://445645.com" target="_blank">永久在线观看免费视频</a>| <a href="http://yctbhb.com" target="_blank">亚洲永久永久永久永久永久精品</a>| <a href="http://fantoment.com" target="_blank">久操视频在线免费观看</a>| <a href="http://fdsyjy.com" target="_blank">亚洲AV无码国产丝袜在线观看</a>| <a href="http://33338x.com" target="_blank">无码人妻AV免费一区二区三区</a>| <a href="http://by2988.com" target="_blank">免费国产成人高清视频网站</a>| <a href="http://cg-fun.com" target="_blank">亚洲AV永久无码精品</a>| <a href="http://928288.com" target="_blank">日本免费一区二区久久人人澡</a>| <a href="http://9522952.com" target="_blank">亚洲网址在线观看你懂的</a>| <a href="http://wwwbi757.com" target="_blank">1000部夫妻午夜免费</a>| <a href="http://352362.com" target="_blank">亚洲日本久久久午夜精品</a>| <a href="http://szicon.com" target="_blank">免费看香港一级毛片</a>| <a href="http://ahtxjk.com" target="_blank">亚洲国产精品无码专区影院</a>| <a href="http://27simnjingmiguan.com" target="_blank">国产成人精品日本亚洲语音</a>| <a href="http://666fzw.com" target="_blank">亚洲第一网站男人都懂</a>| <a href="http://haichuanwangluo.com" target="_blank">岛国岛国免费V片在线观看</a>| <a href="http://mysb123.com" target="_blank">亚洲av日韩av无码</a>| <a href="http://wcnmgb.com" target="_blank">67194成是人免费无码</a>| <a href="http://lfhuanxin.com" target="_blank">男男gay做爽爽的视频免费</a>| <a href="http://15831883389.com" target="_blank">伊人久久亚洲综合</a>| <a href="http://papapa97.com" target="_blank">亚洲视频免费在线播放</a>| <a href="http://556228.com" target="_blank">亚洲av片在线观看</a>| <a href="http://henhenluc.com" target="_blank">亚洲精品国产精品乱码视色 </a>| <a href="http://9hao66.com" target="_blank">亚洲午夜国产精品</a>| <a href="http://www-84243.com" target="_blank">国产成人免费A在线视频</a>| <a href="http://zc-zk.com" target="_blank">两性色午夜免费视频</a>| <a href="http://kyqp0033.com" target="_blank">亚洲国产精品一区二区久</a>| <a href="http://51nianyefan.com" target="_blank">在线免费观看韩国a视频</a>| <a href="http://yy6636.com" target="_blank">亚洲AV无码一区二区三区在线</a>| <a href="http://1897tao.com" target="_blank">国产禁女女网站免费看</a>| <a href="http://kdp44.com" target="_blank">青柠影视在线观看免费高清</a>| <a href="http://rdccc.com" target="_blank">亚洲精品午夜国产va久久</a>| <a href="http://arkinbokis.com" target="_blank">久久影视综合亚洲</a>| <a href="http://942woool.com" target="_blank">黄色a三级三级三级免费看</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>