锘??xml version="1.0" encoding="utf-8" standalone="yes"?>国产精品激情偷乱一区二区∴,久久蜜桃一区二区,日韩成人网免费视频http://www.aygfsteel.com/banxitan/zh-cnWed, 18 Jun 2025 00:13:15 GMTWed, 18 Jun 2025 00:13:15 GMT60Android Activity MainThread 涓笉鑳芥墽琛宧ttp閫氫俊瑙e喅鍔炴硶http://www.aygfsteel.com/banxitan/archive/2013/07/11/401439.htmlMikyTanMikyTanThu, 11 Jul 2013 02:51:00 GMThttp://www.aygfsteel.com/banxitan/archive/2013/07/11/401439.htmlhttp://www.aygfsteel.com/banxitan/comments/401439.htmlhttp://www.aygfsteel.com/banxitan/archive/2013/07/11/401439.html#Feedback0http://www.aygfsteel.com/banxitan/comments/commentRss/401439.htmlhttp://www.aygfsteel.com/banxitan/services/trackbacks/401439.html
android.os.NetworkOnMainThreadException

鍘熷洜鏄疓oogle浠?寮濮嬶紝寮哄埗榛樿紱佹UI涓葷嚎紼嬪彂璧烽氫俊璇鋒眰銆

瑙e喅鍔炴硶錛?strong> 

鎶婇氫俊鐨勪唬鐮佽漿縐誨埌瀛愮嚎紼嬮噷鍘誨仛錛?姣旇緝闈犺氨鐨勬槸new涓涓狝yncTask錛屽湪閲岄潰鍋氶氫俊

                          鏈夊嚑涓粏鑺傛х殑闂鏄紝

                                絎竴錛?涓鑸師鏈夐氫俊鐨勪唬鐮侀兘鏄叡閫氱殑API錛?琚澶氫釜Activity璋冪敤錛?涓涓壇濂界殑淇敼鏂規(guī)硶鏄湪鍏遍欰PI閲岄潰new AyncTask

                               絎簩錛?閫氫俊鐨凙PI涓鑸潵璇撮兘鏄悓姝ョ殑錛?浣犻氫俊錛岀劧鍚庣敾闈富綰跨▼闇瑕佸牭濉炰綇錛岀瓑寰匒PI鐨勯氫俊緇撴灉錛屽啀鍐沖畾涓嬮潰鐨勪笟鍔¢昏緫鐨勮蛋鍚戙?/strong>

鎵浠ワ紝榪欏潡鍙互閲囧彇 AyncTask.get()錛?璁╀富綰跨▼鍫靛錛岀洿鍒伴氫俊緇撴潫銆?褰撶劧錛屽鏋滀綘闇瑕佸皢閫氫俊寮傛鐨勮瘽錛?鍙互鐢℉andler鏈哄埗鏉ヨВ鍐?br />

鍏蜂綋璋冪敤浠g爜濡備笅錛欻TTP寮?/strong>

姝ヨ姹?br />

package com.qqtech.ucstar.utils;

import java.io.File;
import java.io.IOException;
import java.nio.charset.Charset;

import org.apache.http.HttpResponse;
import org.apache.http.client.HttpClient;
import org.apache.http.client.methods.HttpPost;
import org.apache.http.entity.mime.HttpMultipartMode;
import org.apache.http.entity.mime.MultipartEntity;
import org.apache.http.entity.mime.content.FileBody;
import org.apache.http.impl.client.DefaultHttpClient;

import android.os.AsyncTask;

public class HttpReqTask extends AsyncTask<Object, Object, HttpResponse> {

@Override
protected HttpResponse doInBackground(Object arg0) {
String fileUploadUrl
= (String) arg0[0];
String streamid
= (String) arg0[1];
File file
= (File) arg0[2];
//boolean paramBoolean = Boolean.parseBoolean((String) arg0[3]);
//String paramString3 = (String) arg0[4];
HttpClient localHttpClient = new DefaultHttpClient();
//String str1 = "fileName";
File localFile = file;
try {
if ((localFile == null) || (!localFile.exists()))
throw new IOException("鏂囦歡涓嶅瓨鍦?" + localFile);
}
catch (IOException e1) {
e1.printStackTrace();
}

HttpPost localPostMethod
= new HttpPost(fileUploadUrl+"?streamid="+streamid+"&fileencode=UTF-8");
//MultipartEntity reqEntity = new MultipartEntity(HttpMultipartMode.BROWSER_COMPATIBLE);
MultipartEntity reqEntity = new MultipartEntity(HttpMultipartMode.BROWSER_COMPATIBLE,null, Charset.forName("UTF-8"));
try {
FileBody bin
= new FileBody(file);
reqEntity.addPart(
"file", bin);
localPostMethod.setEntity(reqEntity);
HttpResponse response
= localHttpClient.execute(localPostMethod);
return response;
}
catch (Exception e) {
e.printStackTrace();
}

return null;
}


}



