Windows 10 home(x64)にて
Eclipse photonを使用しております。
Spring bootを使用して開発環境を整えようとしておりますが、
Maven installを実行した結果、以下のエラーが発生しました。
[ERROR] Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 1.424 s <<< FAILURE! - in com.example.demo.ConsulsysApplicationTests
[ERROR] com.example.demo.ConsulsysApplicationTests Time elapsed: 1.42 s <<< ERROR!
java.lang.IllegalStateException: Unable to find a @SpringBootConfiguration, you need to use @ContextConfiguration or @SpringBootTest(classes=...) with your test
[INFO]
[INFO] Results:
[INFO]
[ERROR] Errors:
[ERROR] ConsulsysApplicationTests » IllegalState Unable to find a @SpringBootConfigura...
[INFO]
[ERROR] Tests run: 1, Failures: 0, Errors: 1, Skipped: 0
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 17.996 s
[INFO] Finished at: 2020-02-16T15:20:05+09:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.22.2:test (default-test) on project consulsys: There are test failures.
[ERROR]
[ERROR] Please refer to C:\pleiades\consulsys\consulsys\target\surefire-reports for the individual test results.
[ERROR] Please refer to dump files (if any exist) [date].dump, [date]-jvmRun[N].dump and [date].dumpstream.
[ERROR] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
最初はmavenの環境変数設定だと思い、そちらを設定したのですが、
結局治りませんでした。
原因がわかるかたいらっしゃいますでしょうか?
あなたの回答
tips
プレビュー