锘??xml version="1.0" encoding="utf-8" standalone="yes"?>亚洲日韩中文字幕在线播放,亚洲精品国产精品乱码视色 ,久久国产成人精品国产成人亚洲http://www.tkk7.com/weikangzhen/zh-cnSat, 10 May 2025 19:06:53 GMTSat, 10 May 2025 19:06:53 GMT60鍩轟簬nginx璐熻澆鍧囪 鐨勭悊瑙?/title><link>http://www.tkk7.com/weikangzhen/archive/2016/08/17/431614.html</link><dc:creator>欖忔枃鐢?/dc:creator><author>欖忔枃鐢?/author><pubDate>Wed, 17 Aug 2016 09:03:00 GMT</pubDate><guid>http://www.tkk7.com/weikangzhen/archive/2016/08/17/431614.html</guid><wfw:comment>http://www.tkk7.com/weikangzhen/comments/431614.html</wfw:comment><comments>http://www.tkk7.com/weikangzhen/archive/2016/08/17/431614.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.tkk7.com/weikangzhen/comments/commentRss/431614.html</wfw:commentRss><trackback:ping>http://www.tkk7.com/weikangzhen/services/trackbacks/431614.html</trackback:ping><description><![CDATA[鍋氫釜鎬葷粨<br />linux鏈嶅姟鍣ㄤ笂鍋氳礋杞藉潎琛?br />鑷繁鍑嗗鐨?linux鏈嶅姟鍣?45.78.20.168),jdk1.7,nginx,redis,tomcat7涓や釜,閮ㄧ講鐨勯」鐩?<br /><br />1:jdk1.7瀹夎,涓や釜tomcat鍒嗗埆绔彛8080,8081;閮ㄧ講鐩稿悓鐨勯」鐩?鍚姩;<br />    <a target="_blank">http://45.78.20.168:8080/redis3.2/getRedis.action</a><br /><div>    <a target="_blank">http://45.78.20.168:8081/redis3.2/getRedis.action<br /></a></div>2:瀹夎nginx,娣誨姞璐熻澆鐨勯厤緗?瀹夎鐩綍涓嬫壘 <span style="line-height: 1.875; text-indent: 28px; white-space: pre-wrap;">/etc/nginx/conf.d/default.conf鏂囦歡(鎴?etc/nginx/nginx.conf);</span>絳栫暐璁劇疆涓洪粯璁よ疆璇?<div>    upstream www.nimenhaihaoma.com { <br />         server 45.78.20.168:8080; <br />         server 45.78.20.168:8081; <br />    }<br />     server{<br />         listen 80; <br />         server_name www.nimenhaihaoma.com; <br />         location / { <br />             proxy_pass http://www.nimenhaihaoma.com; <br />             proxy_set_header Host $host; <br />             proxy_set_header X-Real-IP $remote_addr; <br />             proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; <br />        }<br />3:閰嶇疆session鍏變韓,鏂瑰紡寰堝,榪欓噷鐢ㄧ殑redis鐨剆ession鍏變韓(鍏煎jdk鐗堟湰鑷沖皯1.7):<br />    tomcat鐨刲ib鍖呭姞<span style="line-height: 1.875; white-space: pre-wrap;">commons-pool2-2.0.jar,jedis-2.5.2.jar,tomcat-redis-session-manager1.2.jar;<br /></span>    tomcat閰嶇疆鏂囦歡context.xml,鍦ㄦ爣絳?lt;Context>鍐呮坊鍔犻厤緗?<br />        <Valve className="com.orangefunction.tomcat.redissessions.RedisSessionHandlerValve" /><div>        <Manager className="com.orangefunction.tomcat.redissessions.RedisSessionManager" host="localhost" port="6379" database="0" maxInactiveInterval="60" /></div><br />4:欏圭洰閲岄潰鍖哄垎session鐨勪唬鐮?<br />    (1):鏀緎ession鐨勬帴鍙?鎵ц涓嬈?;<br />    (2):鍙杝ession鏁版嵁(涓嶆柇鍒鋒柊),鐪媡omcat鎵撳嵃淇℃伅;<br />5:鏁堟灉,<a target="_blank">http://www.nimenhaihaoma.com/redis3.2/getRedis.action</a> (鐙傚埛session鍊肩浉鍚?<br /><br /><br /><a target="_blank"><br /></a></div><img src ="http://www.tkk7.com/weikangzhen/aggbug/431614.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.tkk7.com/weikangzhen/" target="_blank">欖忔枃鐢?/a> 2016-08-17 17:03 <a href="http://www.tkk7.com/weikangzhen/archive/2016/08/17/431614.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>spring瀹氭椂鍣ㄧ殑涓浜涢棶棰?/title><link>http://www.tkk7.com/weikangzhen/archive/2015/04/25/424661.html</link><dc:creator>欖忔枃鐢?/dc:creator><author>欖忔枃鐢?/author><pubDate>Sat, 25 Apr 2015 03:09:00 GMT</pubDate><guid>http://www.tkk7.com/weikangzhen/archive/2015/04/25/424661.html</guid><wfw:comment>http://www.tkk7.com/weikangzhen/comments/424661.html</wfw:comment><comments>http://www.tkk7.com/weikangzhen/archive/2015/04/25/424661.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.tkk7.com/weikangzhen/comments/commentRss/424661.html</wfw:commentRss><trackback:ping>http://www.tkk7.com/weikangzhen/services/trackbacks/424661.html</trackback:ping><description><![CDATA[欏圭洰鍙槸鍔犺澆spring鐨勫嚑涓畾鏃朵換鍔★紝鍚姩鏈嶅姟涓鐩村驚鐜姞杞絪pring鏂囦歡錛岄棶棰樼殑鏍硅妭鐐癸細瀹氭椂鍣ㄧ被閲岄潰鐨剆ervice瀵硅薄閲囧彇閰嶇疆鐨勬柟寮忔敞鍏ワ紝鑰岃繖涓畾鏃跺櫒綾葷殑鏋勯犺鎴戠粰鍔犱笂浜?<br />ApplicationContext context = new ClassPathXmlApplicationContext("applicationContext*.xml");<br />myServiceImpl = context.getBean("XXXService");<br /><br />鍔犱笂榪欐涓轟簡鏂逛究嫻嬭瘯錛屽湪璇ョ被閲屽啓main鏂規硶嫻嬭瘯鎵ц錛屾妸璋冪敤鍐欏埌鏋勯犻噷錛涳紝spring瀹氭椂鍣ㄩ厤緗ソ鏃墮棿鍚庯紝姝ゅ鏋勯犲繕浜嗗幓鎺夛紱瀵艱嚧鍚姩tomcat鏈嶅姟涓鐩村湪鍔犺澆spring娉ㄥ叆鏂囦歡錛?br />鍚岀悊錛宻pring娉ㄥ叆鐨勬柟寮忥紝鍦╝ction閲屽悓鏍鋒湁榪欐牱鐨勬晥鏋滐紝鏋勯犳柟娉曚竴瀹氭敞鎰忥紱<img src ="http://www.tkk7.com/weikangzhen/aggbug/424661.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.tkk7.com/weikangzhen/" target="_blank">欖忔枃鐢?/a> 2015-04-25 11:09 <a href="http://www.tkk7.com/weikangzhen/archive/2015/04/25/424661.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>java 綾繪槸鍏叡鐨勶紝搴斿湪鍚嶄負.java 鐨勬枃浠朵腑澹版槑http://www.tkk7.com/weikangzhen/archive/2014/08/28/417463.html欖忔枃鐢?/dc:creator>欖忔枃鐢?/author>Thu, 28 Aug 2014 12:18:00 GMThttp://www.tkk7.com/weikangzhen/archive/2014/08/28/417463.htmlhttp://www.tkk7.com/weikangzhen/comments/417463.htmlhttp://www.tkk7.com/weikangzhen/archive/2014/08/28/417463.html#Feedback0http://www.tkk7.com/weikangzhen/comments/commentRss/417463.htmlhttp://www.tkk7.com/weikangzhen/services/trackbacks/417463.html

]]>
綆鍗曠殑娣誨姞銆佸垹闄ゃ佹洿鏂扮儲寮曟枃浠朵腑鐨勭儲寮?/title><link>http://www.tkk7.com/weikangzhen/archive/2013/08/16/402918.html</link><dc:creator>欖忔枃鐢?/dc:creator><author>欖忔枃鐢?/author><pubDate>Fri, 16 Aug 2013 04:08:00 GMT</pubDate><guid>http://www.tkk7.com/weikangzhen/archive/2013/08/16/402918.html</guid><wfw:comment>http://www.tkk7.com/weikangzhen/comments/402918.html</wfw:comment><comments>http://www.tkk7.com/weikangzhen/archive/2013/08/16/402918.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.tkk7.com/weikangzhen/comments/commentRss/402918.html</wfw:commentRss><trackback:ping>http://www.tkk7.com/weikangzhen/services/trackbacks/402918.html</trackback:ping><description><![CDATA[<div style="font-family: 寰蔣闆呴粦; line-height: normal; orphans: 2; text-align: -webkit-auto; widows: 2;"><span style="text-align: -webkit-auto;"><strong>1錛屾坊鍔犵儲寮曟枃浠朵腑鐨勪竴鏉℃柊鐨勭儲寮?    </strong><br /></span>                <span style="text-align: -webkit-auto;">Question addQ = new Question();</span>//鏂版坊鍔犵殑涓鏉℃暟鎹?瀵硅薄id鍦ㄧ儲寮曟枃浠朵腑娌℃湁<br />                addQ.setId("999999999");<br />                addQ.setQuestionname("鏂版坊鍔犵殑涓鏉℃暟鎹悕縐?);</div><div style="font-family: 寰蔣闆呴粦; line-height: normal; orphans: 2; text-align: -webkit-auto; widows: 2;">                Analyzer sa = new SmartChineseAnalyzer(Version.LUCENE_40);</div><div style="font-family: 寰蔣闆呴粦; line-height: normal; orphans: 2; text-align: -webkit-auto; widows: 2;"><span style="white-space: pre; "> </span>IndexWriterConfig iwc = new IndexWriterConfig(Version.LUCENE_40, sa);</div><div style="font-family: 寰蔣闆呴粦; line-height: normal; orphans: 2; text-align: -webkit-auto; widows: 2;"><span style="white-space: pre; "> </span>iwc.setOpenMode(OpenMode.APPEND);</div><div style="font-family: 寰蔣闆呴粦; line-height: normal; orphans: 2; text-align: -webkit-auto; widows: 2;"><span style="white-space: pre; "> </span>IndexWriter writer = null;</div><div style="font-family: 寰蔣闆呴粦; line-height: normal; orphans: 2; text-align: -webkit-auto; widows: 2;"><span style="white-space: pre; "> </span>try {</div><div style="font-family: 寰蔣闆呴粦; line-height: normal; orphans: 2; text-align: -webkit-auto; widows: 2;"><span style="white-space: pre; "> </span>Directory dir1 = FSDirectory.open(new File("F:\\temp"));</div><div style="font-family: 寰蔣闆呴粦; line-height: normal; orphans: 2; text-align: -webkit-auto; widows: 2;"><span style="white-space: pre; "> </span>writer = new IndexWriter(dir1, iwc);</div><div style="font-family: 寰蔣闆呴粦; line-height: normal; orphans: 2; text-align: -webkit-auto; widows: 2;"></div><div style="font-family: 寰蔣闆呴粦; line-height: normal; orphans: 2; text-align: -webkit-auto; widows: 2;"><span style="white-space: pre; "> </span>FieldType ft = new FieldType();</div><div style="font-family: 寰蔣闆呴粦; line-height: normal; orphans: 2; text-align: -webkit-auto; widows: 2;"><span style="white-space: pre; "> </span>ft.setIndexed(true);</div><div style="font-family: 寰蔣闆呴粦; line-height: normal; orphans: 2; text-align: -webkit-auto; widows: 2;"><span style="white-space: pre; "> </span>ft.setStored(true);</div><div style="font-family: 寰蔣闆呴粦; line-height: normal; orphans: 2; text-align: -webkit-auto; widows: 2;"><span style="white-space: pre; "> </span>ft.setTokenized(true);</div><div style="font-family: 寰蔣闆呴粦; line-height: normal; orphans: 2; text-align: -webkit-auto; widows: 2;"><span style="white-space: pre; "> </span></div><div style="font-family: 寰蔣闆呴粦; line-height: normal; orphans: 2; text-align: -webkit-auto; widows: 2;"><span style="white-space: pre; "> </span>FieldType ft2 = new FieldType();</div><div style="font-family: 寰蔣闆呴粦; line-height: normal; orphans: 2; text-align: -webkit-auto; widows: 2;"><span style="white-space: pre; "> </span>ft2.setIndexed(true);</div><div style="font-family: 寰蔣闆呴粦; line-height: normal; orphans: 2; text-align: -webkit-auto; widows: 2;"><span style="white-space: pre; "> </span>ft2.setStored(true);</div><div style="font-family: 寰蔣闆呴粦; line-height: normal; orphans: 2; text-align: -webkit-auto; widows: 2;"><span style="white-space: pre; "> </span>ft2.setTokenized(false);</div><div style="font-family: 寰蔣闆呴粦; line-height: normal; orphans: 2; text-align: -webkit-auto; widows: 2;"></div><div style="font-family: 寰蔣闆呴粦; line-height: normal; orphans: 2; text-align: -webkit-auto; widows: 2;"><span style="white-space: pre; "> </span>Document doc = new Document();</div><div style="font-family: 寰蔣闆呴粦; line-height: normal; orphans: 2; text-align: -webkit-auto; widows: 2;"><span style="white-space: pre; "> </span>doc.add(new Field("id", addQ.getId(), ft2));</div><div style="font-family: 寰蔣闆呴粦; line-height: normal; orphans: 2; text-align: -webkit-auto; widows: 2;"><span style="white-space: pre; "> </span>doc.add(new Field("questionname", addQ.getQuestionname(), ft));</div><div style="font-family: 寰蔣闆呴粦; line-height: normal; orphans: 2; text-align: -webkit-auto; widows: 2;"><span style="white-space: pre; "> </span>writer.addDocument(doc);</div><div style="font-family: 寰蔣闆呴粦; line-height: normal; orphans: 2; text-align: -webkit-auto; widows: 2;"><span style="white-space: pre; "> </span>writer.close();</div><div style="font-family: 寰蔣闆呴粦; line-height: normal; orphans: 2; text-align: -webkit-auto; widows: 2;"><span style="white-space: pre; "> </span>} catch (CorruptIndexException e) {</div><div style="font-family: 寰蔣闆呴粦; line-height: normal; orphans: 2; text-align: -webkit-auto; widows: 2;"><span style="white-space: pre; "> </span>e.printStackTrace();</div><div style="font-family: 寰蔣闆呴粦; line-height: normal; orphans: 2; text-align: -webkit-auto; widows: 2;"><span style="white-space: pre; "> </span>} catch (LockObtainFailedException e) {</div><div style="font-family: 寰蔣闆呴粦; line-height: normal; orphans: 2; text-align: -webkit-auto; widows: 2;"><span style="white-space: pre; "> </span>e.printStackTrace();</div><div style="font-family: 寰蔣闆呴粦; line-height: normal; orphans: 2; text-align: -webkit-auto; widows: 2;"><span style="white-space: pre; "> </span>} catch (IOException e) {</div><div style="font-family: 寰蔣闆呴粦; line-height: normal; orphans: 2; text-align: -webkit-auto; widows: 2;"><span style="white-space: pre; "> </span>e.printStackTrace();</div><div style="font-family: 寰蔣闆呴粦; line-height: normal; orphans: 2; text-align: -webkit-auto; widows: 2;"><span style="white-space: pre; "> </span>} finally{</div><div style="font-family: 寰蔣闆呴粦; line-height: normal; orphans: 2; text-align: -webkit-auto; widows: 2;"><span style="white-space: pre; "> </span>try {</div><div style="font-family: 寰蔣闆呴粦; line-height: normal; orphans: 2; text-align: -webkit-auto; widows: 2;"><span style="white-space: pre; "> </span>if(writer!=null){</div><div style="font-family: 寰蔣闆呴粦; line-height: normal; orphans: 2; text-align: -webkit-auto; widows: 2;"><span style="white-space: pre; "> </span>writer.close();</div><div style="font-family: 寰蔣闆呴粦; line-height: normal; orphans: 2; text-align: -webkit-auto; widows: 2;"><span style="white-space: pre; "> </span>}</div><div style="font-family: 寰蔣闆呴粦; line-height: normal; orphans: 2; text-align: -webkit-auto; widows: 2;"><span style="white-space: pre; "> </span>if(sa!=null){</div><div style="font-family: 寰蔣闆呴粦; line-height: normal; orphans: 2; text-align: -webkit-auto; widows: 2;"><span style="white-space: pre; "> </span>sa.close();</div><div style="font-family: 寰蔣闆呴粦; line-height: normal; orphans: 2; text-align: -webkit-auto; widows: 2;"><span style="white-space: pre; "> </span>}</div><div style="font-family: 寰蔣闆呴粦; line-height: normal; orphans: 2; text-align: -webkit-auto; widows: 2;"><span style="white-space: pre; "> </span>} catch (CorruptIndexException e) {</div><div style="font-family: 寰蔣闆呴粦; line-height: normal; orphans: 2; text-align: -webkit-auto; widows: 2;"><span style="white-space: pre; "> </span>// TODO Auto-generated catch block</div><div style="font-family: 寰蔣闆呴粦; line-height: normal; orphans: 2; text-align: -webkit-auto; widows: 2;"><span style="white-space: pre; "> </span>e.printStackTrace();</div><div style="font-family: 寰蔣闆呴粦; line-height: normal; orphans: 2; text-align: -webkit-auto; widows: 2;"><span style="white-space: pre; "> </span>} catch (IOException e) {</div><div style="font-family: 寰蔣闆呴粦; line-height: normal; orphans: 2; text-align: -webkit-auto; widows: 2;"><span style="white-space: pre; "> </span>// TODO Auto-generated catch block</div><div style="font-family: 寰蔣闆呴粦; line-height: normal; orphans: 2; text-align: -webkit-auto; widows: 2;"><span style="white-space: pre; "> </span>e.printStackTrace();</div><div style="font-family: 寰蔣闆呴粦; line-height: normal; orphans: 2; text-align: -webkit-auto; widows: 2;"><span style="white-space: pre; "> </span>}</div><div style="orphans: 2; text-align: -webkit-auto; widows: 2;"><span style="font-family: 寰蔣闆呴粦; line-height: normal; white-space: pre;"> </span><font face="寰蔣闆呴粦"><span style="line-height: normal;">}</span></font><br /><font face="寰蔣闆呴粦"><span style="line-height: normal;">鎵ц瀹岀▼搴忓悗錛岀儲寮曟枃浠朵腑宸茬粡娣誨姞鏂扮殑绱㈠紩鏁版嵁銆?/span></font><br /><strong style="font-family: 寰蔣闆呴粦; line-height: normal;">2錛屽垹闄?/strong><strong style="font-family: 寰蔣闆呴粦; line-height: normal; text-align: -webkit-auto;">绱㈠紩鏂囦歡涓殑涓鏉℃柊鐨勭儲寮?br /></strong><font face="寰蔣闆呴粦"><span style="line-height: normal;">                Question delQ = new Question();//绱㈠紩鏂囦歡涓湁鐨勪竴鏉℃暟鎹紝鏍規嵁瀵硅薄id鍒?/span></font><br /><font face="寰蔣闆呴粦"><span style="line-height: normal;">                delQ.setId("1111111");</span></font><br /><font face="寰蔣闆呴粦"><span style="line-height: normal;">                delQ.setQuestionname("瑕佸垹闄ょ殑涓鏉℃暟鎹?);</span></font><br /><div style="font-family: 寰蔣闆呴粦; line-height: normal;">                IndexWriter writer = null;</div><div style="font-family: 寰蔣闆呴粦; line-height: normal;"><span style="white-space: pre; "> </span>Analyzer sa = new SmartChineseAnalyzer(Version.LUCENE_40);</div><div style="font-family: 寰蔣闆呴粦; line-height: normal;"><span style="white-space: pre; "> </span>IndexWriterConfig iwc = new IndexWriterConfig(Version.LUCENE_40, sa);</div><div style="font-family: 寰蔣闆呴粦; line-height: normal;"><span style="white-space: pre; "> </span>Directory dir1 = null;</div><div style="font-family: 寰蔣闆呴粦; line-height: normal;"><span style="white-space: pre; "> </span>try {</div><div style="font-family: 寰蔣闆呴粦; line-height: normal;"><span style="white-space: pre; "> </span>dir1 = FSDirectory.open(new File("F:\\temp"));</div><div style="font-family: 寰蔣闆呴粦; line-height: normal;"><span style="white-space: pre; "> </span>writer = new IndexWriter(dir1, iwc);</div><div style="font-family: 寰蔣闆呴粦; line-height: normal;"><span style="white-space: pre; "> </span>Term term = new Term("id", delQ.getId());</div><div style="font-family: 寰蔣闆呴粦; line-height: normal;"><span style="white-space: pre; "> </span>writer.deleteDocuments(term);</div><div style="font-family: 寰蔣闆呴粦; line-height: normal;"><span style="white-space: pre; "> </span>writer.commit();</div><div style="font-family: 寰蔣闆呴粦; line-height: normal;"><span style="white-space: pre; "> </span>writer.close();</div><div style="font-family: 寰蔣闆呴粦; line-height: normal;"><span style="white-space: pre; "> </span>} catch (CorruptIndexException e) {</div><div style="font-family: 寰蔣闆呴粦; line-height: normal;"><span style="white-space: pre; "> </span>e.printStackTrace();</div><div style="font-family: 寰蔣闆呴粦; line-height: normal;"><span style="white-space: pre; "> </span>} catch (LockObtainFailedException e) {</div><div style="font-family: 寰蔣闆呴粦; line-height: normal;"><span style="white-space: pre; "> </span>e.printStackTrace();</div><div style="font-family: 寰蔣闆呴粦; line-height: normal;"><span style="white-space: pre; "> </span>} catch (IOException e) {</div><div style="font-family: 寰蔣闆呴粦; line-height: normal;"><span style="white-space: pre; "> </span>e.printStackTrace();</div><div style="font-family: 寰蔣闆呴粦; line-height: normal;"><span style="white-space: pre; "> </span>} finally {</div><div style="font-family: 寰蔣闆呴粦; line-height: normal;"><span style="white-space: pre; "> </span>try {</div><div style="font-family: 寰蔣闆呴粦; line-height: normal;"><span style="white-space: pre; "> </span>if (writer != null) {</div><div style="font-family: 寰蔣闆呴粦; line-height: normal;"><span style="white-space: pre; "> </span>writer.close();</div><div style="font-family: 寰蔣闆呴粦; line-height: normal;"><span style="white-space: pre; "> </span>sa.close();</div><div style="font-family: 寰蔣闆呴粦; line-height: normal;"><span style="white-space: pre; "> </span>}</div><div style="font-family: 寰蔣闆呴粦; line-height: normal;"><span style="white-space: pre; "> </span>} catch (CorruptIndexException e) {</div><div style="font-family: 寰蔣闆呴粦; line-height: normal;"><span style="white-space: pre; "> </span>e.printStackTrace();</div><div style="font-family: 寰蔣闆呴粦; line-height: normal;"><span style="white-space: pre; "> </span>} catch (IOException e) {</div><div style="font-family: 寰蔣闆呴粦; line-height: normal;"><span style="white-space: pre; "> </span>e.printStackTrace();</div><div style="font-family: 寰蔣闆呴粦; line-height: normal;"><span style="white-space: pre; "> </span>}</div><div style="font-family: 寰蔣闆呴粦; line-height: normal;"><span style="white-space: pre; "> </span>}</div><div style="font-family: 寰蔣闆呴粦; line-height: normal;"><span style="white-space: pre; "> </span>System.out.println("绱㈠紩鍒犻櫎瀹屾垚");</div><font face="寰蔣闆呴粦"><span style="line-height: normal;"><strong>3</strong></span></font><strong style="font-family: verdana, 'courier new'; line-height: 21px;">錛屾洿鏂?/strong><strong style="font-family: verdana, 'courier new'; line-height: 21px;">绱㈠紩鏂囦歡涓殑涓鏉$儲寮?br />鏇存柊绱㈠紩鏂囦歡涓殑涓鏉$儲寮曠殑鐞嗗康鏄細鍏堟壘鍒拌繖鏉$儲寮曞垹闄わ紝鐒跺悗鍐嶆坊鍔犺繖鏉℃洿鏂板悗鐨勭儲寮?/strong><span style="font-family: verdana, 'courier new'; line-height: 21px;"><br /><br /></span></div><img src ="http://www.tkk7.com/weikangzhen/aggbug/402918.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.tkk7.com/weikangzhen/" target="_blank">欖忔枃鐢?/a> 2013-08-16 12:08 <a href="http://www.tkk7.com/weikangzhen/archive/2013/08/16/402918.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>綆鍗曠殑lucene鏍規嵁绱㈠紩鏂囦歡鏌ヨ(鎼滅儲寮曟搸)http://www.tkk7.com/weikangzhen/archive/2013/08/12/402706.html欖忔枃鐢?/dc:creator>欖忔枃鐢?/author>Mon, 12 Aug 2013 09:26:00 GMThttp://www.tkk7.com/weikangzhen/archive/2013/08/12/402706.htmlhttp://www.tkk7.com/weikangzhen/comments/402706.htmlhttp://www.tkk7.com/weikangzhen/archive/2013/08/12/402706.html#Feedback1http://www.tkk7.com/weikangzhen/comments/commentRss/402706.htmlhttp://www.tkk7.com/weikangzhen/services/trackbacks/402706.html                IndexReader reader = DirectoryReader.open(FSDirectory.open(new File("F:\\temp")));// 鎵撳紑绱㈠紩
IndexSearcher searcher = new IndexSearcher(reader);
Analyzer analyzer = new SmartChineseAnalyzer(Version.LUCENE_40);
String[] fields = { "questionname","id" };
Occur[] occurs = new Occur[] { Occur.SHOULD,Occur.SHOULD };
Query query =  MultiFieldQueryParser.parse(Version.LUCENE_40, "嫻嬭瘯 鐨?/span>", fields,
occurs, analyzer);
TopDocs result = searcher.search(query, searcher.getIndexReader()
.maxDoc());
ScoreDoc[] hits = result.scoreDocs;
List<Document> list = new ArrayList<Document>();
for (int i = 0; i <hits.length; i++) {
Document doc = searcher.doc(hits[i].doc);
list.add(doc);
}
System.out.println("鎼滅儲list鐨勯暱搴t→→→→\t"+list.size());
for (Document document : list) {
System.out.println(document.getField("questionname"));
}
analyzer.close();

