mirror of
http://192.168.1.205:9980/cf_devdept2/cf_imes_server.git
synced 2026-08-12 21:02:08 +08:00
取消板件自动写入逻辑修改
This commit is contained in:
+1
-1
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user