lmstack %!s(int64=3) %!d(string=hai) anos
achega
26c78ad204

+ 6 - 0
Dockerfile

@@ -0,0 +1,6 @@
+FROM ff-registry:5000/java:8-jre-alpine as hz_bigscreen
+
+ENV TZ="Asia/Shanghai"
+ADD ./target/hz_bigscreen-0.0.1-SNAPSHOT.jar /home/App.jar
+
+CMD ["/bin/sh","-c","/usr/bin/java -server -jar /home/App.jar"]

+ 58 - 0
pom.xml

@@ -0,0 +1,58 @@
+<?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 https://maven.apache.org/xsd/maven-4.0.0.xsd">
+    <modelVersion>4.0.0</modelVersion>
+    <parent>
+        <groupId>org.springframework.boot</groupId>
+        <artifactId>spring-boot-starter-parent</artifactId>
+        <version>2.5.5</version>
+        <relativePath/> <!-- lookup parent from repository -->
+    </parent>
+    <groupId>com.qx</groupId>
+    <artifactId>hz_bigscreen</artifactId>
+    <version>0.0.1-SNAPSHOT</version>
+    <name>hz_bigscreen</name>
+    <description>Demo project for Spring Boot</description>
+    <properties>
+        <java.version>1.8</java.version>
+    </properties>
+    <dependencies>
+<!--        <dependency>-->
+<!--            <groupId>org.springframework.boot</groupId>-->
+<!--            <artifactId>spring-boot-starter-jdbc</artifactId>-->
+<!--        </dependency>-->
+        <dependency>
+            <groupId>org.springframework.boot</groupId>
+            <artifactId>spring-boot-starter-web</artifactId>
+        </dependency>
+
+        <dependency>
+            <groupId>org.projectlombok</groupId>
+            <artifactId>lombok</artifactId>
+            <optional>true</optional>
+        </dependency>
+        <dependency>
+            <groupId>org.springframework.boot</groupId>
+            <artifactId>spring-boot-starter-test</artifactId>
+            <scope>test</scope>
+        </dependency>
+    </dependencies>
+
+    <build>
+        <plugins>
+            <plugin>
+                <groupId>org.springframework.boot</groupId>
+                <artifactId>spring-boot-maven-plugin</artifactId>
+                <configuration>
+                    <excludes>
+                        <exclude>
+                            <groupId>org.projectlombok</groupId>
+                            <artifactId>lombok</artifactId>
+                        </exclude>
+                    </excludes>
+                </configuration>
+            </plugin>
+        </plugins>
+    </build>
+
+</project>

+ 13 - 0
src/main/java/com/qx/hz_bigscreen/HzBigscreenApplication.java

@@ -0,0 +1,13 @@
+package com.qx.hz_bigscreen;
+
+import org.springframework.boot.SpringApplication;
+import org.springframework.boot.autoconfigure.SpringBootApplication;
+
+@SpringBootApplication
+public class HzBigscreenApplication {
+
+    public static void main(String[] args) {
+        SpringApplication.run(HzBigscreenApplication.class, args);
+    }
+
+}

+ 17 - 0
src/main/java/com/qx/hz_bigscreen/controller/bigscreen.java

@@ -0,0 +1,17 @@
+package com.qx.hz_bigscreen.controller;
+
+import org.springframework.web.bind.annotation.*;
+
+
+@RestController
+
+public class bigscreen {
+
+    @RequestMapping(value="/getvin", method=RequestMethod.GET)
+    public String getVin( String param) throws InterruptedException {
+
+        return param;
+    }
+
+}
+

+ 4 - 0
src/main/resources/application.yml

@@ -0,0 +1,4 @@
+server:
+  port: 9099
+  address: 0.0.0.0
+

+ 13 - 0
src/test/java/com/qx/hz_bigscreen/HzBigscreenApplicationTests.java

@@ -0,0 +1,13 @@
+package com.qx.hz_bigscreen;
+
+import org.junit.jupiter.api.Test;
+import org.springframework.boot.test.context.SpringBootTest;
+
+@SpringBootTest
+class HzBigscreenApplicationTests {
+
+    @Test
+    void contextLoads() {
+    }
+
+}