JUnit4 test error in spring environment

java.lang.IllegalStateException: Could not load TestContextBootstrapper [null]. Specify @BootstrapWith's 'value' attribute or make the default bootstrapper class available.  
    at org.springframework.test.context.BootstrapUtils.resolveTestContextBootstrapper(BootstrapUtils.java:160)  
    at org.springframework.test.context.TestContextManager.<init>(TestContextManager.java:105)  
    at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.createTestContextManager(SpringJUnit4ClassRunner.java:154)  
 
 

This error occurs because the version of spring-webmvc is inconsistent with the version introduced by spring-test,

Causes an error when testing with sprint-test

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325355765&siteId=291194637