璋冪敤浠g爜濡備笅錛?br />

Object[] param = new Object[5];
     param[0] = answer.getUploadURL();
     param[1] = answer.getStreamid();
     param[2] = new File(answer.getFileURL());
     param[3] = "false";
     param[4] = "";
     AsyncTask res = new HttpReqTask().execute(param);
     HttpResponse rep = null;
     rep = (HttpResponse) res.get();
     if (rep.getStatusLine().getStatusCode() == 200) {
      System.out.println("鏂囦歡涓婁紶鎴愬姛");
     }else{
      System.out.println("鏂囦歡涓婁紶澶辮觸");
     }
    }





MikyTan 2013-07-11 10:51 鍙戣〃璇勮
]]>
淇敼妯℃嫙鍣―NS鏂規(guī)硶http://www.aygfsteel.com/banxitan/archive/2013/06/04/400196.htmlMikyTanMikyTanTue, 04 Jun 2013 12:24:00 GMThttp://www.aygfsteel.com/banxitan/archive/2013/06/04/400196.htmlhttp://www.aygfsteel.com/banxitan/comments/400196.htmlhttp://www.aygfsteel.com/banxitan/archive/2013/06/04/400196.html#Feedback0http://www.aygfsteel.com/banxitan/comments/commentRss/400196.htmlhttp://www.aygfsteel.com/banxitan/services/trackbacks/400196.html浠婂ぉ鍦ㄥ仛鎵嬫満緇堢寮鍙戞椂錛屽彂鐜拌繛涓婂煙鍚嶆湇鍔″櫒鑰佹槸榪炰笉涓婏紝鑰岀洿鎺ョ敤錛╋及榪炴帴鏄集錛殑錛屽垵姝ユ鍑濇槸錛わ籍錛抽棶棰樺紩璧鋒潵錛岀粡鏌ョ浉鍏崇殑璧勬枡錛岀幇璁板綍濡備笅錛?br />
Android妯℃嫙鍣ㄩ粯璁ょ殑鍦板潃鏄?0.0.2.3錛岄粯璁ょ殑DNS涔熸槸10.0.2.3錛岃屼竴鑸數(shù)鑴戠殑IP閮芥槸192.168.1.100涔嬬被鐨勶紝涓嶅湪鍚屼竴涓綉孌點(diǎn)傛墍浠ュ氨浼?xì)鍑虹幇鐢?shù)鑴戝彲浠ヤ笂緗戜絾鏄ā鎷熷櫒涓嶈兘涓婄綉鐨勬儏鍐點(diǎn)傚叾瀹炶緗柟娉曞緢綆鍗曪紝鍙鎶婃ā鎷熷櫒鐨勯粯璁NS璁劇疆鎴愮數(shù)鑴戠殑DNS鍦板潃鍗沖彲銆?/div>
絎竴姝ワ細(xì)鐢ㄧ郴緇熺殑鍛戒護(hù)榪涘叆Android寮鍙戝寘鐨則ools鐩綍
 cd X:\...\android-sdk-windows\tool
絎簩甯冿細(xì)浣跨敤adb鐨剆hell錛岀‘璁ょ郴緇熺殑鍚勯」灞炴?/div>
adb shell
getprop 
getprop浼?xì)鍒楀嚭绯痪l熷綋鍓嶇殑鍚勯」灞炴?/div>
絎笁姝ワ細(xì)寰楀埌妯℃嫙鍣ㄧ殑DNS鍦板潃
鍦ㄧ粨鏋滈噷鍙互鐪嬪埌錛?/div>
[net.dns1]: [10.0.2.3]
[net.dns2]: [10.0.2.4]
[net.dns3]: [10.0.2.5]
[net.dns4]: [10.0.2.6]
絎洓姝ワ細(xì)鎶奷ns鏀規(guī)垚鎴戜滑鑷繁鐨凞NS
setprop net.dns1 192.168.1.1


