当前位置:网站首页>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
- leetcode refers to Offer 10- II. Frog jumping steps
- Does flink cdc support synchronization from oracle dg library?
- express hot-reload
- flink cdc支持从oracle dg库同步吗
- Example of Noise Calculation for Amplifier OPA855
- leetcode 剑指 Offer 10- II. 青蛙跳台阶问题
- How to replace colors in ps, self-study ps software photoshop2022, replace one color of a picture in ps with another color
- Excuse me if you want to write data in mysql, with flink - connector - JDBC directly is ok, but I'm in the f
- Is there a problem with writing this?How to synchronize data in sql-client
猜你喜欢
Xcode10的打包方式distribute app和启动项目报错以及Xcode 打包本地ipa包安装到手机上
画法几何及工程制图考试卷A卷
Dry goods!Generative Model Evaluation and Diagnosis
Hundred lines of code launch red hearts, why programmers lose their girlfriends!
express hot-reload
XCODE12 在使用模拟器(SIMULATOR)时编译错误的解决方法
js 图形操作一(兼容pc、移动端实现 draggable属性 拖放效果)
轩辕实验室丨欧盟EVITA项目预研 第一章(四)
使用 External Secrets Operator 安全管理 Kubernetes Secrets
工程制图直线投影练习
随机推荐
新白娘子传奇系列
Luogu P3368: 【模板】树状数组 2
手把手教你纯c实现异常捕获try-catch组件
DPU — 功能特性 — 管理系统的硬件卸载
2022.8.3
sql server中 两表查询 平均数 分组
thinkPHP5 实现点击量(数据自增/自减)
Seata source code analysis: initialization process of TM RM client
openpyxl操作Excel文件
链表中的数字相加----链表专题
eKuiper Newsletter 2022-07|v1.6.0:Flow 编排 + 更好用的 SQL,轻松表达业务逻辑
sphinx matches the specified field
leetcode refers to Offer 10- II. Frog jumping steps
512-color chromatogram
让程序员崩溃的N个瞬间(非程序员误入)
欧盟 | 地平线 2020 ENSEMBLE:D2.13 SOTIF Safety Concept(上)
请问如果想往mysql里面写数据,直接用flink-connector-jdbc就可以吧,可是我在f
欧盟 | 地平线 2020 ENSEMBLE:D2.13 SOTIF Safety Concept(下)
Is there a problem with writing this?How to synchronize data in sql-client
Comprehensively explain what is the essential difference between GET and POST requests?Turns out I always misunderstood