在使用spring-test插件执行单元测试时,需要注意的是spring-webmvc的版本应该与spring-test的版本一致,否则在执行junit测试时就会出现“Java.lang.IllegalStateException: Could not load TestContextBootstrapper [null]. Specify @BootstrapWith's 'value' attribute or make the default bootstrapper class available.”这个异常
转载于:https://my.oschina.net/u/3136594/blog/1488878