Record a project startup error report
Spring boot starts the project, no abnormal information is reported, but the project cannot start, prompting:
Process finished with exit code 0
This prompt is not an error, but just means that the program has exited after normal execution.
Solution:
Add try/catch to the main method of springboot to print out the exception information for easy positioning.
@SpringBootApplication
public class RuoYiJobApplication {
public static void main(String[] args) {
try {
SpringApplication.run(RuoYiJobApplication.class, args);
} catch (Exception e) {
e.printStackTrace();
}
}
}
at last
This method is also suitable for quickly locating the problem when other programs are abnormal and cannot see the error message.
Note: After locating the error message, remember to remove the try/catch of the spring boot startup class, otherwise the startup project will report a new exception message.