Maven download source file garbled

When downloading the source code through maven and browsing the source code directly through eclipse, it is found that the Chinese comments are garbled. In fact, the problem caused by the default encoding of eclipse. It can be solved by the following methods:

    Modify the default encoding of text files in Eclipse: windows->Preferences->general->Workspace->Text file encoding is set to UTF-8
    Modify the default encoding of JAVA source files: windows->Preferences->general ->Content Types->Context Types tree on the right, click on Text, select Java Source File, enter UTF-8 in the Default encoding input box below, and click Updat

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=327019670&siteId=291194637