Unable to find a @SpringBootConfiguration
2017-08-30 13:51
543 查看
initializationError(com.example.demo.DemoApplicationTests) Time elapsed: 0.002 sec <<< ERROR! java.lang.IllegalStateException: Unable to find a @SpringBootConfiguration, you need to use @ContextConfiguration or @SpringBootTest(classes=...) with your test at org.springframework.util.Assert.state(Assert.java:70)
由于包名不一致造成的,删除example包,或改成对应的报名即可
相关文章推荐
- spring boot Unable to find a @SpringBootConfiguration, you need to use @ContextConfiguration
- Unable to find a @SpringBootConfiguration, you need to use @ContextConfiguration or @SpringBootTest(
- spring boot Unable to find a @SpringBootConfiguration, you need to use @ContextConfiguration or @Spr
- spring boot Unable to find a @SpringBootConfiguration, you need to use @ContextConfiguration
- java.lang.IllegalStateException: Unable to find a @SpringBootConfiguration, you need to use @Context
- Unable to find a @SpringBootConfiguration, you need to use @ContextConfiguration or @SpringBootTest(classes=...) with your test java.lang.IllegalStateException
- IllegalStateException: Unable to find a @SpringBootConfiguration
- spring boot打包时Unable to find a single main class的解决方法
- spring boot maven Unable to find main class
- Spring Boot应用的Unable to find main class异常详解
- Execution default of goal org.springframework.boot:spring-boot-maven-plugin:1.5.6.RELEASE:repackage failed: Unable to find main class
- SpringBoot学习之一 Unable to find a single main class from the following candidates
- springboot:SunCertPathBuilderException: unable to find valid certification path to requested target
- Springboot repackage failed: Unable to find a single main class from the following candidates
- Maven使用package打包Spring Boot时出现:Unable to find a single main class from the following candidates的问题解决
- spring 4.3.3和hibernate 5.2.3整合 关于报“unable to load class org.hibernate.cfg.Configuration”异常
- spring-boot服务启动报: Unable to start embedded container
- 刚用SpringBoot搭建的项目,To display the auto-configuration report re-run your application with 'debug' enab
- SpringBoot - Unable to Start embedded TomCat
- Unable to load configuration. - bean - jar:file:/d:/Tomcat/webapps/ssh007/WEB-INF/lib/struts2-spring