MikyTan 2013-06-04 20:24 鍙戣〃璇勮
]]>JAVA 榪炴帴 ORCLE RAC榪炴帴URL涓?/title><link>http://www.aygfsteel.com/banxitan/archive/2013/05/21/399567.html</link><dc:creator>MikyTan</dc:creator><author>MikyTan</author><pubDate>Tue, 21 May 2013 08:48:00 GMT</pubDate><guid>http://www.aygfsteel.com/banxitan/archive/2013/05/21/399567.html</guid><wfw:comment>http://www.aygfsteel.com/banxitan/comments/399567.html</wfw:comment><comments>http://www.aygfsteel.com/banxitan/archive/2013/05/21/399567.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.aygfsteel.com/banxitan/comments/commentRss/399567.html</wfw:commentRss><trackback:ping>http://www.aygfsteel.com/banxitan/services/trackbacks/399567.html</trackback:ping><description><![CDATA[ 榪炴帴鐨刄RL涓?br /><p><span style="color: rgb(255, 0, 0);">jdbc:oracle:thin:@(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=vip1)(PORT</span></p><p><span style="color: rgb(255, 0, 0);">=1521))(ADDRESS=(PROTOCOL=TCP)(HOST=vip2)(PORT=1521))(LOAD_BALANCE=yes)(FAILOVER=</span></p><p><span style="color: rgb(255, 0, 0);">on))(CONNECT_DATA=(SERVICE_NAME=gs))) </span></p><br /><img src ="http://www.aygfsteel.com/banxitan/aggbug/399567.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.aygfsteel.com/banxitan/" target="_blank">MikyTan</a> 2013-05-21 16:48 <a href="http://www.aygfsteel.com/banxitan/archive/2013/05/21/399567.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>Oralce 鐩戝惉鍣ㄥ惎鍔?/title><link>http://www.aygfsteel.com/banxitan/archive/2013/05/11/399145.html</link><dc:creator>MikyTan</dc:creator><author>MikyTan</author><pubDate>Sat, 11 May 2013 06:47:00 GMT</pubDate><guid>http://www.aygfsteel.com/banxitan/archive/2013/05/11/399145.html</guid><wfw:comment>http://www.aygfsteel.com/banxitan/comments/399145.html</wfw:comment><comments>http://www.aygfsteel.com/banxitan/archive/2013/05/11/399145.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.aygfsteel.com/banxitan/comments/commentRss/399145.html</wfw:commentRss><trackback:ping>http://www.aygfsteel.com/banxitan/services/trackbacks/399145.html</trackback:ping><description><![CDATA[<br />鍟熷嫊      lsnrctl start<br />鐙鎱?nbsp;     lsnrctl status<br />闂滈枆      lsnrctl  stop<img src ="http://www.aygfsteel.com/banxitan/aggbug/399145.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.aygfsteel.com/banxitan/" target="_blank">MikyTan</a> 2013-05-11 14:47 <a href="http://www.aygfsteel.com/banxitan/archive/2013/05/11/399145.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>Oracle 瀵煎嚭銆佸鍏ユ煇鐢ㄦ埛鎵鏈夋暟鎹紙鍖呮嫭琛ㄣ佽鍥俱佸瓨鍌ㄨ繃紼?..錛?/title><link>http://www.aygfsteel.com/banxitan/archive/2013/05/11/399134.html</link><dc:creator>MikyTan</dc:creator><author>MikyTan</author><pubDate>Sat, 11 May 2013 01:59:00 GMT</pubDate><guid>http://www.aygfsteel.com/banxitan/archive/2013/05/11/399134.html</guid><wfw:comment>http://www.aygfsteel.com/banxitan/comments/399134.html</wfw:comment><comments>http://www.aygfsteel.com/banxitan/archive/2013/05/11/399134.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.aygfsteel.com/banxitan/comments/commentRss/399134.html</wfw:commentRss><trackback:ping>http://www.aygfsteel.com/banxitan/services/trackbacks/399134.html</trackback:ping><description><![CDATA[<p><br /><span style="color: red"><strong>瀵煎嚭鍛戒護(hù)錛歟xp </strong></span>鐢ㄦ埛鍚?瀵嗙爜@鏁版嵁搴?nbsp;owner=鐢ㄦ埛鍚?nbsp;file=鏂囦歡瀛樺偍璺緞錛堝錛欶:\abcd.dmp錛?br /></p> <p>嫻嬭瘯鎴浘錛歟xp <a href="mailto:ZM/sql123@ORCL"><font color="#78afd3">ZM/sql123@ORCL</font></a> owner=ZM file=F\abcd.dmp<br /><img border="0" alt="" src="http://www.aygfsteel.com/images/blogjava_net/banxitan/瀵煎嚭.png" width="681" height="744" /><br /><br /><br /></p> <p><span style="color: red"><strong>瀵煎叆鍛戒護(hù)錛?/strong></span>imp 鐢ㄦ埛鍚?a href="mailto:cu/mycu@db"><font color="#78afd3">/瀵嗙爜@鏁版嵁搴?/font></a> fromuser=鐢ㄦ埛鍚?touser=鐢ㄦ埛鍚?file=d:\cu.dmp ignore=y</p> <p> imp:鍛戒護(hù)綾誨瀷  </p> <p><a href="mailto:cu/mycu@db"><font color="#78afd3">cu/mycu@db</font></a>:瀵煎叆鐨勬暟鎹簱鐧婚檰(鐢ㄦ埛鍚?瀵嗙爜@鏁版嵁搴?  </p> <p>fromuser:鏂囦歡鐨勬寚瀹氱敤鎴?/p> <p> touser錛氭寚瀹氬鍏ュ埌褰撳墠鐧誨綍鐨勬暟鎹簱鏌愪釜鐢ㄦ埛  </p> <p>file:闇瑕佸鍏ョ殑鏁版嵁鏂囦歡  </p> <p>ignore:鏄惁蹇界暐鍒涘緩閿欒</p> <p> </p> <p>嫻嬭瘯鎴浘錛?br /><br />imp <a href="mailto:ZM/sql123@ORCL"><font color="#78afd3">ZM/sql123@ORCL</font></a> fromuser=ZM touser=SZZM file=F:\test.dmp ignore=y<br /><br /></p> <p><img border="0" alt="" src="http://www.aygfsteel.com/images/blogjava_net/banxitan/瀵煎叆.png" /><br /><br /></p><br /><br /><img src ="http://www.aygfsteel.com/banxitan/aggbug/399134.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.aygfsteel.com/banxitan/" target="_blank">MikyTan</a> 2013-05-11 09:59 <a href="http://www.aygfsteel.com/banxitan/archive/2013/05/11/399134.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>linux鐜涓嬬殑rmi甯歌闂http://www.aygfsteel.com/banxitan/archive/2013/05/08/399020.htmlMikyTanMikyTanWed, 08 May 2013 12:26:00 GMThttp://www.aygfsteel.com/banxitan/archive/2013/05/08/399020.htmlhttp://www.aygfsteel.com/banxitan/comments/399020.htmlhttp://www.aygfsteel.com/banxitan/archive/2013/05/08/399020.html#Feedback0http://www.aygfsteel.com/banxitan/comments/commentRss/399020.htmlhttp://www.aygfsteel.com/banxitan/services/trackbacks/399020.htmllinux鐜涓嬬殑rmi甯歌闂

