当前位置:网站首页>IDEA执行Test操作导致数据插入时出现了重复数据
IDEA执行Test操作导致数据插入时出现了重复数据
2022-08-05 09:15:00 【Minaldo7】
我遇到的问题及解决方法:
解决方案:打开IDEA右上角的File——>Settings搜索maven打开maven目录下的Runner 找到Delegate IDE build/run actions to Maven选项,将前面的勾取消掉!!!
勾取消掉!!!
勾取消掉!!!
勾取消掉!!!
勾取消掉!!!
Delegate IDE build/run actions to Maven:把IDE中构建和运行操作交给Maven,在不勾选的情况下对项目的构建和运行是交给IDE的,这样就可能导致构建和运行时无法找到maven仓库中的相关jar包,勾选后在对项目进行构建和运行等操作直接交给了maven。但是这样会导致进行数据库数据插入时出现了重复数据,实测时发现,maven与IDEA都运行了项目,导致出现了重复数据。
注:以上的解释只是本人自己的理解
边栏推荐
猜你喜欢

【LeetCode】623. Add a row to the binary tree

C语言-数组

Why do I recommend using smart async?

Example of Noise Calculation for Amplifier OPA855

工程制图知识点

如何实现按键的短按、长按检测?

使用 External Secrets Operator 安全管理 Kubernetes Secrets

How to replace colors in ps, self-study ps software photoshop2022, replace one color of a picture in ps with another color

express hot-reload

施一公:科学需要想象,想象来自阅读
随机推荐
Comprehensively explain what is the essential difference between GET and POST requests?Turns out I always misunderstood
2022/8/4 考试总结
【Excel实战】--图表联动demo_001
sphinx匹配指定字段
tensorflow.keras cannot introduce layers
接口全周期的生产力利器Apifox
sql server中 两表查询 平均数 分组
Linux导出数据库数据到硬盘
21 Days of Deep Learning - Convolutional Neural Networks (CNN): Clothing Image Classification (Day 3)
Concurrent CAS
DPU — 功能特性 — 安全系统的硬件卸载
Is there a problem with writing this?How to synchronize data in sql-client
微信小程序请求封装
百行代码发射红心,程序员何愁命不中女朋友!
Luogu P3368: 【模板】树状数组 2
阿里云存储的数据库是怎么自动加快加载速度的呢www.cxsdkt.cn怎么设置案例?
Excuse me if you want to write data in mysql, with flink - connector - JDBC directly is ok, but I'm in the f
SQL语句查询字段内重复内容,并按重复次数加序号
openpyxl to manipulate Excel files
嵌入式实操----基于RT1170 移植memtester做SDRAM测试(二十五)