2017-08-30 29 views
0

我在运行Java SpringBoot应用程序时遇到问题,在启动过程中出现如下错误: 它有什么问题?Java错误'Unable to create initial connections of pool'在启动过程中

2017-08-30 17:20:41.790 ERROR 5048 --- [   main] o.a.tomcat.jdbc.pool.ConnectionPool  : Unable to create initial connections of pool. 

    org.h2.jdbc.JdbcSQLException: A file path that is implicitly relative to the current working directory is not allowed in the database URL "jdbc:h2:file:/tmp/app_db;DB_CLOSE_ON_EXIT=FALSE". Use an absolute path, ~/name, ./name, or the baseDir setting instead. [90011-193] 
     at org.h2.message.DbException.getJdbcSQLException(DbException.java:345) ~[h2-1.4.193.jar:1.4.193] 



    2017-08-30 17:20:41.795 WARN 5048 --- [   main] o.s.b.a.orm.jpa.DatabaseLookup   : Unable to determine jdbc url from datasource 


    org.springframework.jdbc.support.MetaDataAccessException: Could not get Connection for extracting meta data; nested exception is org.springframework.jdbc.CannotGetJdbcConnectionException: Could not get JDBC Connection; nested exception is org.h2.jdbc.JdbcSQLException: A file path that is implicitly relative to the current working directory is not allowed in the database URL "jdbc:h2:file:/tmp/app_db;DB_CLOSE_ON_EXIT=FALSE". Use an absolute path, ~/name, ./name, or the baseDir setting instead. [90011-193] 
     at org.springframework.jdbc.support.JdbcUtils.extractDatabaseMetaData(JdbcUtils.java:339) ~[spring-jdbc-4.3.7.RELEASE.jar:4.3.7.RELEASE] 
+1

你怎么不从错误消息,明白了吗?我认为它对问题给出了很好的解释。 – Andremoniy

回答

0

好了,解决了,我在Windows上工作,应用程序写在Linux上,这就是原因

相关问题