xucaiqin преди 2 години
родител
ревизия
ed0749ecec

+ 20 - 0
iot-framework/iot-common/src/main/java/com/middle/platform/common/utils/DateTimeUtil.java

@@ -0,0 +1,20 @@
+package com.middle.platform.common.utils;
+
+import java.time.LocalDateTime;
+import java.time.ZoneOffset;
+import java.time.format.DateTimeFormatter;
+
+/**
+ * @author xcq
+ * @date 2022年07月29日 18:06
+ */
+public class DateTimeUtil {
+    private static final DateTimeFormatter dateTimeFormatter = DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm:ss");
+
+
+    public static String nowStr() {
+        return LocalDateTime.now().format(dateTimeFormatter);
+    }
+
+
+}

+ 17 - 1
iot-framework/iot-starter-feign/pom.xml

@@ -10,11 +10,27 @@
     </parent>
 
     <artifactId>iot-starter-feign</artifactId>
-
+    <packaging>jar</packaging>
     <properties>
         <maven.compiler.source>17</maven.compiler.source>
         <maven.compiler.target>17</maven.compiler.target>
         <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
     </properties>
 
+    <dependencies>
+        <!-- RPC 远程调用相关 -->
+        <dependency>
+            <groupId>org.springframework.cloud</groupId>
+            <artifactId>spring-cloud-starter-loadbalancer</artifactId>
+        </dependency>
+        <dependency>
+            <groupId>org.springframework.cloud</groupId>
+            <artifactId>spring-cloud-starter-openfeign</artifactId>
+        </dependency>
+        <!-- 工具相关 -->
+        <dependency>
+            <groupId>jakarta.validation</groupId>
+            <artifactId>jakarta.validation-api</artifactId>
+        </dependency>
+    </dependencies>
 </project>

+ 0 - 20
iot-framework/iot-starter-mysql/pom.xml

@@ -1,20 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<project xmlns="http://maven.apache.org/POM/4.0.0"
-         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
-         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
-    <modelVersion>4.0.0</modelVersion>
-    <parent>
-        <groupId>com.middle.platform</groupId>
-        <artifactId>iot-framework</artifactId>
-        <version>${revision}</version>
-    </parent>
-
-    <artifactId>iot-starter-mysql</artifactId>
-
-    <properties>
-        <maven.compiler.source>17</maven.compiler.source>
-        <maven.compiler.target>17</maven.compiler.target>
-        <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
-    </properties>
-
-</project>

+ 0 - 1
iot-framework/pom.xml

@@ -22,7 +22,6 @@
         <module>iot-starter-mqtt</module>
         <module>iot-starter-mongo</module>
         <module>iot-starter-mybatis</module>
-        <module>iot-starter-mysql</module>
         <module>iot-starter-tdengine</module>
         <module>iot-starter-rabbitmq</module>
         <module>iot-starter-log</module>