springboot错误:spring boot Unable to find a @SpringBootConfiguration, you need to use @ContextConfigur

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/learner198461/article/details/84892836

spring boot Unable to find a @SpringBootConfiguration, you need to use @ContextConfiguration,这个是因为springboot项目包名

src/main/java和/src/test/java里面的包名不一样。设置为同一个名称包名就可以了。

猜你喜欢

转载自blog.csdn.net/learner198461/article/details/84892836