锘??xml version="1.0" encoding="utf-8" standalone="yes"?>成人综合影院,日本五码在线,日韩精品在线播放 http://www.aygfsteel.com/bnlovebn/category/12156.html銆婂懆鏄撱嬫洶錛?lt;br>
澶╄鍋ワ紝鍚涘瓙浠ヨ嚜寮轟笉鎭?涔懼崷)<br>
鍦板娍鍧わ紝鍚涘瓙浠ュ帤寰瘋澆鐗?鍧ゅ崷)
zh-cn Tue, 14 Jun 2011 06:18:08 GMT Tue, 14 Jun 2011 06:18:08 GMT 60 欏圭洰涓垚鍔熺殑榪愮敤proxool榪炴帴姹?/title> http://www.aygfsteel.com/bnlovebn/articles/352126.html閲嶅綊鏈瀿錛圔ing錛?/dc:creator>閲嶅綊鏈瀿錛圔ing錛?/author>Sun, 12 Jun 2011 05:56:00 GMT http://www.aygfsteel.com/bnlovebn/articles/352126.html http://www.aygfsteel.com/bnlovebn/comments/352126.html http://www.aygfsteel.com/bnlovebn/articles/352126.html#Feedback 0 http://www.aygfsteel.com/bnlovebn/comments/commentRss/352126.html http://www.aygfsteel.com/bnlovebn/services/trackbacks/352126.html 絎竴姝ワ細棣栧厛鍘?/strong>http://proxool.sourceforge.net/ 涓嬭澆 涓涓猵roxool.jar鏂囦歡浜嗭紝鎴戠敤鐨勬槸proxool-0.8.3.jar,鐜板湪鏈鏂扮増鏈槸proxool-0.9.3.jar.闄や簡浠栦滑鐨勬煡鐪嬬洃鎺у彴鐨勯〉闈㈡湁鍙樺寲錛屽叾浠栫殑鍙樺寲涓嶆槸澶ぇ銆?/strong> 絎簩姝ワ細灝辨槸鍐欎竴涓崟鐙殑proxool.xml鏂囦歡鏀懼埌WEB-INF鏂囦歡澶逛笅銆傛垜鐢ㄧ殑鏁版嵁搴撴槸MySQL. peoxool.xml鐨勯厤緗枃浠跺涓嬶細
1 <? xml version="1.0" encoding="UTF-8" ?> 2 < proxool-config > 3 < proxool > 4 < alias > db </ alias > 5 < driver-url > jdbc:mysql://×××.×××.××.×××:3303/mydb < driver-url > 6 < driver-class > com.mysql.jdbc.Driver </ driver-class > 7 < driver-properties > 8 < property name ="user" value ="root" /> 9 < property name ="password" value ="*******" /> 10 </ driver-properties > 11 < house-keeping-sleep-time > 90000 </ house-keeping-sleep-time > 12 < maximum-new-connections > 20 </ maximum-new-connections > 13 < prototype-count > 5 </ prototype-count > 14 < maximum-connection-count > 1000 </ maximum-connection-count > 15 < minimum-connection-count > 10 </ minimum-connection-count > 16 </ proxool > 17 </ proxool-config > 18 瀵逛互涓婇厤緗畝鍗曠殑瑙i噴錛?br /> 1.<alias> 錛氫負璇ヨ繛鎺ユ睜璧蜂竴涓埆鍚嶏紝鍦ㄥ叾浠栨枃浠朵腑寮曠敤銆傚紩鐢ㄦ槸錛?proxool.db); 2. <driver-class>com.mysql.jdbc.Driver</driver-class> <driver-properties> <property name="user" value="root" /> <property name="password" value="root" /> </driver-properties> 榪欎簺閰嶇疆澶у搴旇姣旇緝鐔熸?zhèn)夊惂銆傞厤緗暟鎹簱鐨勯┍鍔ㄥ拰榪炴帴銆?br /> 3.<house-keeping-sleep-time> 錛歱roxool鑷姩渚﹀療鍚勪釜榪炴帴鐘舵佺殑鏃墮棿闂撮殧(姣),渚﹀療鍒扮┖闂茬殑榪炴帴灝遍┈涓婂洖鏀?瓚呮椂鐨勯攢姣併?br /> 4.<maximum-new-connections>錛?鎸囧洜鏈湁絀洪棽榪炴帴鍙互鍒嗛厤鑰屽湪闃熷垪涓瓑鍊欑殑鏈澶ц姹傛暟,瓚呰繃榪欎釜璇鋒眰鏁扮殑鐢ㄦ埛榪炴帴灝變笉浼氳鎺ュ彈銆?br /> 5.<prototype-count>錛氭渶灝戜繚鎸佺殑絀洪棽榪炴帴鏁般?br /> 6.<maximum-connection-count>: 鍏佽鏈澶ц繛鎺ユ暟,瓚呰繃浜嗚繖涓繛鎺ワ紝鍐嶆湁璇鋒眰鏃訛紝灝辨帓鍦ㄩ槦鍒椾腑絳夊欙紝鏈澶х殑絳夊緟璇鋒眰鏁扮敱maximum-new-connections鍐沖畾 7.<minimum-connection-count>:鏈灝忚繛鎺ユ暟
絎笁姝ワ細鍔犺澆騫跺垵濮嬪寲proxool.xml鏂囦歡銆傚洜涓哄畠鏄繛鎺ユ暟鎹簱鐨勶紝鍏朵粬寰堝妯″潡閮界敤鍒版暟鎹紝鎵浠ヤ綘蹇呴』棣栧厛鍔犺澆瀹冿紝鍦╳eb.xml涓繘琛屽涓嬮厤緗細濡傛灉浣犱互鍓嶅姞杞絘pplicationContext.xml鐢ㄧ殑鏄細
1 < listener > 2 < listener-class > 3 org.springframework.web.context.ContextLoaderListener4 </ listener-class > 5 </ listener > 6
榪欐椂浣犲繀欏繪崲鎴愬涓嬮厤緗細
1 < servlet > 2 < servlet-name > contextConfigLocation </ servlet-name > 3 < servlet-class > 4 org.springframework.web.context.ContextLoaderServlet5 </ servlet-class > 6 < load-on-startup > 2 </ load-on-startup > 7 </ servlet > 8
瑕佷笉鐒朵綘灝變細閬囪榪欐牱鐨勯敊璇細 Problem org.logicalcobwebs.proxool.ProxoolException: Attempt to refer to a unregistered pool by its alias 'db' 濡傛灉鐢ㄨ繃proxool涓巗pring鏁村悎鏃訛紝涓嶅皯灝遍亣鍒拌繃榪欐牱鐨勯棶棰橈紝鍏跺疄榪欎釜闂寰堟槑鏄懼氨鏄綘鐨刾roxool.xml娌℃湁琚厛鍔犺澆鍒濆鍖栵紝鎴戜滑搴旇璁╁畠鍏堝姞杞斤紝搴旇榪欐牱閰嶇疆錛?br />
1 < servlet > 2 < servlet-name > ServletConfigurator </ servlet-name > 3 < servlet-class > 4 org.logicalcobwebs.proxool.configuration.ServletConfigurator 5 </ servlet-class > 6 < init-param > 7 < param-name > xmlFile </ param-name > 8 < param-value > WEB-INF/proxool.xml </ param-value > 9 </ init-param > 10 < load-on-startup > 1 </ load-on-startup > 11 </ servlet > 12
鎶?lt;load-on-startup>鐨勫艱涓?錛屽艱秺灝忕駭鍒氨瓚婇珮錛屽氨鍏堣鍔犺澆鍒濆鍖栥備竴瀹氳鍏堜簬applicationContext.xml鐨勫姞杞姐?br /> 榪欎竴姝ュ緢鍏抽敭錛屼竴瀹氳娉ㄦ剰錛屼笉鐒朵綘灝變細閬囧埌涓婇潰鐨勯棶棰樸傜綉涓婃湁寰堝ぇ浜洪兘閬囪榪囪繖鏍風殑闂錛屽彧瑕佷綘鐢ㄤ簡浣犳墠浼氫綋浼氬埌閭f牱鐨勯敊璇傚鏋滄槸絎竴嬈★紝浣犱細寰堣糠鑼殑錛屾垜絎竴嬈¢厤緗氨鍑虹幇浜嗕笂闈㈢殑闂錛岃鎴戣皟璇曚簡濂藉鏃墮棿鎵嶆壘鍑洪棶棰樻墍鍦ㄣ傚笇鏈涗綘浠笉瑕佸啀鐘繖鏍風殑閿欒銆?br /> 濡傛灉浣犳兂鐩戞帶鏁版嵁搴撹繛鎺ユ睜鐨勮繛鎺ユ儏鍐碉紝鍙互綆鍗曠殑閰嶇疆涓涓嬪氨鍙互浜嗭紝鍥犱負澶ч儴鍒嗗姛鑳芥簮鐮佷腑閮藉凡鍐欏ソ錛屾垜浠敤鏄彧闇綆鍗曠殑閰嶇疆銆?br />
1 < servlet > 2 < servlet-name > Admin </ servlet-name > 3 < servlet-class > 4 org.logicalcobwebs.proxool.admin.servlet.AdminServlet 5 </ servlet-class > 6 </ servlet > 7 < servlet-mapping > 8 < servlet-name > Admin </ servlet-name > 9 < url-pattern > /admin </ url-pattern > 10 </ servlet-mapping > 11
濡傛灉璁塊棶鐨勮瘽錛屽彲鑳芥湁鐐歸棶棰橈紝浼氭姤ISO-8859-1鐨勯棶棰樸傛垜浠竴鑸敤鐨勬槸utf-8,gbk2312.鏈濂界殑瑙e喅鍔炴硶灝辨槸閲嶅啓婧愮爜涓殑AdminServlet .java銆傛垜灝辨槸閲嶅啓浜嗚繖涓簮鐮併傛墠瑙e喅浜嗚繖涓貢鐮侀棶棰樸傚彲鑳借繕鏈夊叾浠栧姙娉曪細鍙渶綆鍗曠殑璇ヤ竴涓柟娉曞氨鍙互浜嗐?br />
1 private void printDefinitionEntry(ServletOutputStream out, String name, String value) throws IOException { 2 out.println(" <tr> " ); 3 out.print(" <td width=\ " 200 \ " valign=\ " top\ " style=\ "" + STYLE_CAPTION + " \ " > " ); 4 out.print(name); 5 out.println(" </td> " ); 6 if (value != null ) { 7 out.print(" <td style=\ "" + STYLE_DATA + " \ " > " ); 8 out.print(new String(value.getBytes( " ISO-8859-1 " ), " utf-8 " )); 9 } else { 10 out.print(" <td style=\ "" + STYLE_NO_DATA + " \ " >off " ); 11 }12 out.print(" </td> " ); 13 out.println(" </tr> " ); 14 }15
涓婇潰綰㈣壊鐨勯儴鍒嗗氨鏄垜鏀圭殑閮ㄥ垎,鐒跺悗鎶妛eb.xml涓殑
1 < servlet-class > 2 com.jack.servlet.AdminServlet3 </ servlet-class > 4
涓?lt;servlet-class>鎹㈡垚浣犳敼鍐欑殑閭d釜綾匯?br /> 鏈鍚庝竴姝ワ細鏁村悎spring鍜宲roxool銆傚湪applicationContext.xml鏂囦歡涓妸鍘熸潵鏁版嵁婧愮殑閰嶇疆鎴愯繖鏍鳳細
1 < bean id ="dataSource" 2 class="org.springframework.jdbc.datasource.DriverManagerDataSource" > 3 < property name ="driverClassName" > 4 < value > org.logicalcobwebs.proxool.ProxoolDriver </ value > 5 </ property > 6 < property name ="url" > 7 < value > proxool.db </ value > 8 </ property > 9 </ bean > 10
榪欎釜 <property name="url">瑕侀厤緗垚proxool.xml涓殑鍒悕銆傚叾浠栧湴鏂逛笉鐢ㄨ浜嗐備篃鍙互涓巋ibernate鏁村悎銆備笌spring鏁村悎姣旇緝綆鍗曘傛垜閲囩敤鐨勫氨鏄笂闈㈢殑閰嶇疆鏂瑰紡銆?br /> 榪欐牱灝遍厤緗畬浜嗭紝寰堟竻鏅幫紝寰堢畝鍗曘傚鏋滄煡鐪嬬洃鎺ф儏鍐電殑璇濓細 http://www.××××.com/admin 灝卞彲浠ユ煡鐪嬩簡錛屽鏋滀綘鏄湰鍦?a class="channel_keylink" target="_blank">嫻嬭瘯錛氭敼涓涓嬭礬寰勫氨鍙互浜嗐?br /> 涓婇潰鎵璁茶堪鐨勬槸涓涓垚鍔熺殑閰嶇疆錛屽茍鍦ㄩ」鐩腑鎴愬姛鐨勮繍鐢ㄤ簡銆傚笇鏈涘榪炴帴姹犳湁鐖卞ソ鐨勬湅鍙嬫湁鎵甯姪銆?br />
]]>鍦ㄧ戶鎵夸腑鐨勬垚鍛樺彉閲忓ソ鍍忎笉浼氬悜涓嬭漿鍨嬬殑 http://www.aygfsteel.com/bnlovebn/articles/52647.html閲嶅綊鏈瀿錛圔ing錛?/dc:creator>閲嶅綊鏈瀿錛圔ing錛?/author>Wed, 14 Jun 2006 01:42:00 GMT http://www.aygfsteel.com/bnlovebn/articles/52647.html http://www.aygfsteel.com/bnlovebn/comments/52647.html http://www.aygfsteel.com/bnlovebn/articles/52647.html#Feedback 1 http://www.aygfsteel.com/bnlovebn/comments/commentRss/52647.html http://www.aygfsteel.com/bnlovebn/services/trackbacks/52647.html
聽1
顥ヮ棩
class
聽Component1
{
聽2
顥ヮ棩聽
public
聽Component1(
int
聽i)
{
聽3
顥ヮ棩聽System.out.println(
"
Component1
"
);
聽4
顥ヮ棩聽}
聽5
顥ヮ棩}
聽6
顥ヮ棩
聽7
顥ヮ棩
class
聽Component2
{
聽8
顥ヮ棩聽
public
聽Component2(
int
聽i)
{
聽9
顥ヮ棩聽System.out.println(
"
Compunent2
"
);
10
顥ヮ棩聽}
11
顥ヮ棩}
12
顥ヮ棩
13
顥ヮ棩
class
聽Component3
{
14
顥ヮ棩聽
public
聽Component3(
int
聽i)
{
15
顥ヮ棩聽System.out.println(
"
Compunent3
"
);
16
顥ヮ棩聽}
17
顥ヮ棩}
18
顥ヮ棩
19
顥ヮ棩
class
聽Root
{
20
顥ヮ棩聽
private
聽
int
聽i;
21
顥ヮ棩聽Component1聽com1
=
new
聽Component1(i);
22
顥ヮ棩聽Component2聽com2
=
new
聽Component2(i);
23
顥ヮ棩聽Component3聽com3
=
new
聽Component3(i);
24
顥ヮ棩聽
public
聽Root(
int
聽i)
{
25
顥ヮ棩聽
this
.i
=
i;
26
顥ヮ棩聽System.out.println(com1);聽
//
(2)
27
顥ヮ棩聽System.out.println(
"
Root
"
);
28
顥ヮ棩聽}
29
顥ヮ棩聽
public
聽String聽toString()
{聽
return
聽
"
Root
"
;}
30
顥ヮ棩聽
public
聽
void
聽print()
{System.out.println(
"
Root
"
);}
31
顥ヮ棩}
32
顥ヮ棩
33
顥ヮ棩
public
聽
class
聽Stem聽
extends
聽Root
{
34
顥ヮ棩聽
private
聽
int
聽i;
35
顥ヮ棩聽Component1聽com1
=
new
聽Component1(i);
36
顥ヮ棩聽Component2聽com2
=
new
聽Component2(i);
37
顥ヮ棩聽Component3聽com3
=
new
聽Component3(i);
38
顥ヮ棩聽
public
聽Stem(
int
聽i)
{
39
顥ヮ棩聽
super
(i);
40
顥ヮ棩聽
this
.i
=
i;
41
顥ヮ棩聽System.out.println(com1);聽
//
(1)
42
顥ヮ棩聽System.out.println(
"
Stem
"
);
43
顥ヮ棩聽}
44
顥ヮ棩聽
public
聽String聽toString()
{聽
return
聽
"
Stem
"
;}
45
顥ヮ棩聽
public
聽
void
聽print()
{System.out.println(
"
Stem
"
);}
46
顥ヮ棩聽
public
聽
static
聽
void
聽main(String[]聽args)
{
47
顥ヮ棩聽
//
Stem聽st=new聽Stem(10);聽
//
(1)
48
顥ヮ棩聽Root聽st
=
new
聽Stem(
10
);聽
//
(2)
49
顥ヮ棩聽System.out.println(st.com1);
//
(1)聽榪欓噷鐨刢om1鏄疭tem涓殑Component1瀵硅薄
50
顥ヮ棩聽
//
(2)聽榪欓噷鐨刢om1鏄疪oot涓殑Component1瀵硅薄
51
顥ヮ棩聽
52
顥ヮ棩聽System.out.println(st);
//
鍚戜笅杞瀷浜?/span>
53
顥ヮ棩聽st.print();
//
鍚戜笅杞瀷浜?/span>
54
顥ヮ棩聽}
55
顥ヮ棩}
56
顥ヮ棩榪欓噷鍙互鐪嬪嚭錛屽氨st瀵硅薄鐨勭被鍨嬫潵鍙栧緱鐩稿簲綾葷殑鎴愬憳鍙橀噺錛?br />顥ヮ棩濂藉儚鍙湁鍦ㄧ敤鍒版垚鍛樻柟娉曟墠浼氳嚜鍔ㄥ悜涓嬭漿鍨嬶紝鑰屾垚鍛樺彉閲忓嵈涓嶄細錛?img src ="http://www.aygfsteel.com/bnlovebn/aggbug/52647.html" width = "1" height = "1" /> ]]> 涓涓狫ProgressBar鐨勭畝鍗曚緥瀛?/title> http://www.aygfsteel.com/bnlovebn/articles/40276.html閲嶅綊鏈瀿錛圔ing錛?/dc:creator>閲嶅綊鏈瀿錛圔ing錛?/author>Mon, 10 Apr 2006 09:25:00 GMT http://www.aygfsteel.com/bnlovebn/articles/40276.html http://www.aygfsteel.com/bnlovebn/comments/40276.html http://www.aygfsteel.com/bnlovebn/articles/40276.html#Feedback 1 http://www.aygfsteel.com/bnlovebn/comments/commentRss/40276.html http://www.aygfsteel.com/bnlovebn/services/trackbacks/40276.html 闃呰鍏ㄦ枃 ]]>
主站蜘蛛池模板:
社会 |
丹寨县 |
云安县 |
乌兰县 |
汉川市 |
明光市 |
阳西县 |
苍梧县 |
南昌县 |
宁强县 |
恩平市 |
柞水县 |
司法 |
额尔古纳市 |
福州市 |
嵊州市 |
上栗县 |
镇坪县 |
堆龙德庆县 |
山东 |
清原 |
海宁市 |
高台县 |
天长市 |
郁南县 |
雷波县 |
曲阳县 |
怀宁县 |
康马县 |
伊吾县 |
富川 |
东丽区 |
武川县 |
定远县 |
玉环县 |
万盛区 |
南陵县 |
寿宁县 |
江华 |
泰宁县 |
新和县 |