One: The problem occurs when you start the Spring boot project in eclipse:
Springboot Error: The main class could not be found or could not be loaded
Workaround:
1, through the cmd command line, into the project directory, mvn clean install to compile
After the project is install, select the project on Eclipse and press F5 to refresh the project. Run again to solve the problem.
2, select the project on Eclipse
Click the Clean cleanup project and then run the problem resolution.
3, if the main class cannot be loaded if it is running or occurs,
(a) If there is a problem with the project code,
(b) can enter CMD, CD into the project directory
Execute command:
MVN Clean Compile
MVN Install
MVN Spring-boot:run
The above three commands are compiled and started.
Note: Use the cmd command to start the JDK environment to configure the MAVEN environment.
The Eclipse startup and CMD commands start the normal interface separately as:
(Eclipse startup will not be able to read article one). Eclipse Startup and cmd command start to separate or port conflicts, modify the boot port inside the source has.
Spring Boot Error: The main class could not be found or could not be loaded