1.修改Eclipse中文本文件的默认编码:windows->Preferences->general->Workspace->Text file encoding设置为UTF-8
![](https://img.haomeiwen.com/i5438403/93e564f1ed401838.png)
2.修改JAVA源文件的默认编码:windows->Preferences->general->Content Types->右侧Context Types树,点开Text,选择Java Source File,在下面的Default encoding输入框中输入UTF-8,点Update
![](https://img.haomeiwen.com/i5438403/3b649cdabcd61a05.png)
本文标题:解决maven下载的jar文件乱码问题
本文链接:https://www.haomeiwen.com/subject/owtonhtx.html
网友评论