いつもお世話になっています。
spring bootで、JPAとPostgresSQLを選択し、新規プロジェクトを作成します。そのプロジェクトを選択し、右クリックでMarven installを選択し実行すると、Testでエラーでこけてしまいます。
以下のようなエラーとなります。
Error starting ApplicationContext. To display the auto-configuration report enable debug logging (start with --debug) 2016-08-04 02:14:53.181 ERROR 24197 --- [ main] o.s.b.d.LoggingFailureAnalysisReporter : *************************** APPLICATION FAILED TO START *************************** Description: Cannot determine embedded database driver class for database type NONE Action: If you want an embedded database please put a supported one on the classpath. If you have database settings to be loaded from a particular profile you may need to active it (no profiles are currently active). 2016-08-04 02:14:53.197 ERROR 24197 --- [ main] o.s.test.context.TestContextManager : Caught exception while allowing TestExecutionListener [org.springframework.test.context.web.ServletTestExecutionListener@212bf671] to prepare test instance [com.sbdb.SbdbApplicationTests@48eb9836]
Tests in error: SbdbApplicationTests.contextLoads » IllegalState Failed to load ApplicationCon... Tests run: 1, Failures: 0, Errors: 1, Skipped: 0 [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 8.742 s [INFO] Finished at: 2016-08-04T02:14:53+09:00 [INFO] Final Memory: 18M/226M [INFO] ------------------------------------------------------------------------ [WARNING] The requested profile "pom.xml" could not be activated because it does not exist. [ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.18.1:test (default-test) on project sbdb: There are test failures. [ERROR] [ERROR] Please refer to /Users/kou/JavaPj/sbdb/target/surefire-reports for the individual test results. [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
エラーの理由がわからず、困っています。ご教授お願いできないでしょうか。宜しくお願い致します。
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2016/08/09 08:27