SpringBoot Unable to find a @SpringBootConfiguration, you need to use @ContextConfiguration

重点看评论:

“还有一种情况就是该测试类在Test下的包名和java下的包名不一致导致的,亲测可以解决

 

 

 

转:

 

SpringBoot Unable to find a @SpringBootConfiguration, you need to use @ContextConfiguration

posted @ 2020-07-21 09:49  戈博折刀  阅读(245)  评论(0编辑  收藏  举报