运行项目
CREATE DATABASE iot ;USE iot;/*Navicat Premium Data TransferSource Server : mysqlSource Server Type : MySQLSource Server Version : 80021Source Host : localhost:3306Source Schema : iotTarget Server Type : MySQLTarget Server Version : 80021File Encoding : 65001Date: 29/11/2021 17:37:38*/SET NAMES utf8mb4;SET FOREIGN_KEY_CHECKS = 0;-- ------------------------------ Table structure for coordinates-- ----------------------------DROP TABLE IF EXISTS `coordinates`;CREATE TABLE `coordinates` (`id` bigint NOT NULL COMMENT '客户端标识',`x` bigint NOT NULL COMMENT 'x坐标',`y` bigint NOT NULL COMMENT 'y坐标',`Arrival` datetime(6) NULL DEFAULT NULL COMMENT '到达时间',`A` bigint NOT NULL,`B` bigint NOT NULL,`C` bigint NOT NULL) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_0900_ai_ci ROW_FORMAT = Dynamic;SET FOREIGN_KEY_CHECKS = 1;
以上是sql脚本只需要执行一次
下载文件后,进入BOOT-INF\classes 目录下编辑 application.yml 文件将 这个位置上
填上数据库的 用户名和密码,保存退出,回到解压后的目录执行
nohup java org.springframework.boot.loader.JarLauncher &
