資料無法儲存問題
#113
Replies: 1 comment
-
@p-yuu 感謝你的提問,我來解釋一下為麼 docker 每次重啟後它會消失,如上圖所示由於本專案採用 Spring Boot 開發, 預設的資料庫使用 H2 , 為方便讓使用第一次啟動時能快速的使用, 所以選擇 memory 模式, 它的特性是只會留在 memory 中, 每次都會重建 db schema與載入 init SQL。 若您希望第一次建立後資料可以持久化留存有幾個點要注意:
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment


Uh oh!
There was an error while loading. Please reload this page.
-
您好,
我想請教一個問題:我使用 Docker 將 DigiRunner 部署在電腦上使用,但每次關閉 Docker 並重新啟動後,先前在 DigiRunner 中所做的操作都會消失。請問該如何解決這個問題,才能讓我在製作專案時不必每次都重新建立一次呢?
Beta Was this translation helpful? Give feedback.
All reactions