I\'m new to Spring and started using the Sprint Tool Suite (eclipse) and see this error in a java file in my maven project: \"Content is not allowed in prolog\". This preve
In my case this error occured while I was renamed main class (class annotated with @SpringBootApplication) of springboot application. I don't mean this will always happen but I accidently got this error after rename this class file in STS 3.8.4.
To resolve this issue, I closed the IDE, navigate to project folder and delete the .springBeans file. After reopened IDE, this error was gone and my IDE no longer complains about this.