锘??xml version="1.0" encoding="utf-8" standalone="yes"?>亚洲综合图色40p,国产精品亚洲综合网站,亚洲日本一线产区和二线产区对比 http://www.tkk7.com/athrunwang/綰厓 zh-cn Sun, 11 May 2025 13:10:59 GMT Sun, 11 May 2025 13:10:59 GMT 60 log4j.properties http://www.tkk7.com/athrunwang/archive/2014/02/25/410305.htmlAthrunWang AthrunWang Tue, 25 Feb 2014 14:52:00 GMT http://www.tkk7.com/athrunwang/archive/2014/02/25/410305.html http://www.tkk7.com/athrunwang/comments/410305.html http://www.tkk7.com/athrunwang/archive/2014/02/25/410305.html#Feedback 0 http://www.tkk7.com/athrunwang/comments/commentRss/410305.html http://www.tkk7.com/athrunwang/services/trackbacks/410305.html #============================================================Logger CommonLoglog4j.logger.CommonLog=DEBUG, Console, LogRollingFile
# Console output...
log4j.appender.Console=org.apache.log4j.ConsoleAppender
log4j.appender.Console.layout=org.apache.log4j.PatternLayout
log4j.appender.Console.layout.ConversionPattern=[%-5p] %d{yyyy-MM-dd HH:mm:ss,SSS} method:%l%n%m%n
# RollingFileAppender output...
log4j.appender.LogRollingFile=org.apache.log4j.RollingFileAppender
log4j.appender.LogRollingFile.File=${user.dir}/yccb/log/yccb.log
log4j.appender.LogRollingFile.Append=true
log4j.appender.LogRollingFile.MaxFileSize=46MB
log4j.appender.LogRollingFile.MaxBackupIndex=50
log4j.appender.LogRollingFile.layout=org.apache.log4j.PatternLayout
log4j.appender.LogRollingFile.layout.ConversionPattern=[%-5p] %d{yyyy-MM-dd HH\:mm\:ss,SSS} method\:%l%n%m%n
#============================================================Logger SkmLog
log4j.logger.SkmLog=DEBUG, DailyRollingFile
# DailyRollingFile output...
log4j.appender.DailyRollingFile=org.apache.log4j.DailyRollingFileAppender
log4j.appender.DailyRollingFile.DatePattern=yyyy-MM-dd'.log'
log4j.appender.DailyRollingFile.File=${user.dir}/yccb/log/skm/skm.log
log4j.appender.DailyRollingFile.layout=org.apache.log4j.PatternLayout
log4j.appender.DailyRollingFile.layout.ConversionPattern=[%-5p] %d{yyyy-MM-dd HH\:mm\:ss,SSS} method\:%l%n%m%n
]]> java瀵規棩鏈熸牸寮忕殑鏍¢獙 http://www.tkk7.com/athrunwang/archive/2014/02/21/410156.htmlAthrunWang AthrunWang Fri, 21 Feb 2014 05:20:00 GMT http://www.tkk7.com/athrunwang/archive/2014/02/21/410156.html http://www.tkk7.com/athrunwang/comments/410156.html http://www.tkk7.com/athrunwang/archive/2014/02/21/410156.html#Feedback 0 http://www.tkk7.com/athrunwang/comments/commentRss/410156.html http://www.tkk7.com/athrunwang/services/trackbacks/410156.html SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd"); sdf.setLenient(false);
boolean b = true;
try {
sdf.parse("2002-15-11");
} catch (ParseException e) {
e.printStackTrace();
b = false;
}
System.out.println(b);
]]> MyEclipse寮鍙慦ebService鏁欑▼ http://www.tkk7.com/athrunwang/archive/2014/02/20/410094.htmlAthrunWang AthrunWang Thu, 20 Feb 2014 05:06:00 GMT http://www.tkk7.com/athrunwang/archive/2014/02/20/410094.html http://www.tkk7.com/athrunwang/comments/410094.html http://www.tkk7.com/athrunwang/archive/2014/02/20/410094.html#Feedback 0 http://www.tkk7.com/athrunwang/comments/commentRss/410094.html http://www.tkk7.com/athrunwang/services/trackbacks/410094.html http://blog.csdn.net/wuxianglong/article/details/6285978 ]]> 鍏挜錛岀閽?SSL錛堣鐨勫緢鐢熷姩錛? http://www.tkk7.com/athrunwang/archive/2014/02/19/410028.htmlAthrunWang AthrunWang Wed, 19 Feb 2014 03:11:00 GMT http://www.tkk7.com/athrunwang/archive/2014/02/19/410028.html http://www.tkk7.com/athrunwang/comments/410028.html http://www.tkk7.com/athrunwang/archive/2014/02/19/410028.html#Feedback 0 http://www.tkk7.com/athrunwang/comments/commentRss/410028.html http://www.tkk7.com/athrunwang/services/trackbacks/410028.html 1錛屽叕閽ュ拰縐侀挜鎴愬鍑虹幇 2錛屽叕寮鐨勫瘑閽ュ彨鍏挜錛屽彧鏈夎嚜宸辯煡閬撶殑鍙閽?br />3錛岀敤鍏挜鍔犲瘑鐨勬暟鎹彧鏈夊搴旂殑縐侀挜鍙互 瑙e瘑 4錛岀敤縐侀挜鍔犲瘑鐨勬暟鎹彧鏈夊搴旂殑鍏挜鍙互瑙e瘑 5錛屽鏋滃彲浠ョ敤鍏挜瑙e瘑錛屽垯蹇呯劧鏄搴旂殑縐侀挜鍔犵殑瀵?br />6錛屽鏋滃彲浠ョ敤縐侀挜瑙e瘑錛屽垯 蹇呯劧鏄搴旂殑鍏挜鍔犵殑瀵?br />鏄庣櫧浜嗭紵
鍋囪涓涓嬶紝鎴戞壘浜嗕袱涓暟瀛楋紝涓涓槸1錛屼竴涓槸2銆傛垜鍠滄2榪欎釜鏁板瓧錛屽氨淇濈暀璧鋒潵錛屼笉鍛婅瘔浣犱滑錛岀劧 鍚庢垜鍛婅瘔澶у錛?鏄垜鐨勫叕閽ャ?/p>
鎴戞湁涓涓枃浠訛紝涓嶈兘璁╁埆浜虹湅錛屾垜灝辯敤1鍔犲瘑浜嗐傚埆浜烘壘鍒頒簡榪欎釜鏂囦歡錛屼絾鏄粬涓嶇煡閬?灝辨槸瑙e瘑鐨勭閽ュ晩錛屾墍浠?浠栬В涓嶅紑錛屽彧鏈夋垜鍙互鐢ㄦ暟瀛?錛屽氨鏄垜鐨勭閽ワ紝鏉ヨВ瀵嗐傝繖鏍鋒垜灝卞彲浠ヤ繚鎶ゆ暟鎹簡銆?/p>
鎴戠殑濂芥湅鍙媥鐢ㄦ垜鐨勫叕閽?鍔犲瘑浜嗗瓧絎錛屽姞瀵嗗悗鎴愪簡b錛?鏀懼湪緗戜笂銆傚埆浜哄伔鍒頒簡榪欎釜鏂囦歡錛屼絾鏄埆浜鴻В涓嶅紑錛屽洜涓哄埆浜轟笉鐭ラ亾2灝辨槸鎴戠殑縐侀挜錛屽彧鏈夋垜鎵嶈兘瑙e瘑錛岃В瀵嗗悗灝卞緱鍒癮銆傝繖鏍鳳紝鎴戜滑灝卞彲浠ヤ紶閫佸姞瀵嗙殑鏁版嵁浜嗐?/p>
鐜板湪鎴戜滑鐭ラ亾鐢ㄥ叕閽ュ姞瀵嗭紝鐒跺悗鐢ㄧ閽ユ潵瑙e瘑錛屽氨鍙互瑙e喅瀹夊叏浼犺緭鐨勯棶棰樹簡銆傚鏋滄垜鐢ㄧ閽ュ姞瀵嗕竴孌墊暟鎹紙褰撶劧鍙湁鎴戝彲浠ョ敤縐侀挜鍔犲瘑錛屽洜涓哄彧鏈夋垜鐭ラ亾 2鏄垜鐨勭閽ワ級錛岀粨鏋滄墍鏈夌殑浜洪兘鐪嬪埌鎴戠殑鍐呭浜嗭紝鍥犱負浠栦滑閮界煡閬撴垜鐨勫叕閽ユ槸1錛岄偅涔堣繖縐嶅姞瀵嗘湁浠涔堢敤澶勫憿錛?/p>
浣嗘槸鎴戠殑濂芥湅鍙媥璇存湁浜哄啋鍏呮垜 緇欎粬鍙戜俊銆傛庝箞鍔炲憿錛熸垜鎶婃垜瑕佸彂鐨勪俊錛屽唴瀹規槸c錛岀敤鎴戠殑縐侀挜2錛屽姞瀵嗭紝鍔犲瘑鍚庣殑鍐呭鏄痙錛屽彂緇檟錛屽啀鍛婅瘔浠栬В瀵嗙湅鏄笉鏄痗銆備粬鐢ㄦ垜鐨勫叕閽?瑙e瘑錛屽彂鐜版灉鐒?鏄痗銆傝繖涓椂鍊欙紝浠栦細鎯沖埌錛岃兘澶熺敤鎴戠殑鍏挜瑙e瘑鐨勬暟鎹紝蹇呯劧鏄敤鎴戠殑縐侀挜鍔犵殑瀵嗐傚彧鏈夋垜鐭ラ亾鎴戝緱縐侀挜錛屽洜姝や粬灝卞彲浠ョ‘璁ょ‘瀹炴槸鎴戝彂鐨勪笢瑗褲傝繖鏍鋒垜浠氨鑳界‘ 璁ゅ彂閫佹柟韜喚浜嗐?strong>榪欎釜榪囩▼鍙仛鏁板瓧絳懼悕銆傚綋鐒跺叿浣撶殑榪囩▼瑕佺◢寰鏉備竴浜涖?strong>鐢ㄧ閽ユ潵鍔犲瘑鏁版嵁錛岀敤閫斿氨鏄暟瀛楃鍚?/strong>銆?/p>
濂斤紝鎴戜滑澶嶄範涓涓嬶細 1錛?鍏挜縐侀挜鎴愬鍑虹幇 2錛岀閽ュ彧鏈夋垜鐭ラ亾 3錛屽ぇ瀹跺彲浠ョ敤鎴戠殑鍏挜緇欐垜鍙戝姞瀵嗙殑淇′簡 4錛屽ぇ瀹剁敤鎴戠殑鍏挜瑙e瘑淇$殑鍐呭錛岀湅鐪嬭兘涓嶈兘瑙e紑錛?鑳借В寮錛岃鏄庢槸緇忚繃鎴戠殑縐侀挜鍔犲瘑浜嗭紝灝卞彲浠ョ‘璁ょ‘瀹炴槸鎴戝彂鐨勪簡銆?/p>
鎬葷粨涓涓嬬粨璁猴細 1錛岀敤鍏挜鍔犲瘑鏁版嵁錛岀敤縐侀挜鏉ヨВ瀵嗘暟鎹?br />2錛?鐢ㄧ閽ュ姞瀵嗘暟鎹紙鏁板瓧絳懼悕錛夛紝鐢ㄥ叕閽ユ潵楠岃瘉鏁板瓧絳懼悕銆?/p>
鍦ㄥ疄闄呯殑浣跨敤涓紝鍏挜涓嶄細鍗曠嫭鍑虹幇錛屾繪槸浠ユ暟瀛楄瘉涔︾殑鏂瑰紡鍑虹幇錛岃繖鏍鋒槸涓轟簡鍏挜鐨勫畨 鍏ㄦу拰鏈夋晥鎬с?/p>
浜岋紝SSL 鎴戝拰鎴戝緱濂芥湅鍙媥錛岃榪涜瀹夊叏鐨勯氫俊銆傝繖縐嶉氫俊鍙互鏄疩Q鑱婂ぉ錛屽緢棰戠箒鐨勩傜敤鎴戠殑鍏挜鍔犲瘑鏁版嵁灝變笉琛?浜嗭紝鍥犱負錛?br />1錛屾垜鐨勫ソ鏈嬪弸x娌℃湁鍏閽ュ錛屾垜鎬庝箞緇欎粬鍙戝姞瀵嗙殑娑堟伅鍟婏紵 錛堟敞錛氬疄闄呮儏鍐典腑錛屽彲浠ュ弻鏂歸兘鏈夊叕縐侀挜瀵癸級 2錛岀敤鍏閽ュ姞瀵嗚繍綆?寰堣垂鏃墮棿錛屽緢鎱紝褰卞搷QQ鏁堟灉銆?/p>
濂戒簡錛屽ソ鏈嬪弸x錛屾壘浜嗕竴涓暟瀛?錛岀敤鎴戠殑鍏挜1錛屽姞瀵嗗悗鍙戠粰鎴戯紝璇達紝鎴戜滑浠ュ悗灝辯敤榪欎釜鏁板瓧鏉ュ姞瀵嗕俊鎭惂銆?鎴戣В寮鍚庯紝寰楀埌浜嗘暟瀛?銆傝繖鏍鳳紝鍙湁鎴戜滑涓や釜浜虹煡閬撹繖涓瀵嗙殑鏁板瓧3錛屽埆鐨勪漢閮戒笉鐭ラ亾錛屽洜涓轟粬浠棦涓嶇煡x鎸戜簡涓涓粈涔堟暟瀛楋紝鍔犲瘑鍚庣殑鍐呭浠栦滑涔熸棤娉曡В寮錛?鎴戜滑鎶婅繖涓瀵嗙殑鏁板瓧鍙仛浼氳瘽瀵嗛挜 銆?/p>
鐒跺悗錛屾垜浠夋嫨涓縐嶅縐板瘑閽ョ畻娉曪紝姣斿DES錛岋紙瀵圭О綆楁硶鏄錛屽姞瀵嗚繃紼嬪拰瑙e瘑榪囩▼鏄縐扮殑錛岀敤涓涓?瀵嗛挜鍔犲瘑錛屽彲浠ョ敤鍚屼竴涓瘑閽ヨВ瀵嗐備嬌鐢ㄥ叕縐侀挜鐨勭畻娉曟槸闈炲縐板姞瀵嗙畻娉曪級錛屾潵鍔犲瘑鎴戜滑涔嬮棿鐨勯氫俊鍐呭銆傚埆浜哄洜涓轟笉鐭ラ亾3鏄垜浠殑浼氳瘽瀵嗛挜錛屽洜鑰屾棤娉曡В瀵嗐?/p>
濂斤紝澶嶄範涓涓嬶細 1錛孲SL瀹炵幇瀹夊叏鐨勯氫俊 2錛岄氫俊鍙屾柟浣跨敤涓鏂規垨鑰呭弻鏂圭殑鍏挜鏉ヤ紶閫掑拰綰﹀畾浼氳瘽瀵嗛挜 錛堣繖涓繃紼嬪彨鍋氭彙鎵嬶級 3錛?鍙屾柟浣跨敤浼氳瘽瀵嗛挜錛屾潵鍔犲瘑鍙屾柟鐨勯氫俊鍐呭
涓婇潰璇寸殑鏄師鐞嗐傚ぇ瀹跺彲鑳借寰楁瘮杈冨鏉備簡錛屽疄闄呬嬌鐢ㄤ腑錛屾瘮榪欒繕瑕佸鏉傘備笉榪囧簡騫哥殑鏄紝濂藉績鐨勫厛琛?鑰呬滑鍦ㄦ搷浣滅郴緇熸垨鑰呯浉鍏崇殑杞歡涓疄鐜頒簡榪欏眰錛圠ayer錛夛紝騫朵笖璧蜂簡涓涓毦鍚殑鍚嶅瓧鍙仛SSL錛岋紙Secure Socket Layer錛夈?/div>
]]>
HTTPS http://www.tkk7.com/athrunwang/archive/2014/02/19/410022.htmlAthrunWang AthrunWang Wed, 19 Feb 2014 02:48:00 GMT http://www.tkk7.com/athrunwang/archive/2014/02/19/410022.html http://www.tkk7.com/athrunwang/comments/410022.html http://www.tkk7.com/athrunwang/archive/2014/02/19/410022.html#Feedback 0 http://www.tkk7.com/athrunwang/comments/commentRss/410022.html http://www.tkk7.com/athrunwang/services/trackbacks/410022.html 瓚呮枃鏈紶杈撳畨鍏ㄥ崗璁?/strong>錛堢緝鍐欙細 HTTPS 錛?/span>鑻辮 錛?span xml:lang="en">Hypertext Transfer Protocol Secure 錛夋槸 瓚呮枃鏈紶杈撳崗璁?/a>鍜?/span>SSL/TLS 鐨勭粍鍚堬紝鐢ㄤ互鎻愪緵鍔犲瘑閫氳鍙婂緗戠粶鏈嶅姟鍣ㄨ韓浠界殑閴村畾銆侶TTPS榪炴帴緇忓父琚敤浜庝竾緇寸綉涓婄殑浜ゆ槗鏀粯鍜屼紒涓氫俊鎭郴緇熶腑鏁忔劅淇℃伅鐨勪紶杈撱?/span>HTTPS 涓嶅簲涓庡湪 RFC 2660 涓畾涔夌殑 瀹夊叏瓚呮枃鏈紶杈撳崗璁?/a>錛圫-HTTP錛夌浉娣楓?br /> 涓昏鎬濇兂HTTPS鐨勪富瑕佹濇兂鏄湪涓嶅畨鍏ㄧ殑緗戠粶涓婂垱寤轟竴瀹夊叏淇¢亾錛屽茍鍙湪浣跨敤閫傚綋鐨勫姞瀵嗗寘鍜?em>鏈嶅姟鍣ㄨ瘉涔﹀彲琚獙璇佷笖鍙淇′換鏃?/em>錛屽紿冨惉 鍜?a title="涓棿浜烘敾鍑? style="text-decoration: none; color: #0b0080; background-image: none; background-position: initial initial; background-repeat: initial initial;">涓棿浜烘敾鍑?/a>鎻愪緵鍚堢悊鐨勪繚鎶ゃ?/p>
HTTPS鐨勪俊浠葷戶鎵垮熀浜庨鍏堝畨瑁呭湪嫻忚鍣ㄤ腑鐨?a title="璇佷功棰佸彂鏈烘瀯" style="text-decoration: none; color: #0b0080; background-image: none; background-position: initial initial; background-repeat: initial initial;">璇佷功棰佸彂鏈烘瀯
錛堝VeriSign銆丮icrosoft絳夛級錛堟剰鍗?#8220;鎴戜俊浠昏瘉涔﹂鍙戞満鏋勫憡璇夋垜搴旇淇′換鐨?#8221;錛夈傚洜姝わ紝涓涓埌鏌愮綉绔欑殑HTTPS榪炴帴鍙淇′換錛?a title="褰撲笖浠呭綋" style="text-decoration: none; color: #0b0080; background-image: none; background-position: initial initial; background-repeat: initial initial;">褰撲笖浠呭綋 錛?/p>鐢ㄦ埛鐩鎬俊浠栦滑鐨勬祻瑙堝櫒姝g‘瀹炵幇浜咹TTPS涓斿畨瑁呬簡姝g‘鐨勮瘉涔﹂鍙戞満鏋勶紱 鐢ㄦ埛鐩鎬俊璇佷功棰佸彂鏈烘瀯浠呬俊浠誨悎娉曠殑緗戠珯錛?/li> 琚闂殑緗戠珯鎻愪緵浜嗕竴涓湁鏁堢殑璇佷功錛屾剰鍗籌紝瀹冩槸鐢變竴涓淇′換鐨勮瘉涔﹂鍙戞満鏋勭鍙戠殑錛堝ぇ閮ㄥ垎嫻忚鍣ㄤ細瀵規棤鏁堢殑璇佷功鍙戝嚭璀﹀憡錛夛紱 璇ヨ瘉涔︽紜湴楠岃瘉浜嗚璁塊棶鐨勭綉绔欙紙濡傦紝璁塊棶https://example
鏃舵敹鍒頒簡緇?#8220;Example Inc.”鑰屼笉鏄叾瀹冪粍緇囩殑璇佷功錛夛紱 鎴栬呬簰鑱旂綉涓婄浉鍏崇殑鑺傜偣鏄煎緱淇′換鐨勶紝鎴栬呯敤鎴風浉淇℃湰鍗忚鐨勫姞瀵嗗眰錛?a title="浼犺緭灞傚畨鍏? style="text-decoration: none; color: #0b0080; background-image: none; background-position: initial initial; background-repeat: initial initial;">TLS鎴朣SL錛変笉鑳借紿冨惉鑰呯牬鍧忋?br /> 鎶鏈粏鑺?/span> pasting 涓嶩TTP鐨勫樊寮?/span>[緙栬緫 ] 涓?a title="HTTP" style="text-decoration: none; color: #0b0080; background-image: none; background-position: initial initial; background-repeat: initial initial;">HTTP鐨?a title="緇熶竴璧勬簮瀹氫綅絎? style="text-decoration: none; color: #0b0080; background-image: none; background-position: initial initial; background-repeat: initial initial;">URL鐢?#8220;http://
”璧峰涓旈粯璁や嬌鐢?a title="TCP/UDP绔彛鍒楄〃" style="text-decoration: none; color: #0b0080; background-image: none; background-position: initial initial; background-repeat: initial initial;">绔彛80涓嶅悓錛孒TTPS鐨刄RL鐢?#8220;https://
”璧峰涓旈粯璁や嬌鐢?a title="TCP/UDP绔彛鍒楄〃" style="text-decoration: none; color: #0b0080; background-image: none; background-position: initial initial; background-repeat: initial initial;">绔彛443銆?/p>
HTTP鏄笉瀹夊叏鐨勶紝涓旀敾鍑昏呴氳繃鐩戝惉 鍜?a title="涓棿浜烘敾鍑? style="text-decoration: none; color: #0b0080; background-image: none; background-position: initial initial; background-repeat: initial initial;">涓棿浜烘敾鍑?/a>絳夋墜孌碉紝鍙互鑾峰彇緗戠珯甯愭埛鍜屾晱鎰熶俊鎭瓑銆侶TTPS琚璁′負鍙槻姝㈠墠榪版敾鍑伙紝騫訛紙鍦ㄦ病鏈変嬌鐢ㄦ棫鐗堟湰鐨凷SL鏃訛級琚涓烘槸瀹夊叏鐨勩?/p>
緗戠粶灞?/span>[緙栬緫 ] HTTP宸ヤ綔鍦ㄥ簲鐢ㄥ眰錛?a title="OSI妯″瀷" style="text-decoration: none; color: #0b0080; background-image: none; background-position: initial initial; background-repeat: initial initial;">OSI妯″瀷鐨勬渶楂樺眰錛夛紝浣嗗畨鍏ㄥ崗璁伐浣滃湪涓涓緝浣庣殑瀛愬眰錛氬湪HTTP鎶ユ枃浼犺緭鍓嶅鍏跺姞瀵嗭紝騫跺湪鍒拌揪鏃跺鍏惰В瀵嗐備弗鏍煎湴璁詫紝HTTPS騫朵笉鏄竴涓崟鐙殑鍗忚錛岃屾槸瀵瑰伐浣滃湪涓鍔犲瘑榪炴帴錛?a title="浼犺緭灞傚畨鍏? style="text-decoration: none; color: #0b0080; background-image: none; background-position: initial initial; background-repeat: initial initial;">TLS鎴朣SL錛変笂鐨勫父瑙凥TTP鍗忚鐨勭О鍛箋?/p>
HTTPS鎶ユ枃涓殑浠諱綍涓滆タ閮借鍔犲瘑錛屽寘鎷墍鏈夋姤澶村拰鑽瘋澆銆傞櫎浜嗗彲鑳界殑CCA 錛堝弬瑙?a style="text-decoration: none; color: #0b0080; background-image: none; background-position: initial initial; background-repeat: initial initial;">闄愬埗灝忚妭錛変箣澶栵紝涓涓敾鍑昏呮墍鑳界煡閬撶殑鍙湁鍦ㄤ袱鑰呬箣闂存湁涓榪炴帴榪欎竴浜嬪疄銆?/p>
鏈嶅姟鍣ㄨ緗?/span>[緙栬緫 ] 瑕佷嬌涓緗戠粶鏈嶅姟鍣ㄥ噯澶囧ソ鎺ュ彈HTTPS榪炴帴錛岀鐞嗗憳蹇呴』鍒涘緩涓鏁板瓧璇佷功 錛屽茍浜ょ敱璇佷功棰佸彂鏈烘瀯 絳懼悕浠ヤ嬌嫻忚鍣ㄦ帴鍙椼傝瘉涔﹂鍙戞満鏋勪細楠岃瘉鏁板瓧璇佷功鎸佹湁浜哄拰鍏跺0鏄庣殑涓哄悓涓浜恒傛祻瑙堝櫒閫氬父閮介瑁呬簡璇佷功棰佸彂鏈烘瀯鐨勮瘉涔︼紝鎵浠ヤ粬浠彲浠ラ獙璇佽絳懼悕銆?/p>
鑾峰緱璇佷功 [緙栬緫 ] 鐢辮瘉涔﹂鍙戞満鏋勭鍙戠殑璇佷功鏈夊厤璐圭殑[3] [4] 錛屼篃鏈夋瘡騫存敹璐?3緹庡厓 [5] 鍒?500緹庡厓[6] 涓嶇瓑鐨勩?/p>
涓涓粍緇囦篃鍙兘鏈夎嚜宸辯殑璇佷功棰佸彂鏈烘瀯錛屽挨鍏舵槸褰撹緗祻瑙堝櫒鏉ヨ闂粬浠嚜宸辯殑緗戠珯鏃訛紙濡傦紝榪愯鍦ㄥ叕鍙告垨瀛︽牎灞鍩熺綉 鍐呯殑緗戠珯錛夈備粬浠彲浠ュ鏄撳湴灝嗚嚜宸辯殑璇佷功鍔犲叆嫻忚鍣ㄤ腑銆?/p>
姝ゅ錛岃繕瀛樺湪涓涓漢鍒頒漢鐨勮瘉涔﹂鍙戞満鏋勶紝CAcert 銆?/p>
浣滀負璁塊棶鎺у埗 [緙栬緫 ] HTTPS涔熷彲琚敤浣滃鎴風璁よ瘉 鎵嬫鏉ュ皢涓浜涗俊鎭檺鍒剁粰鍚堟硶鐨勭敤鎴楓傝鍋氬埌榪欐牱錛岀鐞嗗憳閫氬父浼氱粰姣忎釜鐢ㄦ埛鍒涘緩璇佷功錛堥氬父鍖呭惈浜嗙敤鎴風殑鍚嶅瓧鍜岀數瀛愰偖浠跺湴鍧錛夈傝繖涓瘉涔︿細琚斁緗湪嫻忚鍣ㄤ腑錛屽茍鍦ㄦ瘡嬈¤繛鎺ュ埌鏈嶅姟鍣ㄦ椂鐢辨湇鍔″櫒媯鏌ャ?/p>
褰撶閽ュけ瀵嗘椂 [緙栬緫 ] 灞闄?/span>[緙栬緫 ] TLS鏈変袱縐嶇瓥鐣ワ細綆鍗曠瓥鐣ュ拰浜や簰絳栫暐銆備氦浜掔瓥鐣ユ洿涓哄畨鍏紝浣嗛渶瑕佺敤鎴峰湪浠栦滑鐨勬祻瑙堝櫒涓畨瑁呬釜浜虹殑璇佷功 鏉ヨ繘琛?a title="璁よ瘉" style="text-decoration: none; color: #0b0080; background-image: none; background-position: initial initial; background-repeat: initial initial;">璁よ瘉銆?/p>
涓嶇浣跨敤浜嗗摢縐嶇瓥鐣ワ紝鍗忚鎵鑳芥彁渚涚殑淇濇姢鎬誨己鐑堝湴渚濊禆浜庢祻瑙堝櫒鐨?a title="瀹炵幇錛堥〉闈笉瀛樺湪錛? style="text-decoration: none; color: #a55858; background-image: none; background-position: initial initial; background-repeat: initial initial;">瀹炵幇鍜屾湇鍔″櫒杞歡鎵鏀寔鐨?a title="鍔犲瘑綆楁硶錛堥〉闈笉瀛樺湪錛? style="text-decoration: none; color: #a55858; background-image: none; background-position: initial initial; background-repeat: initial initial;">鍔犲瘑綆楁硶銆?/p>
HTTPS騫朵笉鑳介槻姝㈢珯鐐硅緗戠粶铚樿洓 鎶撳彇銆傚湪鏌愪簺鎯呭艦涓紝琚姞瀵嗚祫婧愮殑URL 鍙粎閫氳繃鎴幏璇鋒眰鍜屽搷搴旂殑澶у皬鎺ㄥ緱錛?sup id="cite_ref-11" style="unicode-bidi: -webkit-isolate;">[11] 榪欏氨鍙嬌鏀誨嚮鑰呭悓鏃剁煡閬撴槑鏂囷紙鍏紑鐨勯潤鎬佸唴瀹癸級鍜屽瘑鏂囷紙琚姞瀵嗚繃鐨勬槑鏂囷級錛屼粠鑰屼嬌閫夋嫨瀵嗘枃鏀誨嚮 鎴愪負鍙兘銆?/p>
鍥犱負SSL 鍦℉TTP涔嬩笅宸ヤ綔錛屽涓婂眰鍗忚涓鏃犳墍鐭ワ紝鎵浠SL鏈嶅姟鍣ㄥ彧鑳戒負涓涓狪P鍦板潃/绔彛緇勫悎鎻愪緵涓涓瘉涔︺?sup id="cite_ref-12" style="unicode-bidi: -webkit-isolate;">[12] 榪欏氨鎰忓懗鐫鍦ㄥぇ閮ㄥ垎鎯呭喌涓嬶紝浣跨敤HTTPS鐨勫悓鏃舵敮鎸?a title="铏氭嫙涓繪満" style="text-decoration: none; color: #0b0080; background-image: none; background-position: initial initial; background-repeat: initial initial;">鍩轟簬鍚嶅瓧鐨勮櫄鎷熶富鏈?/a>鏄笉寰堢幇瀹炵殑銆備竴縐嶅彨鍩熷悕鎸囩ず 錛圫NI錛夌殑鏂規閫氳繃鍦ㄥ姞瀵嗚繛鎺ュ垱寤哄墠鍚戞湇鍔″櫒鍙戦佷富鏈哄悕瑙e喅浜嗚繖涓闂銆?a title="Firefox" style="text-decoration: none; color: #0b0080; background-image: none; background-position: initial initial; background-repeat: initial initial;">Firefox 2銆?a title="Opera" style="text-decoration: none; color: #0b0080; background-image: none; background-position: initial initial; background-repeat: initial initial;">Opera8鍜岃繍琛屽湪Windows Vista 鐨?a title="Internet Explorer" style="text-decoration: none; color: #0b0080; background-image: none;">Internet Explorer 7閮藉姞鍏ヤ簡瀵筍NI鐨勬敮鎸併?sup id="cite_ref-13" style="unicode-bidi: -webkit-isolate;">[13] [14] [15]
鍥犱負HTTPS榪炴帴鎵鐢ㄧ殑鍏挜 浠ユ槑鏂囦紶杈擄紝鍥犳涓浗澶ч檰鐨?a title="闃茬伀闀垮煄" style="text-decoration: none; color: #0b0080; background-image: none; background-position: initial initial; background-repeat: initial initial;">闃茬伀闀垮煄鍙互瀵圭壒瀹氱綉绔欐寜鐓у尮閰嶇殑榛戝悕鍗曡瘉涔︼紝閫氳繃浼鎴愬鏂瑰悜榪炴帴涓ょ鐨勮綆楁満鍙戦丷ST鍖呭共鎵頒袱鍙拌綆楁満闂存甯哥殑TCP 閫氳錛屼互鎵撴柇涓庣壒瀹欼P鍦板潃涔嬮棿鐨?43绔彛鎻℃墜錛屾垨鑰呯洿鎺ヤ嬌鎻℃墜鐨勬暟鎹寘涓㈠純錛屽鑷存彙鎵嬪け璐ワ紝浠庤屽鑷碩LS榪炴帴澶辮觸銆?sup id="cite_ref-16" style="unicode-bidi: -webkit-isolate;">[16] 榪欎篃鏄竴縐嶄簰鑱旂綉淇℃伅瀹℃煡鍜屽睆钄界殑鎶鏈墜孌點?/p>
濡傛灉Mac OS X 涓殑瀹墮暱鎺у埗琚惎鐢紝閭d箞HTTPS绔欑偣蹇呴』鏄懼紡鍦板湪“鎬繪槸鍏佽”鍒楄〃涓垪鍑恒?sup id="cite_ref-17" style="unicode-bidi: -webkit-isolate;">[17]
]]> java 浼犻?/title> http://www.tkk7.com/athrunwang/archive/2014/02/11/409739.htmlAthrunWang AthrunWang Tue, 11 Feb 2014 09:33:00 GMT http://www.tkk7.com/athrunwang/archive/2014/02/11/409739.html http://www.tkk7.com/athrunwang/comments/409739.html http://www.tkk7.com/athrunwang/archive/2014/02/11/409739.html#Feedback 0 http://www.tkk7.com/athrunwang/comments/commentRss/409739.html http://www.tkk7.com/athrunwang/services/trackbacks/409739.html 寮曠敤浼犻?pss by reference)錛歴tack錛堟爤錛夊拰heap錛堝爢錛屽璞″疄渚嬶紙object instance錛夛級銆?br /> stream鍦ㄥ紩鐢ㄤ紶閫掔殑榪囩▼涓紝涓嶈闅忔剰鍏抽棴錛屼竴鍏抽兘鍏籌紒 ]]> double and float http://www.tkk7.com/athrunwang/archive/2014/02/11/409697.htmlAthrunWang AthrunWang Tue, 11 Feb 2014 01:34:00 GMT http://www.tkk7.com/athrunwang/archive/2014/02/11/409697.html http://www.tkk7.com/athrunwang/comments/409697.html http://www.tkk7.com/athrunwang/archive/2014/02/11/409697.html#Feedback 0 http://www.tkk7.com/athrunwang/comments/commentRss/409697.html http://www.tkk7.com/athrunwang/services/trackbacks/409697.html double錛氬弻綺懼害嫻偣鏁幫紝64浣嶏紙bits錛?瀛楄妭錛?/span>瀹冨彲浠ヨ〃紺哄崄榪涘埗鐨?5鎴?6浣嶆湁鏁堟暟瀛椼?/span>float錛氬崟綺懼害嫻偣鏁幫紝32浣嶏紙bits錛?瀛楄妭銆?/span>嫻偣錛氭誕鍔ㄥ皬鏁扮偣銆?/span> ]]> 淇敼java瀹夊叏璁劇疆 http://www.tkk7.com/athrunwang/archive/2014/02/11/409694.htmlAthrunWang AthrunWang Tue, 11 Feb 2014 01:11:00 GMT http://www.tkk7.com/athrunwang/archive/2014/02/11/409694.html http://www.tkk7.com/athrunwang/comments/409694.html http://www.tkk7.com/athrunwang/archive/2014/02/11/409694.html#Feedback 0 http://www.tkk7.com/athrunwang/comments/commentRss/409694.html http://www.tkk7.com/athrunwang/services/trackbacks/409694.html JAVA瀹夊叏璁劇疆淇敼鏂瑰紡錛歸indows鎺у埗闈㈡澘 -> 紼嬪簭 -> Java -> 瀹夊叏銆?img src ="http://www.tkk7.com/athrunwang/aggbug/409694.html" width = "1" height = "1" /> ]]>Spring瀹瑰櫒鍚姩鍚庤嚜鍔ㄦ墽琛孲ervlet榪涜棰勫鐞?/title> http://www.tkk7.com/athrunwang/archive/2013/09/13/404042.htmlAthrunWang AthrunWang Fri, 13 Sep 2013 05:26:00 GMT http://www.tkk7.com/athrunwang/archive/2013/09/13/404042.html http://www.tkk7.com/athrunwang/comments/404042.html http://www.tkk7.com/athrunwang/archive/2013/09/13/404042.html#Feedback 0 http://www.tkk7.com/athrunwang/comments/commentRss/404042.html http://www.tkk7.com/athrunwang/services/trackbacks/404042.html 閫氬父鍋氭硶鏄畾涔変竴涓猄ervlet錛屽茍鍦╳eb.xml涓厤緗甋ervlet鐨勫惎鍔ㄩ『搴?lt;load-on-startup>鐨勫煎湪DispatcherServlet涔嬪悗銆備絾榪欐牱鍋氱殑緙虹偣鏄湪Servlet涓棤娉曚嬌鐢⊿pring鐨勪緷璧栨敞鍏ュ姛鑳斤紝鍙兘浣跨敤WebApplicationContext鐨刧etBean()鏂規硶鑾峰彇bean銆?/p>鎵懼埌鐨勮В鍐沖姙娉曞涓嬶細
1銆佽嚜瀹氫箟涓涓敤浜庝唬鐞嗗惎鍔⊿ervlet鐨勭被DelegatingServletProxy錛?div style="display: inline-block;">
package com.test.common.util;
import java.io.IOException;
import javax.servlet.GenericServlet;
import javax.servlet.Servlet;
import javax.servlet.ServletException;
import javax.servlet.ServletRequest;
import javax.servlet.ServletResponse;
import org.springframework.web.context.WebApplicationContext;
import org.springframework.web.context.support.WebApplicationContextUtils;
public class DelegatingServletProxy extends GenericServlet {
private String targetBean;
private Servlet proxy;
@Override
public void service(ServletRequest arg0, ServletResponse arg1)
throws ServletException, IOException {
proxy.service(arg0, arg1);
}
@Override
public void init() throws ServletException {
this.targetBean = getServletName();
getServletBean();
proxy.init(getServletConfig());
}
private void getServletBean() {
WebApplicationContext wac = WebApplicationContextUtils.getRequiredWebApplicationContext(getServletContext());
this.proxy = (Servlet)wac.getBean(targetBean);
}
}
2銆佺紪鍐欏惎鍔⊿ervlet錛?br />
package com.test.common.util;
import java.io.IOException;
import java.util.List;
import javax.annotation.Resource;
import javax.servlet.ServletConfig;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.springframework.stereotype.Component;
import cn.edu.swu.oa.agency.model.Department;
import cn.edu.swu.oa.agency.model.Group;
import cn.edu.swu.oa.agency.service.DepService;
import cn.edu.swu.oa.agency.service.GroService;
import cn.edu.swu.oa.common.model.SysCode;
import cn.edu.swu.oa.safe.model.User;
import cn.edu.swu.oa.safe.service.UserService;
/**
*
*
* 綾誨瀷瑙i噴錛歋pring鍚姩瀹屾垚鍚庢墽琛屽垵濮嬪寲鎿嶄綔
* 綾誨瀷琛ㄨ堪錛氶璇繪煇浜涘疄浣撶殑Key-Value錛屾斁鍏ap錛屾柟渚夸互鍚庝嬌鐢?/div>
* @author
* @version
*
*/
@Component("initialServlet")
public class InitialServlet extends HttpServlet {
private static final long serialVersionUID = 1L;
@Resource
private UserService userService;
@Resource
private DepService depService;
@Resource
private GroService groService;
/**
* @see HttpServlet#HttpServlet()
*/
public InitialServlet() {
super();
}
/**
* @see HttpServlet#doGet(HttpServletRequest request, HttpServletResponse response)
*/
protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
}
/**
* @see HttpServlet#doPost(HttpServletRequest request, HttpServletResponse response)
*/
protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
// TODO Auto-generated method stub
}
@Override
public void init(ServletConfig config) throws ServletException {
//鍒濆鍖杄serMap
List<User> users = userService.getUsers();
for(int i = 0; i < users.size(); i++) {
User user = users.get(i);
Integer userId = user.getUserId();
String userName = user.getUserName();
SysCode.userMap.put(userId, userName);
}
//鍒濆鍖杁epMap
List<Department> deps = depService.getAllDeps();
for(int i = 0; i < deps.size(); i++) {
Department dep = deps.get(i);
Integer depId = dep.getDepId();
String depName = dep.getDepName();
SysCode.depMap.put(depId, depName);
}
//鍒濆鍖杇roMap
List<Group> gros = groService.getAllGroups();
for(int i = 0; i < gros.size(); i++) {
Group gro = gros.get(i);
Integer groId = gro.getGroId();
String groName = gro.getGroName();
SysCode.groMap.put(groId, groName);
}
}
}
3銆佸湪web.xml鏂囦歡涓厤緗甀nitialServlet 錛?br />
<servlet>
<description></description>
<display-name>InitialServlet</display-name>
<servlet-name>initialServlet</servlet-name>
<servlet-class>
com.test.common.util.DelegatingServletProxy
</servlet-class>
<load-on-startup>2</load-on-startup>
</servlet>
<servlet-mapping>
<servlet-name>initialServlet</servlet-name>
<url-pattern>/InitialServlet</url-pattern>
</servlet-mapping> 瀹屾垚榪欎簺鎿嶄綔鍚庯紝灝卞彲浠ュ湪Spring瀹瑰櫒鍚姩鍚庢墽琛岃嚜瀹氫箟鐨凷ervlet錛屽茍涓斿湪鑷畾涔塖ervlet涓彲浠ヤ嬌鐢⊿pring Annotation鐨勮嚜鍔ㄦ敞鍏ュ姛鑳姐?<script></script>
]]>
java 瀹氭椂鍣ㄧ敤娉?/title> http://www.tkk7.com/athrunwang/archive/2013/09/13/404040.htmlAthrunWang AthrunWang Fri, 13 Sep 2013 05:24:00 GMT http://www.tkk7.com/athrunwang/archive/2013/09/13/404040.html http://www.tkk7.com/athrunwang/comments/404040.html http://www.tkk7.com/athrunwang/archive/2013/09/13/404040.html#Feedback 0 http://www.tkk7.com/athrunwang/comments/commentRss/404040.html http://www.tkk7.com/athrunwang/services/trackbacks/404040.html package com.athrunwang.test;
import java.util.Calendar;
import java.util.Date;
import java.util.Timer;
import java.util.TimerTask;
public class TestTimer {
static int count = 0;
public static void showTimer() {
TimerTask task = new TimerTask() {
@Override
public void run() {
++count;
System.out.println("鏃墮棿=" + new Date() + " 鎵ц浜? + count + "嬈?); // 1嬈?/div>
}
};
// 璁劇疆鎵ц鏃墮棿
Calendar calendar = Calendar.getInstance();
int year = calendar.get(Calendar.YEAR);
int month = calendar.get(Calendar.MONTH);
int day = calendar.get(Calendar.DAY_OF_MONTH);// 姣忓ぉ
// 瀹氬埗姣忓ぉ鐨?1:09:00鎵ц錛?/div>
calendar.set(year, month, day, 9, 54, 00);
Date date = calendar.getTime();
Timer timer = new Timer();
System.out.println(date);
int period = 2 * 1000;
// 姣忓ぉ鐨刣ate鏃跺埢鎵цtask錛屾瘡闅?縐掗噸澶嶆墽琛?/div>
timer.schedule(task, date, period);