Problem Description:
The overall development environment of the development tool MyEclipse, the encoding format is generally set to UTF-8, and the error occurs when packaging the web project: Illegal character: '\ufeff'.
solution:
Use notePad++ to open the page with the error,
Select the format of the title bar - modify the encoding in UTF-8 format to encoding in UTF-8 without BOM format.
At this point, the problem is solved.
Problem: need to be class interface or enum }
Solution; You see this error because your program boundaries (curly braces {}) are not matched, so the compiler cannot confirm the location of your public class definition, so it is recommended that you define a class or an enum.