小编Dan*_*iel的帖子

Spring启动初始化错误

我用spring初始化工具生成一些工作骨架,我采用MAVEN PROJECT&JAVA&SPRING BOOT 2.0.0默认

https://start.spring.io/

当我运行mvn clean install(没有在项目中做任何更改)我得到以下错误,任何想法如何克服它?

[INFO] Running com.example.restTest.RestTestApplicationTests
12:12:46.554 [main] DEBUG org.springframework.test.context.junit4.SpringJUnit4ClassRunner - SpringJUnit4ClassRunner constructor called with [class com.example.restTest.RestTestApplicationTests]
12:12:46.561 [main] DEBUG org.springframework.test.context.BootstrapUtils - Instantiating CacheAwareContextLoaderDelegate from class [org.springframework.test.context.cache.DefaultCacheAwareContextLoaderDelegate]
12:12:46.568 [main] DEBUG org.springframework.test.context.BootstrapUtils - Instantiating BootstrapContext using constructor [public org.springframework.test.context.support.DefaultBootstrapContext(java.lang.Class,org.springframework.test.context.CacheAwareContextLoaderDelegate)]
12:12:46.588 [main] DEBUG org.springframework.test.context.BootstrapUtils - Instantiating TestContextBootstrapper for test class [com.example.restTest.RestTestApplicationTests] from class [org.springframework.boot.test.context.SpringBootTestContextBootstrapper]
[ERROR] Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.197 s <<< FAILURE! - in com.example.restTest.RestTestApplicationTests
[ERROR] initializationError(com.example.restTest.RestTestApplicationTests) …
Run Code Online (Sandbox Code Playgroud)

java spring maven spring-boot

6
推荐指数
1
解决办法
4475
查看次数

标签 统计

java ×1

maven ×1

spring ×1

spring-boot ×1