随便准备一张数据表导入数据库中,例如下面的t_picture
CREATE TABLE `t_picture` (
`picture_id` int NOT NULL AUTO_INCREMENT,
`picture_url` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL COMMENT '图片地址',
`camera_id` int DEFAULT NULL COMMENT '摄像头id',
`camera_alias` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL COMMENT '摄像头自定义别名',
`Installation_position` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL COMMENT '摄像头安装位置挂载塔位或安装区域)',
`latitude` double(10,2) DEFAULT NULL COMMENT '经度',
`longitude` double(10,2) DEFAULT NULL COMMENT '维度',
`task_id` int DEFAULT NULL COMMENT '任务id',
`task_name` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL COMMENT '任务名称',
`photo_type` int DEFAULT NULL COMMENT '拍摄类型(相别)',
`photo_time` timestamp NULL DEFAULT NULL COMMENT '拍摄时间',
`photographer` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL COMMENT '拍摄人',
`description` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL COMMENT '描述',
PRIMARY KEY (`picture_id`)
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;
1.配置maven仓库
2.配置JDK
根据自己设置的服务端口访问swgger:http://127.0.0.1:10517/doc.html