Could not load TestContextBootstrapper [null]. Specify @BootstrapWith's 'val

来源:互联网 发布:揭阳网络广告公司 编辑:程序博客网 时间:2024/06/08 10:39

        基于SpringBoot+maven搭建的后台项目,在打包的过程中报Could not load TestContextBootstrapper [null]. Specify @BootstrapWith's 'val的问题,通过参考相关资料,如:

http://blog.csdn.net/u013939884/article/details/70214093。猜测可能是Spring的版本和Spring-test的版本不一致的原因导致。基于此猜想,做了如下变化

改前:

<dependency>   <groupId>org.springframework</groupId>   <artifactId>spring-test</artifactId>
   <version>Release</version></dependency>


改后:

<dependency>   <groupId>org.springframework</groupId>   <artifactId>spring-test</artifactId></dependency>

     经过如上变化后,就可以正常打包了.




阅读全文
0 0
原创粉丝点击