Java illegal character: \65279 solution

In the idea, a .java file copied under another project was introduced.
When running Maven Build, it does not pass, and an error is displayed:
Illegal characters in line 1, column x: \65279 I saw
the source file without these things .
utf-8), then delete the original file, recreate a java file with the same name, and copy the text in Notepad to the new file. Save, and then execute maven everything is OK.

Reference address: http://blog.sina.com.cn/s/blog_484d87770101qmib.html

Guess you like

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