SpringApplicationConfiguration cannot be resolved in a Spring Boot test

六月ゝ 毕业季﹏ 提交于 2019-12-02 01:42:01

SpringApplicationConfiguration is deprecated in favor of SpringBootTest. It was removed in latest spring-boot versions.

You mentioned that you're using Spring Boot 1.4.2 but in fact I see dependencies to 1.5.2 and this is the reason why you can't import it.

I recommend you to use SpringBootTest whenever you want to load spring context in test.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!