欧美bbbwbbbw肥妇,免费乱码人妻系列日韩,一级黄片

基于Intellij Idea亂碼的解決方法

 更新時間:2018年03月03日 09:45:15   作者:馬江河  
下面小編就為大家分享一篇基于Intellij Idea亂碼的解決方法,具有很好的參考價值,希望對大家有所幫助。一起跟隨小編過來看看吧

使用Intellij Idea經(jīng)常遇到的三種亂碼問題:

1、工程代碼亂碼

2、main方法運行,控制臺亂碼

3、tomcat運行,控制臺亂碼

解決方案:

1.工程代碼亂碼

Settings > Editor > File Encodings > Global Encodings & Project Encodings 設(shè)置為:UTF-8

2.main方法運行,控制臺亂碼

Settings > Build, Execution, Deployment > Compiler > Java Compiler > Additional command line parameters > 設(shè)置為:-encoding utf-8

3.tomcat運行,控制臺亂碼

 Edit Configurations > Tomcat Server > server > VM options > 設(shè)置為:-Dfile.encoding=UTF-8

idea > bin > idea.exe.vmoptions或者idea64.exe.vmoptions 配置文件末尾添加:-Dfile.encoding=UTF-8

以上這篇基于Intellij Idea亂碼的解決方法就是小編分享給大家的全部內(nèi)容了,希望能給大家一個參考,也希望大家多多支持腳本之家。

相關(guān)文章

最新評論