Pārlūkot izejas kodu

删除原来的transmission模块,增加api模块,2两者作用是一样的。

zhuoning 3 gadi atpakaļ
vecāks
revīzija
007673f333

+ 15 - 0
huimv-smarteartag-dataplatform2/huimv-smart-eartag-data-api/pom.xml

@@ -0,0 +1,15 @@
+<?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">
+    <parent>
+        <artifactId>parent</artifactId>
+        <groupId>com.huimv</groupId>
+        <version>0.0.1-SNAPSHOT</version>
+    </parent>
+    <modelVersion>4.0.0</modelVersion>
+
+    <artifactId>huimv-smart-eartag-data-api</artifactId>
+
+
+</project>

+ 19 - 0
huimv-smarteartag-dataplatform2/huimv-smart-eartag-data-api/src/main/java/com/huimv/api/HuimvSmartEartagDataApiApplication.java

@@ -0,0 +1,19 @@
+package com.huimv.api;
+
+import org.springframework.boot.SpringApplication;
+import org.springframework.boot.autoconfigure.SpringBootApplication;
+
+/**
+ * @Project : huimv.shiwan
+ * @Package : com.huimv.biosafety.uface.controller
+ * @Description : TODO
+ * @Version : 1.0
+ * @Author : ZhuoNing
+ * @Create : 2020-12-25
+ **/
+@SpringBootApplication
+public class HuimvSmartEartagDataApiApplication {
+    public static void main(String[] args) {
+        SpringApplication.run(HuimvSmartEartagDataApiApplication.class, args);
+    }
+}

+ 55 - 0
huimv-smarteartag-dataplatform2/huimv-smart-eartag-data-api/src/main/resources/application-dev.yml

@@ -0,0 +1,55 @@
+server:
+  port: 8220
+
+spring:
+  datasource:
+    url: jdbc:mysql://192.168.1.7:3306/smart_eartag_data_platform?useUnicode=true&characterEncoding=UTF-8&useSSL=false&autoReconnect=true&serverTimezone=Asia/Shanghai
+    username: root
+    password: hm123456
+    driver-class-name: com.mysql.cj.jdbc.Driver
+  jpa:
+    #    hibernate:
+    #      ddl-auto: update  #validate
+    database-platform: org.hibernate.dialect.MySQL5InnoDBDialect
+    show-sql: true
+  servlet:
+    multipart:
+      max-file-size: 100MB
+      max-request-size: 1000MB
+    # jackson时间格式化
+  jackson:
+    time-zone: GMT+8
+    date-format: yyyy-MM-dd HH:mm:ss
+  mvc:
+    view:
+      prefix: /
+      suffix: .html
+  main:
+    allow-bean-definition-overriding: true
+#  redis:
+#    database: 0
+#    host: 124.71.192.190
+#    port: 6379
+#    password: hm123456
+#    jedis:
+#      pool:
+#        max-active: 20
+#        max-wait: -1
+#        max-idle: 10
+#        min-idle: 0
+#    timeout: 5000
+
+# mybatis-plus相关配置
+mybatis-plus:
+  type-aliases-package: com.huimv.*.entity
+  global-config:
+    banner: false
+    db-config:
+      id-type: auto
+  #原生配置
+  configuration:
+    map-underscore-to-camel-case: true
+    cache-enabled: false
+    call-setters-on-nulls: true
+    jdbc-type-for-null: 'null'
+    log-impl: org.apache.ibatis.logging.stdout.StdOutImpl

+ 4 - 0
huimv-smarteartag-dataplatform2/huimv-smart-eartag-data-api/src/main/resources/application.properties

@@ -0,0 +1,4 @@
+spring.profiles.active=dev
+#spring.profiles.active=prod
+
+

+ 1 - 1
huimv-smarteartag-dataplatform2/huimv-smart-eartag-data-transmission/pom.xml

@@ -12,6 +12,7 @@
     <artifactId>huimv-smart-eartag-data-transmission</artifactId>
 
 
+
     <dependencies>
         <dependency>
             <groupId>org.apache.httpcomponents</groupId>
@@ -20,5 +21,4 @@
         </dependency>
     </dependencies>
 
-
 </project>

+ 0 - 6
huimv-smarteartag-dataplatform2/huimv-smart-eartag-data-transmission/src/main/java/com/huimv/transmission/HuimvSmartEartagDataTransmissionApplication.java

@@ -1,9 +1,6 @@
 package com.huimv.transmission;
 
-//import org.mybatis.spring.annotation.MapperScan;
 import org.springframework.boot.SpringApplication;
-import org.springframework.boot.autoconfigure.SpringBootApplication;
-import org.springframework.scheduling.annotation.EnableScheduling;
 
 /**
  * @Project : huimv.shiwan
@@ -13,9 +10,6 @@ import org.springframework.scheduling.annotation.EnableScheduling;
  * @Author : ZhuoNing
  * @Create : 2020-12-25
  **/
-//@MapperScan("com.huimv.transmission.mapper")
-//@EnableScheduling
-@SpringBootApplication
 public class HuimvSmartEartagDataTransmissionApplication {
     public static void main(String[] args) {
         SpringApplication.run(HuimvSmartEartagDataTransmissionApplication.class, args);

+ 1 - 1
huimv-smarteartag-dataplatform2/pom.xml

@@ -5,8 +5,8 @@
     <packaging>pom</packaging>
     <modules>
         <module>huimv-smart-eartag-data-acquisition</module>
-        <module>huimv-smart-eartag-data-transmission</module>
         <module>huimv-smart-eartag-data-manager</module>
+        <module>huimv-smart-eartag-data-api</module>
     </modules>
     <parent>
         <groupId>org.springframework.boot</groupId>