From 3623c7ad92348e76a917ca844d76d27711d58191 Mon Sep 17 00:00:00 2001 From: xiejun <xiejun@vci-tech.com> Date: 星期四, 26 十二月 2024 16:15:20 +0800 Subject: [PATCH] 集成获取mdm分发通用数据格式接口集成 日志输出到日志文件中 --- Source/UBCS/ubcs-service/ubcs-code/src/main/java/com/vci/ubcs/code/annotation/MdmSerialAlgorithm.java | 44 ++++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 44 insertions(+), 0 deletions(-) diff --git a/Source/UBCS/ubcs-service/ubcs-code/src/main/java/com/vci/ubcs/code/annotation/MdmSerialAlgorithm.java b/Source/UBCS/ubcs-service/ubcs-code/src/main/java/com/vci/ubcs/code/annotation/MdmSerialAlgorithm.java new file mode 100644 index 0000000..c4d9e71 --- /dev/null +++ b/Source/UBCS/ubcs-service/ubcs-code/src/main/java/com/vci/ubcs/code/annotation/MdmSerialAlgorithm.java @@ -0,0 +1,44 @@ +package com.vci.ubcs.code.annotation; + +import org.springframework.core.annotation.AliasFor; +import org.springframework.stereotype.Component; + +import java.lang.annotation.ElementType; +import java.lang.annotation.Retention; +import java.lang.annotation.RetentionPolicy; +import java.lang.annotation.Target; + +/** + * 鑷畾涔夋祦姘寸畻娉曠殑娉ㄨВ + * @author xiejun + * @date 2023-11-09 + */ +@Target({ElementType.TYPE}) +@Retention(RetentionPolicy.RUNTIME) +@Component +public @interface MdmSerialAlgorithm { + + /** + * bean鐨勫悕绉� + * 鍊硷紝瀹為檯灏辨槸杩欎釜娉ㄨВ鎵�鍦ㄧ殑绫荤殑鍏ㄨ矾寰� + * @return 鍊� + */ + @AliasFor( + annotation = Component.class + ) + String value() default ""; + + /** + * 浜嬩欢鐨勫悕绉� + * @return 浜嬩欢鍚嶇О + */ + String text(); + + /** + * 鎻忚堪 + * @return 鎻忚堪 + */ + String description() default ""; + + String serialType() default ""; +} -- Gitblit v1.9.3