闂?shù)竴錛歊MI鏈嶅姟鎻愪緵紼嬪簭榪愯鍦╓indows鎿嶄綔緋葷粺涓嬶紝RMI鏈嶅姟鍙互姝e父璁塊棶錛屼絾灝哛MI鏈嶅姟鎻愪緵紼嬪簭閮ㄧ講鍒癓inux鎿嶄綔緋葷粺涓嬪悗錛孯MI鏈嶅姟鏃犳硶璁塊棶錛屾彁紺?/p>

org.springframework.remoting.RemoteConnectFailureException:

Cannot connect to remote service [rmi://192.168.0.106:1199/ItemRetag]; nested exception is java.rmi.ConnectException: Connection refused to host: 127.0.0.1; ……   
 瑙e喅鍔炴硶錛氬湪鍔犺澆RMI鏈嶅姟涔嬪墠灝嗗綋鍓嶆湇鍔″櫒鐨処P鎸囧畾緇檋ostName錛屽 System.setProperty("java.rmi.server.hostname", "192.168.100.7");鎴栬呬慨鏀?etc/hosts鏂囦歡錛屽湪榪欎釜鏂囦歡涓姞 192.168.100.54  testlinux1 localhost.localdomain localhost 灝辮錛屾垨鑰呭皢/etc/hosts鏂囦歡涓粯璁ょ殑127.0.0.1鏀規(guī)垚褰撳墠鏈哄櫒鐨処P鍗沖彲錛?br />

闂?shù)簩锛?xì)java.rmi.server.ExportException: internal error: ObjID already in use Caused by: java.rmi.server.ExportException: internal error: ObjID already in use……

