Bladeren bron

注释补充

欧阳劲驰 1 maand geleden
bovenliggende
commit
b68507cd16

+ 1 - 0
iot-common/iot-common-core/src/main/java/com/shkpr/iot/common/core/properties/InfluxDbProperties.java

@@ -6,6 +6,7 @@ import org.springframework.boot.context.properties.ConfigurationProperties;
 
 /**
  * influxdb属性
+ * <p>spring自动装配有同名bean,务必不要写同名字段</p>
  *
  * @author 欧阳劲驰
  * @since 0.0.1-dev

+ 2 - 2
iot-common/iot-common-core/src/main/java/com/shkpr/iot/common/core/util/InfluxDbUtil.java

@@ -43,7 +43,7 @@ public class InfluxDbUtil {
             influxDb.write(point);
             return true;
         } catch (Exception e) {
-            log.error("插入InfluxDB失败", e);
+            log.error("插入InfluxDb失败", e);
             return false;
         }
     }
@@ -59,7 +59,7 @@ public class InfluxDbUtil {
             influxDb.write(points);
             return true;
         } catch (Exception e) {
-            log.error("插入InfluxDB失败", e);
+            log.error("插入InfluxDb失败", e);
             return false;
         }
     }