Project scenario: the project cannot be started after merging code branches
project scenario: after the code branches are merged, the project cannot be started and no error message is reported
try {
ConfigurableApplicationContext context = SpringApplication.run(TestApplication.class, args);
SpringContextUtils.setContext(context);
}catch (Exception e){
e.printStackTrace();
}
Solution:
add try catch to the startup class to catch the exception information, and modify it according to the prompt font> to save the exception information