穿云 3 mesiacov pred
rodič
commit
ddc06e283c

+ 1 - 1
dbsyncer-connector/dbsyncer-connector-oracle/src/main/java/org/dbsyncer/connector/oracle/cdc/OracleListener.java

@@ -76,7 +76,7 @@ public class OracleListener extends AbstractDatabaseListener {
             });
             logMiner.start();
         } catch (Exception e) {
-            logger.error("启动失败:{}", e.getMessage());
+            logger.error("启动失败:{}", e.getMessage(), e);
             throw new OracleException(e);
         }
     }

+ 1 - 0
dbsyncer-web/src/main/java/org/dbsyncer/web/Application.java

@@ -42,6 +42,7 @@ public class Application {
             properties.put("info.app.build.time", buildTime);
         }
         properties.put("info.app.version", version);
+        properties.put("info.app.current", Version.CURRENT);
         properties.put("info.app.start.time", LocalDateTime.now().format(DateFormatUtil.CHINESE_STANDARD_TIME_FORMATTER));
         properties.put("spring.thymeleaf.prefix", "classpath:/public/");
         properties.put("management.endpoints.web.base-path", "/app");

+ 33 - 0
dbsyncer-web/src/main/java/org/dbsyncer/web/Version.java

@@ -0,0 +1,33 @@
+/**
+ * DBSyncer Copyright 2020-2025 All Rights Reserved.
+ */
+package org.dbsyncer.web;
+
+/**
+ * @Author 穿云
+ * @Version 1.0.0
+ * @Date 2025-02-09 15:06
+ */
+public class Version {
+
+    /**
+     * 大版本-小版本-编号-年-月-日-序号
+     */
+    private final long version;
+
+    public static final Version V_2_0_5 = new Version(20_00_05_2025_00_00_00L);
+    public static final Version CURRENT = new Version(20_00_05_2025_02_09_00L);
+
+    public Version(long version) {
+        this.version = version;
+    }
+
+    public long getVersion() {
+        return version;
+    }
+
+    @Override
+    public String toString() {
+        return String.valueOf(version);
+    }
+}