锘??xml version="1.0" encoding="utf-8" standalone="yes"?>国产精品久久不能,亚洲国产精品成人一区二区,一区二区三区国产精品http://www.aygfsteel.com/willim/zh-cnSat, 05 Jul 2025 22:01:16 GMTSat, 05 Jul 2025 22:01:16 GMT60Spring鐨凞AO瀛︿範絎旇http://www.aygfsteel.com/willim/archive/2007/01/22/95244.htmlwilllimwilllimMon, 22 Jan 2007 03:22:00 GMThttp://www.aygfsteel.com/willim/archive/2007/01/22/95244.htmlhttp://www.aygfsteel.com/willim/comments/95244.htmlhttp://www.aygfsteel.com/willim/archive/2007/01/22/95244.html#Feedback0http://www.aygfsteel.com/willim/comments/commentRss/95244.htmlhttp://www.aygfsteel.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.aygfsteel.com/willim/archive/2006/12/31/91118.htmlwilllimwilllimSun, 31 Dec 2006 03:19:00 GMThttp://www.aygfsteel.com/willim/archive/2006/12/31/91118.htmlhttp://www.aygfsteel.com/willim/comments/91118.htmlhttp://www.aygfsteel.com/willim/archive/2006/12/31/91118.html#Feedback0http://www.aygfsteel.com/willim/comments/commentRss/91118.htmlhttp://www.aygfsteel.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鏂規硶錛屼笖綾葷殑璁塊棶淇グ絎︿篃鏄痯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.aygfsteel.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.aygfsteel.com/willim/archive/2006/12/28/90515.html</guid><wfw:comment>http://www.aygfsteel.com/willim/comments/90515.html</wfw:comment><comments>http://www.aygfsteel.com/willim/archive/2006/12/28/90515.html#Feedback</comments><slash:comments>5</slash:comments><wfw:commentRss>http://www.aygfsteel.com/willim/comments/commentRss/90515.html</wfw:commentRss><trackback:ping>http://www.aygfsteel.com/willim/services/trackbacks/90515.html</trackback:ping><description><![CDATA[     鎽樿: eBaoTech聽 Test 涓 絎旇瘯 鍏ㄨ嫳鏂囷紙絳旀浠呬唬琛ㄦ湰浜烘剰瑙侊紝鏈漢鍋氫簡涓戦檵鐨勭炕璇戙傚笇鏈涜嚜宸辮鐪熸濊冦傦級 浠?..  <a href='http://www.aygfsteel.com/willim/archive/2006/12/28/90515.html'>闃呰鍏ㄦ枃</a><img src ="http://www.aygfsteel.com/willim/aggbug/90515.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.aygfsteel.com/willim/" target="_blank">willlim</a> 2006-12-28 16:14 <a href="http://www.aygfsteel.com/willim/archive/2006/12/28/90515.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>SERVLET瀛︿範絎旇(涓)http://www.aygfsteel.com/willim/archive/2006/12/25/servlet.htmlwilllimwilllimMon, 25 Dec 2006 14:30:00 GMThttp://www.aygfsteel.com/willim/archive/2006/12/25/servlet.htmlhttp://www.aygfsteel.com/willim/comments/89992.htmlhttp://www.aygfsteel.com/willim/archive/2006/12/25/servlet.html#Feedback0http://www.aygfsteel.com/willim/comments/commentRss/89992.htmlhttp://www.aygfsteel.com/willim/services/trackbacks/89992.html鎵撶畻榪欎釜鏄熸湡鎶奡ERVLET鍜孞SP澶嶄範涓?鎴戣涓哄熀紜瀵逛竴涓漢寰堥噸瑕?鎵浠ヤ細緇忓父鍥炶繃澶存潵鐪嬬湅.
1.HTTP鍗忚
姣忎釜鍋歸eb搴旂敤閮藉簲璇ョ啛鎮塇TTP鍗忚鍚?濡傛灉涓嶇啛鎮夊ぇ瀹舵壘浜涜祫鏂欏幓瀛﹀.
GET: 鍙傛暟鐩存帴浣滀負涓涓猶uery string鏀懼埌URL鍚庨潰浼犻掔殑.鍙互鏄痶ext
POST:鍙傛暟鏄綔涓哄皝瑁呬竴涓姹備俊鎭綋閲岀殑.鍙互鏄痶ext鍜宐inary
servlet閲屾湁澶氫釜鏂規硶鐢ㄦ潵瀵瑰簲澶勭悊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榪欎釜鏂規硶蹇呴』鍏堣皟鐢╯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.aygfsteel.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.aygfsteel.com/willim/archive/2006/12/20/89139.html</guid><wfw:comment>http://www.aygfsteel.com/willim/comments/89139.html</wfw:comment><comments>http://www.aygfsteel.com/willim/archive/2006/12/20/89139.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.aygfsteel.com/willim/comments/commentRss/89139.html</wfw:commentRss><trackback:ping>http://www.aygfsteel.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.aygfsteel.com/willim/aggbug/89139.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.aygfsteel.com/willim/" target="_blank">willlim</a> 2006-12-20 21:13 <a href="http://www.aygfsteel.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"> <a href="http://www.aygfsteel.com/" title="狠狠久久亚洲欧美专区_中文字幕亚洲综合久久202_国产精品亚洲第五区在线_日本免费网站视频">狠狠久久亚洲欧美专区_中文字幕亚洲综合久久202_国产精品亚洲第五区在线_日本免费网站视频</a> </div> </footer> 主站蜘蛛池模板: <a href="http://" target="_blank">罗定市</a>| <a href="http://" target="_blank">九台市</a>| <a href="http://" target="_blank">克什克腾旗</a>| <a href="http://" target="_blank">叶城县</a>| <a href="http://" target="_blank">台安县</a>| <a href="http://" target="_blank">永登县</a>| <a href="http://" target="_blank">云龙县</a>| <a href="http://" target="_blank">方山县</a>| <a href="http://" target="_blank">蒙山县</a>| <a href="http://" target="_blank">隆子县</a>| <a href="http://" target="_blank">如皋市</a>| <a href="http://" target="_blank">新田县</a>| <a href="http://" target="_blank">子长县</a>| <a href="http://" target="_blank">陇川县</a>| <a href="http://" target="_blank">景洪市</a>| <a href="http://" target="_blank">孝义市</a>| <a href="http://" target="_blank">通江县</a>| <a href="http://" target="_blank">汝城县</a>| <a href="http://" target="_blank">台江县</a>| <a href="http://" target="_blank">乌恰县</a>| <a href="http://" target="_blank">西藏</a>| <a href="http://" target="_blank">新营市</a>| <a href="http://" target="_blank">江华</a>| <a href="http://" target="_blank">晴隆县</a>| <a href="http://" target="_blank">宁都县</a>| <a href="http://" target="_blank">大连市</a>| <a href="http://" target="_blank">汪清县</a>| <a href="http://" target="_blank">循化</a>| <a href="http://" target="_blank">赤壁市</a>| <a href="http://" target="_blank">信阳市</a>| <a href="http://" target="_blank">阿城市</a>| <a href="http://" target="_blank">临沧市</a>| <a href="http://" target="_blank">嵊泗县</a>| <a href="http://" target="_blank">永昌县</a>| <a href="http://" target="_blank">长寿区</a>| <a href="http://" target="_blank">兴海县</a>| <a href="http://" target="_blank">天门市</a>| <a href="http://" target="_blank">合川市</a>| <a href="http://" target="_blank">噶尔县</a>| <a href="http://" target="_blank">丰原市</a>| <a href="http://" 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>