取消板件自动写入逻辑修改

This commit is contained in:
lym
2025-02-22 14:14:20 +08:00
parent f5d512cd8e
commit ea1f664320
3 changed files with 6 additions and 3 deletions
@@ -227,7 +227,7 @@ public class GlobalExceptionHandler {
// 文件格式错误处理
if (rootCause instanceof IOException) {
// 使用正则提取数值
Pattern pattern = Pattern.compile("Numeric value \\((\\d+)\\) out of range");
Pattern pattern = Pattern.compile("Numeric value \\(([-+]?\\d*\\.?\\d+(?:[eE][-+]?\\d+)?)\\) out of range");
Matcher matcher = pattern.matcher(rootCause.getMessage());
if (matcher.find()) {
String invalidValue = matcher.group(1);