转载

解决java.lang.IllegalStateException: Unable to find a @SpringBootConfiguration, you need to use

springboot测试时出现:java.lang.IllegalStateException: Unable to find a @SpringBootConfiguration, you need to use @ContextConfiguration or @SpringBootTest(classes=...) with your test
file
是因为我没在根目录下写一个springboot的启动类:写个App.class,再在test测试类跑起来就不会出现这个错误了
file

正文到此结束
Loading...