Recently, two novices in the group asked questions about Fail to load application context when running the test...
None of the methods found by Baidu could be
solved . I helped them to look at one of the problems: Depend on import error, he originally wanted to import the launcher Imported the spring-boot-test
solution: the correct import of the starter depends on spring-boot-starter-test and the
other is: SpringbootApplication does not start normally (error), junit cannot be loaded normally
Have you encountered similar pits? Welcome to make up comments