About maven: IDEA reported Error: java: illegal character:'\ufeff' Error: java: need class, interface or enum

Problem: An error is reported after a newly imported mavenweb project is run:
Insert picture description here


Reason: The problem of encoding format, IDEA is different from ecplise and cannot be solved automatically, so manual intervention is required


Solution:
Step1. Find the class file that reported the error, right-click the blank area of ​​the code, and select Remove BOM to solve it
Insert picture description here


                                            谢谢收阅

Guess you like

Origin blog.csdn.net/Forest_2Cat/article/details/108452368