IDEA涓媡omcat鍚姩鍚� server涔辩爜锛孴omcat Catalina Log涔辩爜闂鐨勮В鍐�

濡傛灉浣犲垵鎺ヨЕIdea锛屼竴瀹氫細閬囧埌鎺у埗鍙颁贡鐮佺殑闂锛岃繖閲屽拰eclipse鏈夌偣涓嶄竴鏍凤紝鐪嬪涓嬪姙娉曪細

涔辩爜鐨勬牴鏈師鍥狅細Windows绯荤粺鐨刢md鏄疓BK缂栫爜鐨勶紝鎵�浠DEA鐨勪笅鏂筶og杈撳嚭鐨勯儴鍒嗙殑缂栫爜涔熸槸GBK鐨勶紝鐒惰�孴omcat 9.0 鐗堟湰榛樿log杈撳嚭鏄疷TF-8缂栫爜鐨勶紝閲囩敤浜嗕袱绉嶄笉鍚岀殑缂栫爜鏂瑰紡灏变細瀵艰嚧涔辩爜銆�

浜屻�佽В鍐虫柟妗�

鏂规硶1锛氫慨鏀筎omcat 鏃ュ織杈撳嚭涓篏BK缂栫爜锛堟帹鑽愪娇鐢ㄨ繖绉嶆柟寮忥級

鍏堟墦寮�tomcat鐨勫畨瑁呯洰褰�

缂栬緫 conf 鐩綍涓嬬殑 logging.properties


image.png

鐢╪otepad++ 鎵撳紑锛屾妸閲岄潰鐨刄TF-8 閫氶�氭敼鎴� GBK

[鍥剧墖涓婁紶澶辫触...(image-215df5-1644798294253)]

淇濆瓨锛岄噸鍚疶omcat锛屽嵆鍙敓鏁堛��

鏂规硶2锛氫慨鏀笽DEA涓篣TF-8缂栫爜

棣栧厛鎵撳紑 idea鐨勫畨瑁呯洰褰�

image

淇敼idea.exe.vmoptions鍜宨dea64.exe.vmoptions杩欎袱涓枃浠�

鍒嗗埆鍦ㄨ繖涓や釜鏂囦欢鐨勬渶鍚庯紝娣诲姞涓�琛� -Dfile.encoding=UTF-8

杩欎釜鍙傛暟鐨勪綔鐢ㄦ槸寮哄埗绯荤粺鏂囦欢浣跨敤UTF-8缂栫爜

image

idea.exe.vmoptions鍜宨dea64.exe.vmoptions杩欎袱涓枃浠堕兘瑕佹敼

鏀瑰畬涔嬪悗淇濆瓨锛岄噸鍚疘DEA鍗冲彲銆�

鍘熸枃 IDEA涓媡omcat9鍚姩鍚� server涔辩爜锛孴omcat Catalina Log涔辩爜闂鐨勮В鍐�

你可能感兴趣的:(IDEA涓媡omcat鍚姩鍚� server涔辩爜锛孴omcat Catalina Log涔辩爜闂鐨勮В鍐�)