When I tried to start the Spring-Boot project imported from git, the following error sometimes appeared.
** Error: Main class com.example.Hoge was not found or could not be loaded **
The causes reproduced here are as follows.
This method will result in an error that cannot be found. Also, clean build or Maven update on the imported project does not solve the problem.
When I imported the project from STS by the following method, it started normally.
After this, it started normally (by habitually performing Maven update and clean build). For memorandum & reference.
Recommended Posts