当前位置:网站首页>The jar package embedded with SQLite database is deployed by changing directories on the same machine, and the newly added database records are gone
The jar package embedded with SQLite database is deployed by changing directories on the same machine, and the newly added database records are gone
2022-07-01 09:00:00 【CSDN Q & A】
The phenomenon and background of the problem
I have a jar Embedded in the bag sqlite database .db The files are also jar Inside the package , Now there's a problem : I put jar Put the bag in A Add a new record after directory deployment . Then add this jar Packet from A Move the directory to the same machine B Directory deployment , The new record is gone . Logically speaking db The file in jar Inside the package , The new record should still be there . If not saved to jar The inside of the bag db file , Where will it be saved ? Use on the machine everything The tool did not search for a with the same name db file .jar There is only one original in the bag db file
Problem related code , Do not paste screenshots
To configure :( yes springboot It's embedded sqlite)
spring: datasource: url: jdbc:sqlite::resource:db/test.db driver-class-name: org.sqlite.JDBC username: password:What I want to achieve
I hope it's time to jar Replace directory deployment , The record still exists
Take the answer :
Reason found .sqlite Don't modify jar The inside of the bag db file , Will directly generate a temporary db file , Save in C:\Users\ user name \AppData\Local\Temp Inside
边栏推荐
- 如何解决固定资产管理和盘点的难题?
- Pain points and solutions of fixed assets management of group companies
- The fixed assets management system enables enterprises to dynamically master assets
- 安装Oracle EE
- Shell script - special variables: shell $, $*, [email protected], $$$
- JCL and slf4j
- Yidian Yidong helps enterprises to efficiently manage equipment and improve equipment utilization
- Shell脚本-字符串
- Shell脚本-case in 和正则表达式
- Full mark standard for sports items in the high school entrance examination (Shenzhen, Anhui and Hubei)
猜你喜欢

C语言指针的进阶(下)

Nacos - gestion de la configuration

How to manage fixed assets well? Easy to point and move to provide intelligent solutions

Nacos - Configuration Management
![[MFC development (16)] tree control](/img/b9/1de4330c0bd186cfe062b02478c058.png)
[MFC development (16)] tree control

集团公司固定资产管理的痛点和解决方案

Glitch Free时钟切换技术

如何一站式高效管理固定资产?

Advanced level of C language pointer (Part 1)

Guidelines and principles of did
随机推荐
Redis -- lattice connects to redis cluster
Redis source code learning (29), compressed list learning, ziplist C (II)
pcl_ Viewer command
Nacos - gestion de la configuration
Embedded Engineer Interview Question 3 Hardware
Graduation season, I want to tell you
Promise异步编程
pcl_viewer命令
ARM v7的体系结构A、R、M区别,分别应用在什么领域?
Brief introduction to AES
如何解决固定资产管理和盘点的难题?
Performance improvement 2-3 times! The second generation Kunlun core server of Baidu AI Cloud was launched
又到年中,固定资产管理该何去何从?
Shell脚本-read命令:读取从键盘输入的数据
中考体育项目满分标准(深圳、安徽、湖北)
3. Detailed explanation of Modbus communication protocol
Programming with C language: calculate with formula: e ≈ 1+1/1+ 1/2! …+ 1/n!, Accuracy is 10-6
Shell script - special variables: shell $, $*, [email protected], $$$
Shell script - array definition and getting array elements
Computer tips