diff --git a/iot-common/iot-common-core/src/main/java/cc/iotkit/common/utils/MessageUtils.java b/iot-common/iot-common-core/src/main/java/cc/iotkit/common/utils/MessageUtils.java
index a83c9018..32220169 100644
--- a/iot-common/iot-common-core/src/main/java/cc/iotkit/common/utils/MessageUtils.java
+++ b/iot-common/iot-common-core/src/main/java/cc/iotkit/common/utils/MessageUtils.java
@@ -23,6 +23,12 @@ public class MessageUtils {
* @return 获取国际化翻译值
*/
public static String message(String code, Object... args) {
- return MESSAGE_SOURCE.getMessage(code, args, LocaleContextHolder.getLocale());
+// TODO: 国际化
+ try{
+ return MESSAGE_SOURCE.getMessage(code, args, LocaleContextHolder.getLocale());
+ } catch (Exception e) {
+ return code;
+ }
+
}
}
diff --git a/iot-common/iot-common-dao/iot-data-serviceImpl-rdb/pom.xml b/iot-common/iot-common-dao/iot-data-serviceImpl-rdb/pom.xml
index 9f15e092..897d0096 100644
--- a/iot-common/iot-common-dao/iot-data-serviceImpl-rdb/pom.xml
+++ b/iot-common/iot-common-dao/iot-data-serviceImpl-rdb/pom.xml
@@ -47,11 +47,20 @@
hutool-core
+
+
+
+
- org.mapstruct
- mapstruct
+ io.github.linpeilie
+ mapstruct-plus
+
+
+
+
+
org.projectlombok
lombok
@@ -90,16 +99,22 @@
${java.version}
-
- org.projectlombok
- lombok
- 1.18.24
-
-
- org.mapstruct
- mapstruct-processor
- 1.4.2.Final
-
+
+ org.projectlombok
+ lombok
+ ${lombok.version}
+
+
+ io.github.linpeilie
+ mapstruct-plus-processor
+ ${mapstruct-plus.version}
+
+
+ org.projectlombok
+ lombok-mapstruct-binding
+ 0.2.0
+
+
diff --git a/iot-common/iot-common-dao/iot-data-serviceImpl-rdb/src/main/java/cc/iotkit/data/config/AutoMapperConfig3.java b/iot-common/iot-common-dao/iot-data-serviceImpl-rdb/src/main/java/cc/iotkit/data/config/AutoMapperConfig3.java
new file mode 100644
index 00000000..3e082e40
--- /dev/null
+++ b/iot-common/iot-common-dao/iot-data-serviceImpl-rdb/src/main/java/cc/iotkit/data/config/AutoMapperConfig3.java
@@ -0,0 +1,15 @@
+package cc.iotkit.data.config;
+
+import io.github.linpeilie.annotations.ComponentModelConfig;
+import io.github.linpeilie.annotations.MapperConfig;
+
+/**
+ * @Author: jay
+ * @Date: 2023/6/4 14:21
+ * @Version: V1.0
+ * @Description: mapperstruct 配置
+ */
+//@MapperConfig
+@ComponentModelConfig(componentModel = "default")
+public class AutoMapperConfig3 {
+}
diff --git a/iot-common/iot-common-dao/iot-temporal-serviceImpl-es/pom.xml b/iot-common/iot-common-dao/iot-temporal-serviceImpl-es/pom.xml
index eca61b57..81b33f8a 100644
--- a/iot-common/iot-common-dao/iot-temporal-serviceImpl-es/pom.xml
+++ b/iot-common/iot-common-dao/iot-temporal-serviceImpl-es/pom.xml
@@ -30,10 +30,9 @@
- org.mapstruct
- mapstruct
+ io.github.linpeilie
+ mapstruct-plus
-
cc.iotkit
iot-temporal-service
@@ -56,16 +55,21 @@
${java.version}
-
- org.projectlombok
- lombok
- 1.18.24
-
-
- org.mapstruct
- mapstruct-processor
- 1.4.2.Final
-
+
+ org.projectlombok
+ lombok
+ ${lombok.version}
+
+
+ io.github.linpeilie
+ mapstruct-plus-processor
+ ${mapstruct-plus.version}
+
+
+ org.projectlombok
+ lombok-mapstruct-binding
+ 0.2.0
+
diff --git a/iot-common/iot-common-dao/iot-temporal-serviceImpl-ts/pom.xml b/iot-common/iot-common-dao/iot-temporal-serviceImpl-ts/pom.xml
index ca95d626..d9dc4e61 100644
--- a/iot-common/iot-common-dao/iot-temporal-serviceImpl-ts/pom.xml
+++ b/iot-common/iot-common-dao/iot-temporal-serviceImpl-ts/pom.xml
@@ -44,10 +44,10 @@
jackson-annotations
-
- org.mapstruct
- mapstruct
-
+
+
+
+
cn.hutool
diff --git a/iot-common/iot-common-dao/iot-temproal-serviceImpl-td/pom.xml b/iot-common/iot-common-dao/iot-temproal-serviceImpl-td/pom.xml
index f8ecb43c..9b4853a0 100644
--- a/iot-common/iot-common-dao/iot-temproal-serviceImpl-td/pom.xml
+++ b/iot-common/iot-common-dao/iot-temproal-serviceImpl-td/pom.xml
@@ -48,10 +48,9 @@
- org.mapstruct
- mapstruct
+ io.github.linpeilie
+ mapstruct-plus-spring-boot-starter
-
cn.hutool
hutool-http
diff --git a/iot-common/iot-common-dao/pom.xml b/iot-common/iot-common-dao/pom.xml
index 20b46bac..76bb0946 100644
--- a/iot-common/iot-common-dao/pom.xml
+++ b/iot-common/iot-common-dao/pom.xml
@@ -32,17 +32,17 @@
-
- org.mapstruct
- mapstruct
- 1.4.2.Final
-
+
+
+
+
+
-
- org.mapstruct
- mapstruct-processor
- 1.4.2.Final
-
+
+
+
+
+
diff --git a/iot-module/iot-manager/src/main/java/cc/iotkit/manager/config/AutoMapperConfig2.java b/iot-module/iot-manager/src/main/java/cc/iotkit/manager/config/AutoMapperConfig2.java
new file mode 100644
index 00000000..ff8fb73f
--- /dev/null
+++ b/iot-module/iot-manager/src/main/java/cc/iotkit/manager/config/AutoMapperConfig2.java
@@ -0,0 +1,15 @@
+package cc.iotkit.manager.config;
+
+import io.github.linpeilie.annotations.ComponentModelConfig;
+import io.github.linpeilie.annotations.MapperConfig;
+
+/**
+ * @Author: jay
+ * @Date: 2023/6/4 14:21
+ * @Version: V1.0
+ * @Description: mapperstruct 配置
+ */
+@MapperConfig
+@ComponentModelConfig(componentModel = "default")
+public class AutoMapperConfig2 {
+}
diff --git a/iot-module/iot-system/src/main/java/cc/iotkit/system/config/AutoMapperConfig.java b/iot-module/iot-system/src/main/java/cc/iotkit/system/config/AutoMapperConfig.java
new file mode 100644
index 00000000..f4124393
--- /dev/null
+++ b/iot-module/iot-system/src/main/java/cc/iotkit/system/config/AutoMapperConfig.java
@@ -0,0 +1,15 @@
+package cc.iotkit.system.config;
+
+import io.github.linpeilie.annotations.ComponentModelConfig;
+import io.github.linpeilie.annotations.MapperConfig;
+
+/**
+ * @Author: jay
+ * @Date: 2023/6/4 14:21
+ * @Version: V1.0
+ * @Description: mapperstruct 配置
+ */
+@MapperConfig()
+@ComponentModelConfig(componentModel = "default")
+public class AutoMapperConfig {
+}
diff --git a/pom.xml b/pom.xml
index 00b59857..12f71fc7 100755
--- a/pom.xml
+++ b/pom.xml
@@ -35,7 +35,7 @@
5.8.18
3.20.1
2.2.4
- 1.2.1
+ 1.2.5
2.14.2
5.2.3
3.2.1
@@ -44,6 +44,8 @@
1.0.0
2.0.9
1.1.0.Final
+ 1.18.26
+
@@ -119,7 +121,7 @@
org.projectlombok
lombok
- 1.18.26
+ ${lombok.version}
@@ -285,6 +287,11 @@
${graalvm.version}
+
+ io.github.linpeilie
+ mapstruct-plus
+ ${mapstruct-plus.version}
+
io.github.linpeilie
mapstruct-plus-spring-boot-starter