运行项目

    1. CREATE DATABASE iot ;
    2. USE iot;
    3. /*
    4. Navicat Premium Data Transfer
    5. Source Server : mysql
    6. Source Server Type : MySQL
    7. Source Server Version : 80021
    8. Source Host : localhost:3306
    9. Source Schema : iot
    10. Target Server Type : MySQL
    11. Target Server Version : 80021
    12. File Encoding : 65001
    13. Date: 29/11/2021 17:37:38
    14. */
    15. SET NAMES utf8mb4;
    16. SET FOREIGN_KEY_CHECKS = 0;
    17. -- ----------------------------
    18. -- Table structure for coordinates
    19. -- ----------------------------
    20. DROP TABLE IF EXISTS `coordinates`;
    21. CREATE TABLE `coordinates` (
    22. `id` bigint NOT NULL COMMENT '客户端标识',
    23. `x` bigint NOT NULL COMMENT 'x坐标',
    24. `y` bigint NOT NULL COMMENT 'y坐标',
    25. `Arrival` datetime(6) NULL DEFAULT NULL COMMENT '到达时间',
    26. `A` bigint NOT NULL,
    27. `B` bigint NOT NULL,
    28. `C` bigint NOT NULL
    29. ) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_0900_ai_ci ROW_FORMAT = Dynamic;
    30. SET FOREIGN_KEY_CHECKS = 1;

    以上是sql脚本只需要执行一次

    下载文件后,进入BOOT-INF\classes 目录下编辑 application.yml 文件将 这个位置上image.png
    填上数据库的 用户名和密码,保存退出,回到解压后的目录执行

    1. nohup java org.springframework.boot.loader.JarLauncher &