鍑虹幇榪欑闂鍙?qiáng)鏈夊彲鑳芥?etc/hosts鏂囦歡涓寚瀹氱殑IP騫朵笉鏄綋鍓嶆湇鍔″櫒鐨勭湡瀹濱P錛孯MI鍦ㄥ垵濮嬪寲鏃舵敞鍐屾湇鍔″け璐ャ?/p>

閫氳繃System.out.println(InetAddress.getLocalHost().toString());鏌ョ湅褰撳墠涓繪満鐨処P鏄惁涓虹湡瀹濱P錛屽鏄劇ず涓篠IMBANK/220.250.64.24錛岃岀湡瀹濱P涓?92.168.1.2         

瑙e喅鍔炴硶錛氫慨鏀?etc/hosts鏂囦歡涓敊璇殑IP鍗沖彲錛屽皢錛?/p>

220.250.64.24          SIMBANK
淇敼涓?/p>

192.168.1.2          SIMBANK



MikyTan 2013-05-08 20:26 鍙戣〃璇勮
]]>
IBM JDK 銆丼UN JDK銆丠P JDK濡備綍浜х敓Heapdump鏂囦歡http://www.aygfsteel.com/banxitan/archive/2013/03/26/397006.htmlMikyTanMikyTanTue, 26 Mar 2013 08:03:00 GMThttp://www.aygfsteel.com/banxitan/archive/2013/03/26/397006.htmlhttp://www.aygfsteel.com/banxitan/comments/397006.htmlhttp://www.aygfsteel.com/banxitan/archive/2013/03/26/397006.html#Feedback0http://www.aygfsteel.com/banxitan/comments/commentRss/397006.htmlhttp://www.aygfsteel.com/banxitan/services/trackbacks/397006.htmlJAVA涓紝閫氳繃鍒嗘瀽Heapdump鏂囦歡鍙互媯(gè)鏌ョ▼搴忔槸鍚﹀瓨鍦ㄥ唴瀛樻硠闇詫紝浣嗘槸榪欎釜鏂囦歡涓鑸槸鍦ㄧ▼搴忛亣鍒拌嚧鍛介棶棰樻椂鎵嶄細(xì)浜х敓錛岃屽浣曚簨鍓嶇敓鎴愯繖涓枃浠訛紝浠庤屽湪紼嬪簭灝氭湯宕╂簝鍓嶆壘鍑洪棶棰樼殑鎵鍦ㄣ?/span>

浠ヤ笅璁拌堪浜?jiǎn)鍚勪釜鐗堟湰鐨凧DK浜х敓DUMP鏂囦歡鐨勬柟娉曪細(xì)

UN JDK鐢熸垚Heapdump鏂囦歡鍙渶瑕佸湪tomcat鍚姩鑴氭湰涓鍔?HeapDumpOnOutOfMemoryError 鍙傛暟
姝ゅ弬鏁伴渶瑕丣ava SE release 5.0 update 14 鎴栦互涓婃敮鎸?/span>

璁劇疆紺轟緥:
set JAVA_OPTS=%JAVA_OPTS% -server -Xms512m -Xmx800m -XX:PermSize=64M -XX:MaxPermSize=128m -Djava.awt.headless=true -XX:+HeapDumpOnOutOfMemoryError -XX:+HeapDumpOnCtrlBreak

IBM JDK鐢熸垚Heapdump鏂囦歡鐨勫紑鍏籌細(xì)
— export IBM_HEAPDUMP=true
— export IBM_HEAP_DUMP=true
— export IBM_HEAPDUMP_OUTOFMEMORY=true
— export IBM_JAVADUMP_OUTOFMEMORY=true
— export IBM_JAVACORE_OUTOFMEMORY=true
— export IBM_HEAPDUMPDIR=<directory_path>

