![](/img/trans.png)
[英]Why Am I Getting a “Database may be already in use: null” Error for H2 Database That I Just Implemented?
[英]Having issues in H2 Database may be already in use
我正在嘗試使用H2database和Spring-boot運行應用程序。 每當我在獨立的tomcat中重新部署我的應用程序時。 最終說法和構建失敗:
Database may be already in use: "/root/NCRWalmart/walmart-pos-wits-common-configuration/src/main/wits_orch.mv.db". Possible solutions: close all other connection(s); use the server mode [90020-182]
我通過H2databse的官方網站嘗試了不同的解決方案,但沒有什么對我有用。 我嘗試在我的屬性文件中使用以下URL:
spring.datasource.url=jdbc:h2:file:${spring.config.location}/wits_orch;DB_CLOSE_ON_EXIT=true;FILE_LOCK=SOCKET;
任何方案?
您可能有另一個進程同時運行相同的H2實例。 嘗試類似ps -ef | grep h2
東西 ps -ef | grep h2
,它將顯示使用h2 * .jar的所有進程
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.