娉細綰㈣壊瀛椾綋鏄緭鍏ョ殑媯绱㈡潯浠訛紝澶氫釜鐢ㄧ┖鏍奸殧寮錛屾壘鍒扮殑緇撴灉鍏堝尮閰嶅悓鏃剁鍚堝涓殑緇撴灉錛岀粨鏋滃彧鏄嬁榪囨潵鐨刣ocument涓涓猯ist闆嗗悎錛屽叿浣撶粨鏋滃啀瑙f瀽灝辮浜嗐?br />
緇撴灉濡傚浘錛?br />


]]>
綆鍗曠殑lucene鍒涘緩绱㈠紩鏂囦歡http://www.tkk7.com/weikangzhen/archive/2013/08/12/402703.html欖忔枃鐢?/dc:creator>欖忔枃鐢?/author>Mon, 12 Aug 2013 08:50:00 GMThttp://www.tkk7.com/weikangzhen/archive/2013/08/12/402703.htmlhttp://www.tkk7.com/weikangzhen/comments/402703.htmlhttp://www.tkk7.com/weikangzhen/archive/2013/08/12/402703.html#Feedback0http://www.tkk7.com/weikangzhen/comments/commentRss/402703.htmlhttp://www.tkk7.com/weikangzhen/services/trackbacks/402703.html                Connection conn = null;
Statement stat = null;
ResultSet rs = null;
Analyzer sa = new SmartChineseAnalyzer(Version.LUCENE_40);
IndexWriterConfig iwc = new IndexWriterConfig(Version.LUCENE_40, sa);
iwc.setOpenMode(OpenMode.CREATE);
Directory dir1 = FSDirectory.open(new File("F:\\temp"));
IndexWriter writer = new IndexWriter(dir1, iwc);
int numIndexed = -1;
FieldType ft = new FieldType();
ft.setIndexed(true);
ft.setStored(true);
ft.setTokenized(true);
FieldType ft2 = new FieldType();
ft2.setIndexed(true);
ft2.setStored(true);
ft2.setTokenized(false);
Class.forName("com.mysql.jdbc.Driver");
conn = (Connection) DriverManager.getConnection(
"jdbc:mysql:///question", "root", "root");
stat = (Statement) conn.createStatement();
rs = stat.executeQuery("select id,questionname from question");
List<String> list = new ArrayList<String>();
while (rs.next()) {
String id = rs.getString("questionname");
String questionname = rs.getString("questionname");
list.add(id);
list.add(questionname);
}
rs.close();
stat.close();
conn.close();
for (String string : list) {
Document doc = new Document();
doc.add(new Field("questionname", string, ft2));
writer.addDocument(doc);
}
numIndexed = writer.maxDoc();
writer.close();
鎵ц瀹岃繖孌電▼搴廸鐩樺涓涓枃浠跺すtemp錛岄噷闈㈠氨鏄垱寤哄ソ鐨勭儲寮曟枃浠朵簡錛岀劧鍚庤繘琛屾牴鎹儲寮曟枃浠舵煡璇?br />


]]>
綆鍗曠殑婊戣疆婊氬姩鍑虹幇"鍥炲埌欏剁"http://www.tkk7.com/weikangzhen/archive/2013/08/07/402491.html欖忔枃鐢?/dc:creator>欖忔枃鐢?/author>Wed, 07 Aug 2013 02:35:00 GMThttp://www.tkk7.com/weikangzhen/archive/2013/08/07/402491.htmlhttp://www.tkk7.com/weikangzhen/comments/402491.htmlhttp://www.tkk7.com/weikangzhen/archive/2013/08/07/402491.html#Feedback0http://www.tkk7.com/weikangzhen/comments/commentRss/402491.htmlhttp://www.tkk7.com/weikangzhen/services/trackbacks/402491.html<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html;charset=GBK" />
<title></title>
<script type="text/javascript" src="jquery-1.8.2.js"></script>
<script type="text/javascript">
$(document).mousemove(function(e) {
var innerHeight = window.innerHeight;
if (e.pageY > innerHeight) {
$("#topDiv").css("display", "block");
}
if (e.pageY < innerHeight) {
$("#topDiv").css("display", "none");
}
});
$("#topIcon").mouseover(function() {
$("#topIcon").css("text-decoration", "none");
$("#topIcon").children("i").removeClass();
$("#topIcon").children("i").addClass("icon-chevron-up");
});
$("#topIcon").mouseout(function() {
$("#topIcon").children("i").removeClass();
$("#topIcon").children("i").addClass("icon-arrow-up");
});
</script>
</head>
<body id="bodyId">
<div id="topDiv"
style="position: fixed;right: 60px;bottom: 60px;display: none">
<a id="topIcon" href="#bodyId" style="background-color: #aaaaaa"><span
style="text-align: justify;display: block;text-decoration: none;width: 14px;background-color: #cccccc">鍥炲埌欏剁</span>
</a>
</div>
<h1>O(∩_∩)O鍝堝搱~</h1>
<h2>(*^__^*) 鍢誨樆……</h2>
<h3>O(∩_∩)O~</h3>
<h4>\(^o^)/~</h4>
<h5>$_$</h5>
<h6>o(╯□╰)o</h6>
<h1>O(∩_∩)O鍝堝搱~</h1>
<h2>(*^__^*) 鍢誨樆……</h2>
<h3>O(∩_∩)O~</h3>
<h4>\(^o^)/~</h4>
<h5>$_$</h5>
<h6>o(╯□╰)o</h6>
<h1>O(∩_∩)O鍝堝搱~</h1>
<h2>(*^__^*) 鍢誨樆……</h2>
<h3>O(∩_∩)O~</h3>
<h4>\(^o^)/~</h4>
<h5>$_$</h5>
<h6>o(╯□╰)o</h6>
<h1>O(∩_∩)O鍝堝搱~</h1>
<h2>(*^__^*) 鍢誨樆……</h2>
<h3>O(∩_∩)O~</h3>
<h4>\(^o^)/~</h4>
<h5>$_$</h5>
<h6>o(╯□╰)o</h6>
<h1>O(∩_∩)O鍝堝搱~</h1>
<h2>(*^__^*) 鍢誨樆……</h2>
<h3>O(∩_∩)O~</h3>
<h4>\(^o^)/~</h4>
<h5>$_$</h5>
<h6>o(╯□╰)o</h6>
<h1>O(∩_∩)O鍝堝搱~</h1>
<h2>(*^__^*) 鍢誨樆……</h2>
<h3>O(∩_∩)O~</h3>
<h4>\(^o^)/~</h4>
<h5>$_$</h5>
<h6>o(╯□╰)o</h6>
<h1>O(∩_∩)O鍝堝搱~</h1>
<h2>(*^__^*) 鍢誨樆……</h2>
<h3>O(∩_∩)O~</h3>
<h4>\(^o^)/~</h4>
<h5>$_$</h5>
<h6>o(╯□╰)o</h6>
<h1>O(∩_∩)O鍝堝搱~</h1>
<h2>(*^__^*) 鍢誨樆……</h2>
<h3>O(∩_∩)O~</h3>
<h4>\(^o^)/~</h4>
<h5>$_$</h5>
<h6>o(╯□╰)o</h6>
</body>
</html>


]]>
姹傚崟涓鐧婚檰鍜屽崟鐐圭櫥闄嗙殑鎬濊礬鍙婃牳蹇冧唬鐮侊紵錛燂紵http://www.tkk7.com/weikangzhen/archive/2013/08/07/402489.html欖忔枃鐢?/dc:creator>欖忔枃鐢?/author>Wed, 07 Aug 2013 01:56:00 GMThttp://www.tkk7.com/weikangzhen/archive/2013/08/07/402489.htmlhttp://www.tkk7.com/weikangzhen/comments/402489.htmlhttp://www.tkk7.com/weikangzhen/archive/2013/08/07/402489.html#Feedback0http://www.tkk7.com/weikangzhen/comments/commentRss/402489.htmlhttp://www.tkk7.com/weikangzhen/services/trackbacks/402489.html姹傚崟涓鐧婚檰鍜屽崟鐐圭櫥闄嗙殑鎬濊礬鍙婃牳蹇冧唬鐮侊紵錛燂紵

]]>
html涓腑鏂囨鍒欒〃杈懼紡涓嶅鐨勯棶棰?/title><link>http://www.tkk7.com/weikangzhen/archive/2013/07/29/402111.html</link><dc:creator>欖忔枃鐢?/dc:creator><author>欖忔枃鐢?/author><pubDate>Mon, 29 Jul 2013 07:56:00 GMT</pubDate><guid>http://www.tkk7.com/weikangzhen/archive/2013/07/29/402111.html</guid><wfw:comment>http://www.tkk7.com/weikangzhen/comments/402111.html</wfw:comment><comments>http://www.tkk7.com/weikangzhen/archive/2013/07/29/402111.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.tkk7.com/weikangzhen/comments/commentRss/402111.html</wfw:commentRss><trackback:ping>http://www.tkk7.com/weikangzhen/services/trackbacks/402111.html</trackback:ping><description><![CDATA[<span style="font-family: 寰蔣闆呴粦; line-height: normal; orphans: 2; text-align: -webkit-auto; widows: 2;">html涓腑鏂囨鍒欒〃杈懼紡涓嶅鐨勯棶棰?/span> <br /><div style="font-family: 寰蔣闆呴粦; line-height: normal; orphans: 2; text-align: -webkit-auto; widows: 2;">涓枃鐨勬鍒欒〃杈懼紡錛歷ar reg = /^[\u4e00-\u9fa5]$/;(涓涓腑鏂囧瓧絎?</div><div style="font-family: 寰蔣闆呴粦; line-height: normal; orphans: 2; text-align: -webkit-auto; widows: 2;">鏀懼湪html涓彲鑳藉嚭鐜扮殑闂鏈夛細</div><div style="font-family: 寰蔣闆呴粦; line-height: normal; orphans: 2; text-align: -webkit-auto; widows: 2;"><div><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"></div><div><html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"></div><div><head></div><div><span style="color: #0000ff; white-space: pre; "> </span><meta http-equiv="Content-Type" content="text/html;charset=<strong style="color: red;">UTF-8</strong>" /></div><div><span style="white-space: pre; "> </span><title></title></div><div></head></div><div><body></div><div><span style="white-space: pre; "> </span><script type="text/javascript"></div><div>            var reg0 = /^[\u4e00-\u9fa5]$/;</div><div><span style="color: #0000ff; ">            </span><span style="color: #000000;">alert(reg0.test("鐪?));</span></div><div><span style="white-space: pre; "> </span></script></div><div></body></div><div></html><br />鏈〉緙栫爜涓篣TF-8鏃跺嚭鐜扮殑緇撴灉鍙兘鏄敊璇殑錛?br />鎵浠ュ嚭鐜版綾繪儏鍐碉紝緙栫爜鏍煎紡鏀逛負gb2312(綰㈣壊鏍囨敞鐨勭紪鐮佹敼涓篻b2312)</div></div><img src ="http://www.tkk7.com/weikangzhen/aggbug/402111.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.tkk7.com/weikangzhen/" target="_blank">欖忔枃鐢?/a> 2013-07-29 15:56 <a href="http://www.tkk7.com/weikangzhen/archive/2013/07/29/402111.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>灝嗕竴涓甫鏍煎紡鐨別xcel琛ㄥ唴瀹?甯︽牸寮?鍐欏叆涓涓笌涔嬫湁鐩稿悓鍒楃殑excel琛ㄦ牸涓?榪藉姞鍐?http://www.tkk7.com/weikangzhen/archive/2013/07/19/401768.html欖忔枃鐢?/dc:creator>欖忔枃鐢?/author>Fri, 19 Jul 2013 10:02:00 GMThttp://www.tkk7.com/weikangzhen/archive/2013/07/19/401768.htmlhttp://www.tkk7.com/weikangzhen/comments/401768.htmlhttp://www.tkk7.com/weikangzhen/archive/2013/07/19/401768.html#Feedback0http://www.tkk7.com/weikangzhen/comments/commentRss/401768.htmlhttp://www.tkk7.com/weikangzhen/services/trackbacks/401768.html
public static void main(String[] args) {
try {
File allfile = new File("f:\\excel\\total.xlsx");
File file2 = new File("f:\\excel\\xxxxxx.xlsx");
XSSFWorkbook h = new XSSFWorkbook(new FileInputStream(allfile));
XSSFSheet x = h.getSheetAt(0);
XSSFWorkbook hssfWorkbook = new XSSFWorkbook(new FileInputStream(file2));
XSSFSheet hssfSheet = hssfWorkbook.getSheetAt(0);
int ii = hssfSheet.getLastRowNum();//璇誨彇鐨勮〃鏍艱鏁?/div>
System.out.println(ii);
FileOutputStream out_ = new FileOutputStream(allfile);
for (int i = 0; i < ii; i++) {
XSSFRow lastRow = x.createRow(x.getLastRowNum()+1);
XSSFRow xssfRow = hssfSheet.getRow(i);
XSSFCell xssfCell0 = xssfRow.getCell(0);
CellStyle cellStyle0 = xssfCell0.getCellStyle();
CellStyle newStyle0 = h.createCellStyle();
newStyle0.cloneStyleFrom(cellStyle0);
XSSFCell xssfCell0_ = lastRow.createCell(0);
xssfCell0_.setCellStyle(newStyle0);
xssfCell0_.setCellValue(xssfCell0.toString());
XSSFCell xssfCell1 = xssfRow.getCell(1);
CellStyle cellStyle1 = xssfCell1.getCellStyle();
CellStyle newStyle1 = h.createCellStyle();
newStyle1.cloneStyleFrom(cellStyle1);
XSSFCell xssfCell1_ = lastRow.createCell(1);
xssfCell1_.setCellStyle(newStyle1);
xssfCell1_.setCellValue(xssfCell1.toString());
XSSFCell xssfCell2 = xssfRow.getCell(2);
CellStyle cellStyle2 = xssfCell2.getCellStyle();
CellStyle newStyle2 = h.createCellStyle();
newStyle2.cloneStyleFrom(cellStyle2);
XSSFCell xssfCell2_ = lastRow.createCell(2);
xssfCell2_.setCellStyle(newStyle2);
xssfCell2_.setCellValue(xssfCell2.toString());
XSSFCell xssfCell3 = xssfRow.getCell(3);
CellStyle cellStyle3 = xssfCell3.getCellStyle();
CellStyle newStyle3 = h.createCellStyle();
newStyle3.cloneStyleFrom(cellStyle3);
XSSFCell xssfCell3_ = lastRow.createCell(3);
xssfCell3_.setCellStyle(newStyle3);
xssfCell3_.setCellValue(xssfCell3.toString());
XSSFCell xssfCell4 = xssfRow.getCell(4);
CellStyle cellStyle4 = xssfCell4.getCellStyle();
CellStyle newStyle4 = h.createCellStyle();
newStyle4.cloneStyleFrom(cellStyle4);
XSSFCell xssfCell4_ = lastRow.createCell(4);
xssfCell4_.setCellStyle(newStyle4);
xssfCell4_.setCellValue(xssfCell4.toString().toString());
}
h.write(out_);
out_.flush();
out_.close();
} catch (FileNotFoundException e) {
// TODO Auto-generated catch block
e.printStackTrace();
} catch (IOException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
}


]]> 主站蜘蛛池模板: 亚洲一区二区三区四区视频| 亚洲成A人片在线观看无码不卡| 爱爱帝国亚洲一区二区三区| 一级做a爱片特黄在线观看免费看| A级毛片高清免费视频在线播放| 最近的免费中文字幕视频| 亚洲欧洲日本天天堂在线观看| 特级毛片aaaa级毛片免费| 84pao强力永久免费高清| 亚洲人成网www| 91香蕉在线观看免费高清| 亚洲国产一区二区a毛片| 久久免费观看国产精品| 亚洲电影一区二区三区| 久久99精品免费视频| 亚洲精品国产V片在线观看 | 免费无遮挡无码视频网站| 日本亚洲免费无线码 | 无码av免费网站| 亚洲自偷自偷精品| 久久免费视频一区| 国产又粗又猛又爽又黄的免费视频 | 深夜A级毛片视频免费| 亚洲乱码中文字幕综合234| 成人自慰女黄网站免费大全| 亚洲色成人中文字幕网站| 国产成人精品久久亚洲高清不卡| 成人永久福利免费观看| 亚洲AV无码一区二区三区在线| 99久久综合国产精品免费| 亚洲狠狠综合久久| 一二三四免费观看在线视频中文版 | 精品一区二区三区免费观看| 亚洲αv久久久噜噜噜噜噜| gogo免费在线观看| 亚洲Av永久无码精品三区在线 | 好吊妞视频免费视频| 日韩免费在线中文字幕| 亚洲AV无码专区电影在线观看| 精品成在人线AV无码免费看 | 中文字幕亚洲日韩无线码|