diff --git a/designer-realize/src/main/java/com/fanruan/boot/env/DesignPluginComponent.java b/designer-realize/src/main/java/com/fanruan/boot/env/DesignPluginComponent.java index 3e232bfaab..dbb9a9c39c 100644 --- a/designer-realize/src/main/java/com/fanruan/boot/env/DesignPluginComponent.java +++ b/designer-realize/src/main/java/com/fanruan/boot/env/DesignPluginComponent.java @@ -46,7 +46,7 @@ import java.util.function.Supplier; * Created on 2024/5/17 */ @FineComponent(name = "design_plugin") -@DependsOn(dependencies = {"design_env_prepare"}) +@DependsOn(dependencies = {"design_version"}) public class DesignPluginComponent extends PluginComponent { diff --git a/designer-realize/src/main/java/com/fanruan/boot/env/DesignVersionComponent.java b/designer-realize/src/main/java/com/fanruan/boot/env/DesignVersionComponent.java new file mode 100644 index 0000000000..5ca9cb6808 --- /dev/null +++ b/designer-realize/src/main/java/com/fanruan/boot/env/DesignVersionComponent.java @@ -0,0 +1,31 @@ +package com.fanruan.boot.env; + +import com.fanruan.boot.VersionComponent; +import com.fanruan.carina.annotions.DependsOn; +import com.fanruan.carina.annotions.FineComponent; +import com.fanruan.carina.annotions.Start; +import com.fanruan.version.ServiceVersion; +import com.fanruan.version.VersionCenter; +import com.fanruan.version.VersionConstants; + +/** + * 设计器版本模块 + * + * @author Leo.Qin + * @since 11.0 + * Created on 2024/11/11 + */ +@FineComponent(name = "design_version") +@DependsOn(dependencies = {"design_env_prepare"}) +public class DesignVersionComponent extends VersionComponent { + + @Start + @Override + public void start() { + super.start(); + ServiceVersion serviceVersion = VersionCenter.getInstance().getServiceVersion(); + serviceVersion.setName(VersionConstants.SERVICE_NAME_FR); + VersionCenter.getInstance().register(serviceVersion); + } + +}