社区微信群开通啦,扫一扫抢先加入社区官方微信群
社区微信群
SpringBoot启动的时候报错:
java.lang.IllegalStateException: Unable to find a @SpringBootConfiguration, you need to use @ContextConfiguration or @SpringBootTest(classes=...)
开始的时候有点纳闷为什么会报这个异常,其实我已经配置了的,后来发现启动类在某一个包下,并不是在其他业务包的外层或者根目录下:
如果觉得我的文章对您有用,请随意打赏。你的支持将鼓励我继续创作!