HP JDK鐢熸垚Heapdump鏂囦歡闇瑕佸湪鍦ㄧ幆澧冨彉閲忎笂錛屽姞涓奺xport _JAVA_HEAPDUMP=1



MikyTan 2013-03-26 16:03 鍙戣〃璇勮
]]>
MySql 鐨勬壒閲忔搷浣滐紝瑕佸姞rewriteBatchedStatements鍙傛暟 http://www.aygfsteel.com/banxitan/archive/2013/03/13/396409.htmlMikyTanMikyTanWed, 13 Mar 2013 12:38:00 GMThttp://www.aygfsteel.com/banxitan/archive/2013/03/13/396409.htmlhttp://www.aygfsteel.com/banxitan/comments/396409.htmlhttp://www.aygfsteel.com/banxitan/archive/2013/03/13/396409.html#Feedback0http://www.aygfsteel.com/banxitan/comments/commentRss/396409.htmlhttp://www.aygfsteel.com/banxitan/services/trackbacks/396409.html浠婂ぉ鍦ㄥ仛鏌愰」鐩殑POC嫻嬭瘯錛岀敳鏂規(guī)彁渚涗簡(jiǎn)涓涓笁鍗佷竾璁板綍鐨凾XT鏁版嵁鏂囦歡錛岄渶瑕佹妸璇ユ枃浠剁殑璁板綍鎻掑叆鍒版暟鎹簱涓紝鐢變簬欏圭洰閮ㄧ殑鍚屼簨鍦ㄦ惌寤烘祴璇曠幆澧冧腑鐢ㄧ殑鏄疢ysql鏁版嵁搴擄紝鍦ㄦ妸鏁版嵁瀵煎叆鍒版暟鎹簱涓敤鐨勬槸JDBC鐨勬壒澶勭悊銆備唬鐮佸涓?
private void batchParseGroup(){
        Connection con
= null;
        PreparedStatement ps 
=null;
        
try {
            con
= DbConnectionManager.getConnection();
            con.setAutoCommit(
false);
            String sql 
= " insert into jivegroup(uri,groupname,pgroupid,description,creationdate,modificationdate,priority,selfpriority) values(?,?,?,?,?,?,?,?)";
            ps
= con.prepareStatement(sql);
            
for(int i=0;i<groupList.size();i++){
                Group group 
= groupList.get(i);
                ps.setString(
1, group.getUri());
                ps.setString(
2, group.getName());
                ps.setString(
3, group.getPgroupId());
                ps.setString(
4, group.getName());
                ps.setString(
5""+System.currentTimeMillis());
                ps.setString(
6""+System.currentTimeMillis());
                ps.setInt(
7, group.getPriority());
                ps.setInt(
8, group.getPriority());
                ps.addBatch();
                
if(i%100==0){
                    ps.executeBatch();
                }

            }

            con.commit();
            ps.executeBatch();
        }
 catch (SQLException e) {
            e.printStackTrace();
        }
finally{
            DbConnectionManager.closeConnection(ps, con);
        }

    }

鍦ㄦ祴璇曟椂錛屽彂鐜頒笁鍗佷竾鐨勬暟鎹眳鐒墮渶瑕佸崄鍒嗛挓宸﹀彸鐨勬椂闂淬傞鍏堟兂鍒扮殑灝辨槸Mysql鐨勭浉鍏抽厤緗槸涓嶆槸鏈夐棶棰橈紝鍙嶅淇敼浜?jiǎn)Mysql鐨勭浉搴旈厤緗弬鏁幫紝鏀舵晥鐢氬井銆?br />
鍦∕ysql鐨勫畼緗戜笂鏌ュ埌濡備笅錛?br /> http://dev.mysql.com/doc/refman/5.1/en/connector-j-reference-configuration-properties.html

鍏充簬rewriteBatchedStatements鍙傛暟錛孧ysql瀹樻柟鐨勮鏄庯細(xì)

Should the driver use multiqueries (irregardless of the setting of "allowMultiQueries") as well as rewriting of prepared statements for INSERT into multi-value inserts when executeBatch() is called? Notice that this has the potential for SQL injection if using plain java.sql.Statements and your code doesn't sanitize input correctly. Notice that for prepared statements, server-side prepared statements can not currently take advantage of this rewrite option, and that if you don't specify stream lengths when using PreparedStatement.set*Stream(), the driver won't be able to determine the optimum number of parameters per batch and you might receive an error from the driver that the resultant packet is too large. Statement.getGeneratedKeys() for these rewritten statements only works when the entire batch includes INSERT statements.



瑙e喅鍔炴硶錛?br />      涓嬭澆鏈鏂扮殑JDBC鐨勯┍鍔ㄧ▼搴忋?br />      MYSQL URL鐨勯厤緗弬鏁板涓嬶細(xì)
      jdbc:mysql://54.200.190.80:3306/ccb_ucstar?rewriteBatchedStatements=true

緇忚繃嫻嬭瘯銆備笁鍗佸涓囩殑鏁版嵁銆?0縐掑唴鎼炲畾錛?/div>

MikyTan 2013-03-13 20:38 鍙戣〃璇勮
]]>
Linux 浣跨敤 enca銆宸ュ叿榪涜鏂囦歡鎵歸噺鏍煎紡杞崲http://www.aygfsteel.com/banxitan/archive/2012/09/17/387878.htmlMikyTanMikyTanMon, 17 Sep 2012 03:42:00 GMThttp://www.aygfsteel.com/banxitan/archive/2012/09/17/387878.htmlhttp://www.aygfsteel.com/banxitan/comments/387878.htmlhttp://www.aygfsteel.com/banxitan/archive/2012/09/17/387878.html#Feedback0http://www.aygfsteel.com/banxitan/comments/commentRss/387878.htmlhttp://www.aygfsteel.com/banxitan/services/trackbacks/387878.html
錛戯級(jí)涓嬭澆enca宸ュ叿
銆銆wget http://dl.cihar.com/enca/enca-1.13.tar.gz
錛掞級(jí)銆tar -zxvf enca-1.13.tar.gz
錛擄級(jí)./configure
4) make
5) make install


杞崲鍛戒護(hù)
銆銆enca -L zh_CN -x UTF-8 *.java




MikyTan 2012-09-17 11:42 鍙戣〃璇勮
]]>
娌℃湁閭d釜鏂囦歡鎴栫洰褰曗濈殑瑙e喅鏂規(guī)硶http://www.aygfsteel.com/banxitan/archive/2012/08/18/385730.htmlMikyTanMikyTanSat, 18 Aug 2012 08:01:00 GMThttp://www.aygfsteel.com/banxitan/archive/2012/08/18/385730.htmlhttp://www.aygfsteel.com/banxitan/comments/385730.htmlhttp://www.aygfsteel.com/banxitan/archive/2012/08/18/385730.html#Feedback0http://www.aygfsteel.com/banxitan/comments/commentRss/385730.htmlhttp://www.aygfsteel.com/banxitan/services/trackbacks/385730.html濡傛灉sh鐩綍瀛樺湪涓旇剼鏈棤璇紝鏈鍙兘鏄師鍥犳槸鍦╳indows涓嬪啓鐨勮剼鏈槸dos鏍煎紡鐨勶紝鏀懼湪Linux涓嬬紪鐮佷笉璇嗗埆錛岃В鍐蟲(chóng)柟娉曟槸浣跨敤dos2unix鍛戒護(hù)杞竴涓嬶紝鍗寵緭鍏ワ細(xì) dos2unix 鏂囦歡鍚?


MikyTan 2012-08-18 16:01 鍙戣〃璇勮
]]> 主站蜘蛛池模板: 突泉县| 无为县| 湟源县| 叙永县| 沅陵县| 龙州县| 侯马市| 聊城市| 库尔勒市| 屏东市| 阜南县| 吉木乃县| 马龙县| 潜江市| 朔州市| 万年县| 洞口县| 息烽县| 阿拉善右旗| 北宁市| 正定县| 塔河县| 嫩江县| 于都县| 侯马市| 昭觉县| 会理县| 营山县| 岳池县| 二连浩特市| 夹江县| 西充县| 九台市| 海丰县| 遵化市| 庆安县| 梧州市| 德昌县| 北宁市| 徐汇区| 庆云县|