├── .gitignore ├── .mvn └── wrapper │ ├── MavenWrapperDownloader.java │ ├── maven-wrapper.jar │ └── maven-wrapper.properties ├── README.md ├── faceImg └── tl.png ├── facesign.sql ├── mvnw ├── mvnw.cmd ├── my.log ├── my.log.2021-05-24.0.gz ├── my.log.2021-05-25.0.gz ├── my.log.2021-05-26.0.gz ├── my.log.2021-05-27.0.gz ├── my.log.2021-05-28.0.gz ├── pom.xml └── src ├── main ├── java │ └── com │ │ └── ylesb │ │ └── bsfs │ │ ├── BsfsApplication.java │ │ ├── bean │ │ ├── AdminBean.java │ │ ├── ApplyBean.java │ │ ├── CompanyBean.java │ │ ├── FaceImgUrlBean.java │ │ ├── LogBean.java │ │ ├── NoticeBean.java │ │ ├── SignBean.java │ │ └── UserBean.java │ │ ├── controller │ │ ├── AdminController.java │ │ ├── FileController.java │ │ ├── FlieControllerTest.java │ │ ├── SystemController.java │ │ ├── TestController.java │ │ └── UserController.java │ │ ├── core │ │ ├── ActionCode.java │ │ ├── GlobalExceptionHandler.java │ │ └── Url.java │ │ ├── mapper │ │ ├── AdminMapper.java │ │ ├── SignMapper.java │ │ ├── SystemMapper.java │ │ └── UserMapper.java │ │ ├── rpto │ │ ├── AddFaceimgRPTO.java │ │ ├── ApplyRPTO.java │ │ ├── FileRPTO.java │ │ ├── FindFaceImgRPTO.java │ │ ├── FindRPTO.java │ │ ├── LogRPTO.java │ │ ├── LoginRPTO.java │ │ ├── RPTO.java │ │ └── SignRPTO.java │ │ ├── rqto │ │ ├── AddFaceimgRQTO.java │ │ ├── AddUserRQTO.java │ │ ├── ApplyRQTO.java │ │ ├── FindFaceImgRQTO.java │ │ ├── FindRQTO.java │ │ ├── LogRQTO.java │ │ ├── LoginRQTO.java │ │ ├── SignRQTO.java │ │ └── TestRTO.java │ │ ├── service │ │ ├── AdminService.java │ │ ├── LogService.java │ │ ├── SignService.java │ │ └── UserService.java │ │ ├── serviceIml │ │ ├── AdminServiceImpl.java │ │ ├── LogServiceImpl.java │ │ ├── SignServiceImpl.java │ │ └── UserServiceImpl.java │ │ └── utils │ │ ├── FileUtil.java │ │ └── UploadUtils.java └── resources │ ├── application.yml │ ├── banner.txt │ ├── mapper │ ├── AdminMapper.xml │ ├── SignMapper.xml │ ├── SystemMapper.xml │ └── UserMapper.xml │ └── static │ ├── jquery.min.js │ └── login.html └── test └── java └── com └── ylesb └── bsfs └── BsfsApplicationTests.java /.gitignore: -------------------------------------------------------------------------------- 1 | HELP.md 2 | target/ 3 | !.mvn/wrapper/maven-wrapper.jar 4 | !**/src/main/**/target/ 5 | !**/src/test/**/target/ 6 | 7 | ### STS ### 8 | .apt_generated 9 | .classpath 10 | .factorypath 11 | .project 12 | .settings 13 | .springBeans 14 | .sts4-cache 15 | 16 | ### IntelliJ IDEA ### 17 | .idea 18 | *.iws 19 | *.iml 20 | *.ipr 21 | 22 | ### NetBeans ### 23 | /nbproject/private/ 24 | /nbbuild/ 25 | /dist/ 26 | /nbdist/ 27 | /.nb-gradle/ 28 | build/ 29 | !**/src/main/**/build/ 30 | !**/src/test/**/build/ 31 | 32 | ### VS Code ### 33 | .vscode/ 34 | -------------------------------------------------------------------------------- /.mvn/wrapper/MavenWrapperDownloader.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2007-present the original author or authors. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * https://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | import java.net.*; 18 | import java.io.*; 19 | import java.nio.channels.*; 20 | import java.util.Properties; 21 | 22 | public class MavenWrapperDownloader { 23 | 24 | private static final String WRAPPER_VERSION = "0.5.6"; 25 | /** 26 | * Default URL to download the maven-wrapper.jar from, if no 'downloadUrl' is provided. 27 | */ 28 | private static final String DEFAULT_DOWNLOAD_URL = "https://repo.maven.apache.org/maven2/io/takari/maven-wrapper/" 29 | + WRAPPER_VERSION + "/maven-wrapper-" + WRAPPER_VERSION + ".jar"; 30 | 31 | /** 32 | * Path to the maven-wrapper.properties file, which might contain a downloadUrl property to 33 | * use instead of the default one. 34 | */ 35 | private static final String MAVEN_WRAPPER_PROPERTIES_PATH = 36 | ".mvn/wrapper/maven-wrapper.properties"; 37 | 38 | /** 39 | * Path where the maven-wrapper.jar will be saved to. 40 | */ 41 | private static final String MAVEN_WRAPPER_JAR_PATH = 42 | ".mvn/wrapper/maven-wrapper.jar"; 43 | 44 | /** 45 | * Name of the property which should be used to override the default download url for the wrapper. 46 | */ 47 | private static final String PROPERTY_NAME_WRAPPER_URL = "wrapperUrl"; 48 | 49 | public static void main(String args[]) { 50 | System.out.println("- Downloader started"); 51 | File baseDirectory = new File(args[0]); 52 | System.out.println("- Using base directory: " + baseDirectory.getAbsolutePath()); 53 | 54 | // If the maven-wrapper.properties exists, read it and check if it contains a custom 55 | // wrapperUrl parameter. 56 | File mavenWrapperPropertyFile = new File(baseDirectory, MAVEN_WRAPPER_PROPERTIES_PATH); 57 | String url = DEFAULT_DOWNLOAD_URL; 58 | if (mavenWrapperPropertyFile.exists()) { 59 | FileInputStream mavenWrapperPropertyFileInputStream = null; 60 | try { 61 | mavenWrapperPropertyFileInputStream = new FileInputStream(mavenWrapperPropertyFile); 62 | Properties mavenWrapperProperties = new Properties(); 63 | mavenWrapperProperties.load(mavenWrapperPropertyFileInputStream); 64 | url = mavenWrapperProperties.getProperty(PROPERTY_NAME_WRAPPER_URL, url); 65 | } catch (IOException e) { 66 | System.out.println("- ERROR loading '" + MAVEN_WRAPPER_PROPERTIES_PATH + "'"); 67 | } finally { 68 | try { 69 | if (mavenWrapperPropertyFileInputStream != null) { 70 | mavenWrapperPropertyFileInputStream.close(); 71 | } 72 | } catch (IOException e) { 73 | // Ignore ... 74 | } 75 | } 76 | } 77 | System.out.println("- Downloading from: " + url); 78 | 79 | File outputFile = new File(baseDirectory.getAbsolutePath(), MAVEN_WRAPPER_JAR_PATH); 80 | if (!outputFile.getParentFile().exists()) { 81 | if (!outputFile.getParentFile().mkdirs()) { 82 | System.out.println( 83 | "- ERROR creating output directory '" + outputFile.getParentFile().getAbsolutePath() + "'"); 84 | } 85 | } 86 | System.out.println("- Downloading to: " + outputFile.getAbsolutePath()); 87 | try { 88 | downloadFileFromURL(url, outputFile); 89 | System.out.println("Done"); 90 | System.exit(0); 91 | } catch (Throwable e) { 92 | System.out.println("- Error downloading"); 93 | e.printStackTrace(); 94 | System.exit(1); 95 | } 96 | } 97 | 98 | private static void downloadFileFromURL(String urlString, File destination) throws Exception { 99 | if (System.getenv("MVNW_USERNAME") != null && System.getenv("MVNW_PASSWORD") != null) { 100 | String username = System.getenv("MVNW_USERNAME"); 101 | char[] password = System.getenv("MVNW_PASSWORD").toCharArray(); 102 | Authenticator.setDefault(new Authenticator() { 103 | @Override 104 | protected PasswordAuthentication getPasswordAuthentication() { 105 | return new PasswordAuthentication(username, password); 106 | } 107 | }); 108 | } 109 | URL website = new URL(urlString); 110 | ReadableByteChannel rbc; 111 | rbc = Channels.newChannel(website.openStream()); 112 | FileOutputStream fos = new FileOutputStream(destination); 113 | fos.getChannel().transferFrom(rbc, 0, Long.MAX_VALUE); 114 | fos.close(); 115 | rbc.close(); 116 | } 117 | 118 | } 119 | -------------------------------------------------------------------------------- /.mvn/wrapper/maven-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CoderXGC/bsfs/8933a3875ac4f17790d33ccccbfd537e3bef741b/.mvn/wrapper/maven-wrapper.jar -------------------------------------------------------------------------------- /.mvn/wrapper/maven-wrapper.properties: -------------------------------------------------------------------------------- 1 | distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.8.1/apache-maven-3.8.1-bin.zip 2 | wrapperUrl=https://repo.maven.apache.org/maven2/io/takari/maven-wrapper/0.5.6/maven-wrapper-0.5.6.jar 3 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # bsfs 2 | 3 | #### 介绍 4 | **人脸识别后台项目简介** 5 | 本项目是采用Springboot+Mybatis+MySql。设计API接口,本项目作为2021年毕业设计项目,开源留念,这个项目也是第一次自主学习Java开源框架并完成。对本人比较有意义。项目运行需要与前端配合,前端项目请看 [https://gitee.com/coderxgc/bs_facesign](https://gitee.com/coderxgc/bs_facesign) 6 | 7 | #### 软件架构 8 | 软件架构说明 9 | 基本上就是MVC架构,并发什么的暂时没有考虑,仅仅作为自己学习开源项目 10 | #### 安装教程 11 | 12 | 1. IDEA导入即可 13 | 2. 如果使用eclipse开发平台自行百度如何导入IDEA项目。 14 | 15 | 16 | #### 联系作者 17 | 1. 欢迎bug反馈,建议,技术交流等~ 18 | 2. - **Contact-Email me :** [xgc(xgc@tom.com)](mailto:xgc@tom.com) 19 | ![Image text](https://i.loli.net/2021/11/29/Rm1SX7JWPBEDsat.png) 20 | ### 捐助 21 | ![Image text](https://www.ylesb.com/wp-content/uploads/2022/04/1651062390-642.png) 22 | -------------------------------------------------------------------------------- /faceImg/tl.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CoderXGC/bsfs/8933a3875ac4f17790d33ccccbfd537e3bef741b/faceImg/tl.png -------------------------------------------------------------------------------- /facesign.sql: -------------------------------------------------------------------------------- 1 | /* 2 | Navicat Premium Data Transfer 3 | 4 | Source Server : 150.158.31.224 5 | Source Server Type : MySQL 6 | Source Server Version : 50650 7 | Source Host : 150.158.31.224:3306 8 | Source Schema : facesign 9 | 10 | Target Server Type : MySQL 11 | Target Server Version : 50650 12 | File Encoding : 65001 13 | 14 | Date: 15/05/2022 14:58:35 15 | */ 16 | 17 | SET NAMES utf8mb4; 18 | SET FOREIGN_KEY_CHECKS = 0; 19 | 20 | -- ---------------------------- 21 | -- Table structure for admin 22 | -- ---------------------------- 23 | DROP TABLE IF EXISTS `admin`; 24 | CREATE TABLE `admin` ( 25 | `id` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL DEFAULT '8:00', 26 | `pwd` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL, 27 | `name` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL, 28 | `signintime` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '8T00', 29 | `signoutime` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '5:00', 30 | `did` int(11) NULL DEFAULT NULL, 31 | `telnum` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL, 32 | `email` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL, 33 | `role` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL, 34 | PRIMARY KEY (`id`) USING BTREE 35 | ) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Compact; 36 | 37 | -- ---------------------------- 38 | -- Records of admin 39 | -- ---------------------------- 40 | INSERT INTO `admin` VALUES ('10001', 'E1ADC3949BA59ABBE56E057F2F883E', '谭蕾', '8:00', '5:00', 0, NULL, NULL, '0'); 41 | INSERT INTO `admin` VALUES ('10002', 'E1ADC3949BA59ABBE56E057F2F883E', '徐广超', '8:00', '5:00', 0, NULL, NULL, '0'); 42 | 43 | -- ---------------------------- 44 | -- Table structure for audit 45 | -- ---------------------------- 46 | DROP TABLE IF EXISTS `audit`; 47 | CREATE TABLE `audit` ( 48 | `applyid` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL DEFAULT '', 49 | `message` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL, 50 | `applytime` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL, 51 | `starttime` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL, 52 | `endtime` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL, 53 | `status` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '0', 54 | `id` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL, 55 | `type` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL, 56 | `time` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL, 57 | PRIMARY KEY (`applyid`) USING BTREE 58 | ) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Compact; 59 | 60 | -- ---------------------------- 61 | -- Records of audit 62 | -- ---------------------------- 63 | INSERT INTO `audit` VALUES ('100032021-05-02|16:23:00', '请假', '2021-05-02|16:23:00', '2021-05-07 00:00:00', '2021-05-08 00:00:00', '1', '10003', '事假', '18'); 64 | 65 | -- ---------------------------- 66 | -- Table structure for company 67 | -- ---------------------------- 68 | DROP TABLE IF EXISTS `company`; 69 | CREATE TABLE `company` ( 70 | `id` int(11) NOT NULL, 71 | `cname` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL, 72 | PRIMARY KEY (`id`) USING BTREE 73 | ) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Compact; 74 | 75 | -- ---------------------------- 76 | -- Records of company 77 | -- ---------------------------- 78 | INSERT INTO `company` VALUES (0, 'TL科技有限公司'); 79 | 80 | -- ---------------------------- 81 | -- Table structure for department 82 | -- ---------------------------- 83 | DROP TABLE IF EXISTS `department`; 84 | CREATE TABLE `department` ( 85 | `id` int(11) NOT NULL, 86 | `name` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL, 87 | `cid` int(11) NULL DEFAULT NULL, 88 | PRIMARY KEY (`id`) USING BTREE 89 | ) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Compact; 90 | 91 | -- ---------------------------- 92 | -- Records of department 93 | -- ---------------------------- 94 | INSERT INTO `department` VALUES (0, '技术部', 0); 95 | 96 | -- ---------------------------- 97 | -- Table structure for log 98 | -- ---------------------------- 99 | DROP TABLE IF EXISTS `log`; 100 | CREATE TABLE `log` ( 101 | `id` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL, 102 | `message` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL, 103 | PRIMARY KEY (`id`) USING BTREE 104 | ) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Compact; 105 | 106 | -- ---------------------------- 107 | -- Records of log 108 | -- ---------------------------- 109 | INSERT INTO `log` VALUES ('0', '2020登录'); 110 | INSERT INTO `log` VALUES ('1', '1234511161111'); 111 | INSERT INTO `log` VALUES ('2', '123456'); 112 | INSERT INTO `log` VALUES ('20', '123456'); 113 | INSERT INTO `log` VALUES ('2000', '123456'); 114 | INSERT INTO `log` VALUES ('222', '1234511161111'); 115 | INSERT INTO `log` VALUES ('2223', '1234511161111'); 116 | INSERT INTO `log` VALUES ('22234', '1234511161111'); 117 | INSERT INTO `log` VALUES ('222345', '1234511161111'); 118 | INSERT INTO `log` VALUES ('23331113', '12345'); 119 | INSERT INTO `log` VALUES ('23331114', '12345'); 120 | INSERT INTO `log` VALUES ('233311145', '12345'); 121 | 122 | -- ---------------------------- 123 | -- Table structure for notice 124 | -- ---------------------------- 125 | DROP TABLE IF EXISTS `notice`; 126 | CREATE TABLE `notice` ( 127 | `id` varchar(11) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL, 128 | `message` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL, 129 | `time` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL, 130 | `did` int(20) NULL DEFAULT NULL, 131 | `issueid` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL, 132 | PRIMARY KEY (`id`) USING BTREE 133 | ) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Compact; 134 | 135 | -- ---------------------------- 136 | -- Records of notice 137 | -- ---------------------------- 138 | 139 | -- ---------------------------- 140 | -- Table structure for signlog 141 | -- ---------------------------- 142 | DROP TABLE IF EXISTS `signlog`; 143 | CREATE TABLE `signlog` ( 144 | `id` varchar(20) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL, 145 | `signid` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL DEFAULT '0', 146 | `latetime` varchar(20) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL DEFAULT '0', 147 | `signintime` varchar(20) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '0', 148 | `daytime` varchar(20) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL, 149 | `did` int(20) NULL DEFAULT NULL, 150 | `machine` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL, 151 | `signouttime` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '0', 152 | PRIMARY KEY (`signid`) USING BTREE, 153 | INDEX `id`(`id`) USING BTREE 154 | ) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Compact; 155 | 156 | -- ---------------------------- 157 | -- Records of signlog 158 | -- ---------------------------- 159 | INSERT INTO `signlog` VALUES ('0', '0', '1', '0', '0', 0, '0', NULL); 160 | INSERT INTO `signlog` VALUES ('', '01', '0', '0', '', NULL, NULL, '0'); 161 | INSERT INTO `signlog` VALUES ('0', '02021-01-05', '1', '2021/1/5 16:55:47', '2021-01-05', NULL, NULL, NULL); 162 | INSERT INTO `signlog` VALUES ('0', '02021-01-09', '1', '2021/1/9 13:24:04', '2021-01-09', NULL, NULL, NULL); 163 | INSERT INTO `signlog` VALUES ('0', '02021-03-21', '1', '2021/3/21 12:31:11', '2021-03-21', NULL, NULL, NULL); 164 | INSERT INTO `signlog` VALUES ('0', '02021-03-22', '1', '2021/3/22 19:53:24', '2021-03-22', NULL, NULL, NULL); 165 | INSERT INTO `signlog` VALUES ('0', '02021-04-14', '1', '2021/4/14 10:42:11', '2021-04-14', NULL, NULL, NULL); 166 | INSERT INTO `signlog` VALUES ('0', '02021-04-22', '1', '2021/4/22 9:21:39', '2021-04-22', NULL, NULL, NULL); 167 | INSERT INTO `signlog` VALUES ('0', '02021-04-24', '', '2021-04-24 09:27:25', '2021-04-24', 0, NULL, '2021-04-24 20:48:58'); 168 | INSERT INTO `signlog` VALUES ('0', '02021-04-25', '', '2021-04-25 10:50:46', '2021-04-25', 0, NULL, '2021-04-25 21:23:02'); 169 | INSERT INTO `signlog` VALUES ('10003', '100032021-05-02', '4:5', '2021-05-02 12:15:28', '2021-05-02', 0, NULL, '0'); 170 | INSERT INTO `signlog` VALUES ('1', '12021-04-25', '', '2021-04-25 11:11:41', '2021-04-25', 0, NULL, '0'); 171 | INSERT INTO `signlog` VALUES ('0', '2', '1', NULL, '0', 0, '0', NULL); 172 | INSERT INTO `signlog` VALUES ('0', '666', '1', NULL, '0', 0, '0', NULL); 173 | INSERT INTO `signlog` VALUES ('0', '6667', '1', NULL, '0', 0, '0', NULL); 174 | 175 | -- ---------------------------- 176 | -- Table structure for user 177 | -- ---------------------------- 178 | DROP TABLE IF EXISTS `user`; 179 | CREATE TABLE `user` ( 180 | `id` varchar(20) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL, 181 | `name` varchar(20) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL, 182 | `faceimg` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '0', 183 | `pwd` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT 'E1ADC3949BA59ABBE56E057F2F883E', 184 | `did` int(11) NULL DEFAULT NULL, 185 | `signintime` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL DEFAULT '8:00', 186 | `signouttime` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '17:00', 187 | `telnum` varchar(15) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '0', 188 | `email` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '0', 189 | `role` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '1', 190 | PRIMARY KEY (`id`) USING BTREE 191 | ) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Compact; 192 | 193 | -- ---------------------------- 194 | -- Records of user 195 | -- ---------------------------- 196 | INSERT INTO `user` VALUES ('10003', '徐广超', 'https://www.ylesb.com/csimg/0QQ图片20191016194509.jpg', 'FCEA92F7412B5DA7BE0CF42B8C93759', 0, '8:00', '17:00', '15054959694', '466534434@qq.com', '1'); 197 | INSERT INTO `user` VALUES ('10004', '谭蕾', 'http://localhost:8080/faceImg/1111.jpg', 'E1ADC3949BA59ABBE56E057F2F883E', 0, '8:00', '17:00', '15054959694', '466534434@qq.com', '1'); 198 | INSERT INTO `user` VALUES ('10007', 'xgc', '0', 'E1ADC3949BA59ABBE56E057F2F883E', 0, '8:00', '17:00', '0', '0', '0'); 199 | INSERT INTO `user` VALUES ('10008', 'tl', '0', 'E1ADC3949BA59ABBE56E057F2F883E', 0, '8:00', '17:00', '0', '0', '0'); 200 | 201 | SET FOREIGN_KEY_CHECKS = 1; 202 | -------------------------------------------------------------------------------- /mvnw: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | # ---------------------------------------------------------------------------- 3 | # Licensed to the Apache Software Foundation (ASF) under one 4 | # or more contributor license agreements. See the NOTICE file 5 | # distributed with this work for additional information 6 | # regarding copyright ownership. The ASF licenses this file 7 | # to you under the Apache License, Version 2.0 (the 8 | # "License"); you may not use this file except in compliance 9 | # with the License. You may obtain a copy of the License at 10 | # 11 | # https://www.apache.org/licenses/LICENSE-2.0 12 | # 13 | # Unless required by applicable law or agreed to in writing, 14 | # software distributed under the License is distributed on an 15 | # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16 | # KIND, either express or implied. See the License for the 17 | # specific language governing permissions and limitations 18 | # under the License. 19 | # ---------------------------------------------------------------------------- 20 | 21 | # ---------------------------------------------------------------------------- 22 | # Maven Start Up Batch script 23 | # 24 | # Required ENV vars: 25 | # ------------------ 26 | # JAVA_HOME - location of a JDK home dir 27 | # 28 | # Optional ENV vars 29 | # ----------------- 30 | # M2_HOME - location of maven2's installed home dir 31 | # MAVEN_OPTS - parameters passed to the Java VM when running Maven 32 | # e.g. to debug Maven itself, use 33 | # set MAVEN_OPTS=-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=8000 34 | # MAVEN_SKIP_RC - flag to disable loading of mavenrc files 35 | # ---------------------------------------------------------------------------- 36 | 37 | if [ -z "$MAVEN_SKIP_RC" ] ; then 38 | 39 | if [ -f /etc/mavenrc ] ; then 40 | . /etc/mavenrc 41 | fi 42 | 43 | if [ -f "$HOME/.mavenrc" ] ; then 44 | . "$HOME/.mavenrc" 45 | fi 46 | 47 | fi 48 | 49 | # OS specific support. $var _must_ be set to either true or false. 50 | cygwin=false; 51 | darwin=false; 52 | mingw=false 53 | case "`uname`" in 54 | CYGWIN*) cygwin=true ;; 55 | MINGW*) mingw=true;; 56 | Darwin*) darwin=true 57 | # Use /usr/libexec/java_home if available, otherwise fall back to /Library/Java/Home 58 | # See https://developer.apple.com/library/mac/qa/qa1170/_index.html 59 | if [ -z "$JAVA_HOME" ]; then 60 | if [ -x "/usr/libexec/java_home" ]; then 61 | export JAVA_HOME="`/usr/libexec/java_home`" 62 | else 63 | export JAVA_HOME="/Library/Java/Home" 64 | fi 65 | fi 66 | ;; 67 | esac 68 | 69 | if [ -z "$JAVA_HOME" ] ; then 70 | if [ -r /etc/gentoo-release ] ; then 71 | JAVA_HOME=`java-config --jre-home` 72 | fi 73 | fi 74 | 75 | if [ -z "$M2_HOME" ] ; then 76 | ## resolve links - $0 may be a link to maven's home 77 | PRG="$0" 78 | 79 | # need this for relative symlinks 80 | while [ -h "$PRG" ] ; do 81 | ls=`ls -ld "$PRG"` 82 | link=`expr "$ls" : '.*-> \(.*\)$'` 83 | if expr "$link" : '/.*' > /dev/null; then 84 | PRG="$link" 85 | else 86 | PRG="`dirname "$PRG"`/$link" 87 | fi 88 | done 89 | 90 | saveddir=`pwd` 91 | 92 | M2_HOME=`dirname "$PRG"`/.. 93 | 94 | # make it fully qualified 95 | M2_HOME=`cd "$M2_HOME" && pwd` 96 | 97 | cd "$saveddir" 98 | # echo Using m2 at $M2_HOME 99 | fi 100 | 101 | # For Cygwin, ensure paths are in UNIX format before anything is touched 102 | if $cygwin ; then 103 | [ -n "$M2_HOME" ] && 104 | M2_HOME=`cygpath --unix "$M2_HOME"` 105 | [ -n "$JAVA_HOME" ] && 106 | JAVA_HOME=`cygpath --unix "$JAVA_HOME"` 107 | [ -n "$CLASSPATH" ] && 108 | CLASSPATH=`cygpath --path --unix "$CLASSPATH"` 109 | fi 110 | 111 | # For Mingw, ensure paths are in UNIX format before anything is touched 112 | if $mingw ; then 113 | [ -n "$M2_HOME" ] && 114 | M2_HOME="`(cd "$M2_HOME"; pwd)`" 115 | [ -n "$JAVA_HOME" ] && 116 | JAVA_HOME="`(cd "$JAVA_HOME"; pwd)`" 117 | fi 118 | 119 | if [ -z "$JAVA_HOME" ]; then 120 | javaExecutable="`which javac`" 121 | if [ -n "$javaExecutable" ] && ! [ "`expr \"$javaExecutable\" : '\([^ ]*\)'`" = "no" ]; then 122 | # readlink(1) is not available as standard on Solaris 10. 123 | readLink=`which readlink` 124 | if [ ! `expr "$readLink" : '\([^ ]*\)'` = "no" ]; then 125 | if $darwin ; then 126 | javaHome="`dirname \"$javaExecutable\"`" 127 | javaExecutable="`cd \"$javaHome\" && pwd -P`/javac" 128 | else 129 | javaExecutable="`readlink -f \"$javaExecutable\"`" 130 | fi 131 | javaHome="`dirname \"$javaExecutable\"`" 132 | javaHome=`expr "$javaHome" : '\(.*\)/bin'` 133 | JAVA_HOME="$javaHome" 134 | export JAVA_HOME 135 | fi 136 | fi 137 | fi 138 | 139 | if [ -z "$JAVACMD" ] ; then 140 | if [ -n "$JAVA_HOME" ] ; then 141 | if [ -x "$JAVA_HOME/jre/sh/java" ] ; then 142 | # IBM's JDK on AIX uses strange locations for the executables 143 | JAVACMD="$JAVA_HOME/jre/sh/java" 144 | else 145 | JAVACMD="$JAVA_HOME/bin/java" 146 | fi 147 | else 148 | JAVACMD="`which java`" 149 | fi 150 | fi 151 | 152 | if [ ! -x "$JAVACMD" ] ; then 153 | echo "Error: JAVA_HOME is not defined correctly." >&2 154 | echo " We cannot execute $JAVACMD" >&2 155 | exit 1 156 | fi 157 | 158 | if [ -z "$JAVA_HOME" ] ; then 159 | echo "Warning: JAVA_HOME environment variable is not set." 160 | fi 161 | 162 | CLASSWORLDS_LAUNCHER=org.codehaus.plexus.classworlds.launcher.Launcher 163 | 164 | # traverses directory structure from process work directory to filesystem root 165 | # first directory with .mvn subdirectory is considered project base directory 166 | find_maven_basedir() { 167 | 168 | if [ -z "$1" ] 169 | then 170 | echo "Path not specified to find_maven_basedir" 171 | return 1 172 | fi 173 | 174 | basedir="$1" 175 | wdir="$1" 176 | while [ "$wdir" != '/' ] ; do 177 | if [ -d "$wdir"/.mvn ] ; then 178 | basedir=$wdir 179 | break 180 | fi 181 | # workaround for JBEAP-8937 (on Solaris 10/Sparc) 182 | if [ -d "${wdir}" ]; then 183 | wdir=`cd "$wdir/.."; pwd` 184 | fi 185 | # end of workaround 186 | done 187 | echo "${basedir}" 188 | } 189 | 190 | # concatenates all lines of a file 191 | concat_lines() { 192 | if [ -f "$1" ]; then 193 | echo "$(tr -s '\n' ' ' < "$1")" 194 | fi 195 | } 196 | 197 | BASE_DIR=`find_maven_basedir "$(pwd)"` 198 | if [ -z "$BASE_DIR" ]; then 199 | exit 1; 200 | fi 201 | 202 | ########################################################################################## 203 | # Extension to allow automatically downloading the maven-wrapper.jar from Maven-central 204 | # This allows using the maven wrapper in projects that prohibit checking in binary data. 205 | ########################################################################################## 206 | if [ -r "$BASE_DIR/.mvn/wrapper/maven-wrapper.jar" ]; then 207 | if [ "$MVNW_VERBOSE" = true ]; then 208 | echo "Found .mvn/wrapper/maven-wrapper.jar" 209 | fi 210 | else 211 | if [ "$MVNW_VERBOSE" = true ]; then 212 | echo "Couldn't find .mvn/wrapper/maven-wrapper.jar, downloading it ..." 213 | fi 214 | if [ -n "$MVNW_REPOURL" ]; then 215 | jarUrl="$MVNW_REPOURL/io/takari/maven-wrapper/0.5.6/maven-wrapper-0.5.6.jar" 216 | else 217 | jarUrl="https://repo.maven.apache.org/maven2/io/takari/maven-wrapper/0.5.6/maven-wrapper-0.5.6.jar" 218 | fi 219 | while IFS="=" read key value; do 220 | case "$key" in (wrapperUrl) jarUrl="$value"; break ;; 221 | esac 222 | done < "$BASE_DIR/.mvn/wrapper/maven-wrapper.properties" 223 | if [ "$MVNW_VERBOSE" = true ]; then 224 | echo "Downloading from: $jarUrl" 225 | fi 226 | wrapperJarPath="$BASE_DIR/.mvn/wrapper/maven-wrapper.jar" 227 | if $cygwin; then 228 | wrapperJarPath=`cygpath --path --windows "$wrapperJarPath"` 229 | fi 230 | 231 | if command -v wget > /dev/null; then 232 | if [ "$MVNW_VERBOSE" = true ]; then 233 | echo "Found wget ... using wget" 234 | fi 235 | if [ -z "$MVNW_USERNAME" ] || [ -z "$MVNW_PASSWORD" ]; then 236 | wget "$jarUrl" -O "$wrapperJarPath" 237 | else 238 | wget --http-user=$MVNW_USERNAME --http-password=$MVNW_PASSWORD "$jarUrl" -O "$wrapperJarPath" 239 | fi 240 | elif command -v curl > /dev/null; then 241 | if [ "$MVNW_VERBOSE" = true ]; then 242 | echo "Found curl ... using curl" 243 | fi 244 | if [ -z "$MVNW_USERNAME" ] || [ -z "$MVNW_PASSWORD" ]; then 245 | curl -o "$wrapperJarPath" "$jarUrl" -f 246 | else 247 | curl --user $MVNW_USERNAME:$MVNW_PASSWORD -o "$wrapperJarPath" "$jarUrl" -f 248 | fi 249 | 250 | else 251 | if [ "$MVNW_VERBOSE" = true ]; then 252 | echo "Falling back to using Java to download" 253 | fi 254 | javaClass="$BASE_DIR/.mvn/wrapper/MavenWrapperDownloader.java" 255 | # For Cygwin, switch paths to Windows format before running javac 256 | if $cygwin; then 257 | javaClass=`cygpath --path --windows "$javaClass"` 258 | fi 259 | if [ -e "$javaClass" ]; then 260 | if [ ! -e "$BASE_DIR/.mvn/wrapper/MavenWrapperDownloader.class" ]; then 261 | if [ "$MVNW_VERBOSE" = true ]; then 262 | echo " - Compiling MavenWrapperDownloader.java ..." 263 | fi 264 | # Compiling the Java class 265 | ("$JAVA_HOME/bin/javac" "$javaClass") 266 | fi 267 | if [ -e "$BASE_DIR/.mvn/wrapper/MavenWrapperDownloader.class" ]; then 268 | # Running the downloader 269 | if [ "$MVNW_VERBOSE" = true ]; then 270 | echo " - Running MavenWrapperDownloader.java ..." 271 | fi 272 | ("$JAVA_HOME/bin/java" -cp .mvn/wrapper MavenWrapperDownloader "$MAVEN_PROJECTBASEDIR") 273 | fi 274 | fi 275 | fi 276 | fi 277 | ########################################################################################## 278 | # End of extension 279 | ########################################################################################## 280 | 281 | export MAVEN_PROJECTBASEDIR=${MAVEN_BASEDIR:-"$BASE_DIR"} 282 | if [ "$MVNW_VERBOSE" = true ]; then 283 | echo $MAVEN_PROJECTBASEDIR 284 | fi 285 | MAVEN_OPTS="$(concat_lines "$MAVEN_PROJECTBASEDIR/.mvn/jvm.config") $MAVEN_OPTS" 286 | 287 | # For Cygwin, switch paths to Windows format before running java 288 | if $cygwin; then 289 | [ -n "$M2_HOME" ] && 290 | M2_HOME=`cygpath --path --windows "$M2_HOME"` 291 | [ -n "$JAVA_HOME" ] && 292 | JAVA_HOME=`cygpath --path --windows "$JAVA_HOME"` 293 | [ -n "$CLASSPATH" ] && 294 | CLASSPATH=`cygpath --path --windows "$CLASSPATH"` 295 | [ -n "$MAVEN_PROJECTBASEDIR" ] && 296 | MAVEN_PROJECTBASEDIR=`cygpath --path --windows "$MAVEN_PROJECTBASEDIR"` 297 | fi 298 | 299 | # Provide a "standardized" way to retrieve the CLI args that will 300 | # work with both Windows and non-Windows executions. 301 | MAVEN_CMD_LINE_ARGS="$MAVEN_CONFIG $@" 302 | export MAVEN_CMD_LINE_ARGS 303 | 304 | WRAPPER_LAUNCHER=org.apache.maven.wrapper.MavenWrapperMain 305 | 306 | exec "$JAVACMD" \ 307 | $MAVEN_OPTS \ 308 | -classpath "$MAVEN_PROJECTBASEDIR/.mvn/wrapper/maven-wrapper.jar" \ 309 | "-Dmaven.home=${M2_HOME}" "-Dmaven.multiModuleProjectDirectory=${MAVEN_PROJECTBASEDIR}" \ 310 | ${WRAPPER_LAUNCHER} $MAVEN_CONFIG "$@" 311 | -------------------------------------------------------------------------------- /mvnw.cmd: -------------------------------------------------------------------------------- 1 | @REM ---------------------------------------------------------------------------- 2 | @REM Licensed to the Apache Software Foundation (ASF) under one 3 | @REM or more contributor license agreements. See the NOTICE file 4 | @REM distributed with this work for additional information 5 | @REM regarding copyright ownership. The ASF licenses this file 6 | @REM to you under the Apache License, Version 2.0 (the 7 | @REM "License"); you may not use this file except in compliance 8 | @REM with the License. You may obtain a copy of the License at 9 | @REM 10 | @REM https://www.apache.org/licenses/LICENSE-2.0 11 | @REM 12 | @REM Unless required by applicable law or agreed to in writing, 13 | @REM software distributed under the License is distributed on an 14 | @REM "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | @REM KIND, either express or implied. See the License for the 16 | @REM specific language governing permissions and limitations 17 | @REM under the License. 18 | @REM ---------------------------------------------------------------------------- 19 | 20 | @REM ---------------------------------------------------------------------------- 21 | @REM Maven Start Up Batch script 22 | @REM 23 | @REM Required ENV vars: 24 | @REM JAVA_HOME - location of a JDK home dir 25 | @REM 26 | @REM Optional ENV vars 27 | @REM M2_HOME - location of maven2's installed home dir 28 | @REM MAVEN_BATCH_ECHO - set to 'on' to enable the echoing of the batch commands 29 | @REM MAVEN_BATCH_PAUSE - set to 'on' to wait for a keystroke before ending 30 | @REM MAVEN_OPTS - parameters passed to the Java VM when running Maven 31 | @REM e.g. to debug Maven itself, use 32 | @REM set MAVEN_OPTS=-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=8000 33 | @REM MAVEN_SKIP_RC - flag to disable loading of mavenrc files 34 | @REM ---------------------------------------------------------------------------- 35 | 36 | @REM Begin all REM lines with '@' in case MAVEN_BATCH_ECHO is 'on' 37 | @echo off 38 | @REM set title of command window 39 | title %0 40 | @REM enable echoing by setting MAVEN_BATCH_ECHO to 'on' 41 | @if "%MAVEN_BATCH_ECHO%" == "on" echo %MAVEN_BATCH_ECHO% 42 | 43 | @REM set %HOME% to equivalent of $HOME 44 | if "%HOME%" == "" (set "HOME=%HOMEDRIVE%%HOMEPATH%") 45 | 46 | @REM Execute a user defined script before this one 47 | if not "%MAVEN_SKIP_RC%" == "" goto skipRcPre 48 | @REM check for pre script, once with legacy .bat ending and once with .cmd ending 49 | if exist "%HOME%\mavenrc_pre.bat" call "%HOME%\mavenrc_pre.bat" 50 | if exist "%HOME%\mavenrc_pre.cmd" call "%HOME%\mavenrc_pre.cmd" 51 | :skipRcPre 52 | 53 | @setlocal 54 | 55 | set ERROR_CODE=0 56 | 57 | @REM To isolate internal variables from possible post scripts, we use another setlocal 58 | @setlocal 59 | 60 | @REM ==== START VALIDATION ==== 61 | if not "%JAVA_HOME%" == "" goto OkJHome 62 | 63 | echo. 64 | echo Error: JAVA_HOME not found in your environment. >&2 65 | echo Please set the JAVA_HOME variable in your environment to match the >&2 66 | echo location of your Java installation. >&2 67 | echo. 68 | goto error 69 | 70 | :OkJHome 71 | if exist "%JAVA_HOME%\bin\java.exe" goto init 72 | 73 | echo. 74 | echo Error: JAVA_HOME is set to an invalid directory. >&2 75 | echo JAVA_HOME = "%JAVA_HOME%" >&2 76 | echo Please set the JAVA_HOME variable in your environment to match the >&2 77 | echo location of your Java installation. >&2 78 | echo. 79 | goto error 80 | 81 | @REM ==== END VALIDATION ==== 82 | 83 | :init 84 | 85 | @REM Find the project base dir, i.e. the directory that contains the folder ".mvn". 86 | @REM Fallback to current working directory if not found. 87 | 88 | set MAVEN_PROJECTBASEDIR=%MAVEN_BASEDIR% 89 | IF NOT "%MAVEN_PROJECTBASEDIR%"=="" goto endDetectBaseDir 90 | 91 | set EXEC_DIR=%CD% 92 | set WDIR=%EXEC_DIR% 93 | :findBaseDir 94 | IF EXIST "%WDIR%"\.mvn goto baseDirFound 95 | cd .. 96 | IF "%WDIR%"=="%CD%" goto baseDirNotFound 97 | set WDIR=%CD% 98 | goto findBaseDir 99 | 100 | :baseDirFound 101 | set MAVEN_PROJECTBASEDIR=%WDIR% 102 | cd "%EXEC_DIR%" 103 | goto endDetectBaseDir 104 | 105 | :baseDirNotFound 106 | set MAVEN_PROJECTBASEDIR=%EXEC_DIR% 107 | cd "%EXEC_DIR%" 108 | 109 | :endDetectBaseDir 110 | 111 | IF NOT EXIST "%MAVEN_PROJECTBASEDIR%\.mvn\jvm.config" goto endReadAdditionalConfig 112 | 113 | @setlocal EnableExtensions EnableDelayedExpansion 114 | for /F "usebackq delims=" %%a in ("%MAVEN_PROJECTBASEDIR%\.mvn\jvm.config") do set JVM_CONFIG_MAVEN_PROPS=!JVM_CONFIG_MAVEN_PROPS! %%a 115 | @endlocal & set JVM_CONFIG_MAVEN_PROPS=%JVM_CONFIG_MAVEN_PROPS% 116 | 117 | :endReadAdditionalConfig 118 | 119 | SET MAVEN_JAVA_EXE="%JAVA_HOME%\bin\java.exe" 120 | set WRAPPER_JAR="%MAVEN_PROJECTBASEDIR%\.mvn\wrapper\maven-wrapper.jar" 121 | set WRAPPER_LAUNCHER=org.apache.maven.wrapper.MavenWrapperMain 122 | 123 | set DOWNLOAD_URL="https://repo.maven.apache.org/maven2/io/takari/maven-wrapper/0.5.6/maven-wrapper-0.5.6.jar" 124 | 125 | FOR /F "tokens=1,2 delims==" %%A IN ("%MAVEN_PROJECTBASEDIR%\.mvn\wrapper\maven-wrapper.properties") DO ( 126 | IF "%%A"=="wrapperUrl" SET DOWNLOAD_URL=%%B 127 | ) 128 | 129 | @REM Extension to allow automatically downloading the maven-wrapper.jar from Maven-central 130 | @REM This allows using the maven wrapper in projects that prohibit checking in binary data. 131 | if exist %WRAPPER_JAR% ( 132 | if "%MVNW_VERBOSE%" == "true" ( 133 | echo Found %WRAPPER_JAR% 134 | ) 135 | ) else ( 136 | if not "%MVNW_REPOURL%" == "" ( 137 | SET DOWNLOAD_URL="%MVNW_REPOURL%/io/takari/maven-wrapper/0.5.6/maven-wrapper-0.5.6.jar" 138 | ) 139 | if "%MVNW_VERBOSE%" == "true" ( 140 | echo Couldn't find %WRAPPER_JAR%, downloading it ... 141 | echo Downloading from: %DOWNLOAD_URL% 142 | ) 143 | 144 | powershell -Command "&{"^ 145 | "$webclient = new-object System.Net.WebClient;"^ 146 | "if (-not ([string]::IsNullOrEmpty('%MVNW_USERNAME%') -and [string]::IsNullOrEmpty('%MVNW_PASSWORD%'))) {"^ 147 | "$webclient.Credentials = new-object System.Net.NetworkCredential('%MVNW_USERNAME%', '%MVNW_PASSWORD%');"^ 148 | "}"^ 149 | "[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12; $webclient.DownloadFile('%DOWNLOAD_URL%', '%WRAPPER_JAR%')"^ 150 | "}" 151 | if "%MVNW_VERBOSE%" == "true" ( 152 | echo Finished downloading %WRAPPER_JAR% 153 | ) 154 | ) 155 | @REM End of extension 156 | 157 | @REM Provide a "standardized" way to retrieve the CLI args that will 158 | @REM work with both Windows and non-Windows executions. 159 | set MAVEN_CMD_LINE_ARGS=%* 160 | 161 | %MAVEN_JAVA_EXE% %JVM_CONFIG_MAVEN_PROPS% %MAVEN_OPTS% %MAVEN_DEBUG_OPTS% -classpath %WRAPPER_JAR% "-Dmaven.multiModuleProjectDirectory=%MAVEN_PROJECTBASEDIR%" %WRAPPER_LAUNCHER% %MAVEN_CONFIG% %* 162 | if ERRORLEVEL 1 goto error 163 | goto end 164 | 165 | :error 166 | set ERROR_CODE=1 167 | 168 | :end 169 | @endlocal & set ERROR_CODE=%ERROR_CODE% 170 | 171 | if not "%MAVEN_SKIP_RC%" == "" goto skipRcPost 172 | @REM check for post script, once with legacy .bat ending and once with .cmd ending 173 | if exist "%HOME%\mavenrc_post.bat" call "%HOME%\mavenrc_post.bat" 174 | if exist "%HOME%\mavenrc_post.cmd" call "%HOME%\mavenrc_post.cmd" 175 | :skipRcPost 176 | 177 | @REM pause the script if MAVEN_BATCH_PAUSE is set to 'on' 178 | if "%MAVEN_BATCH_PAUSE%" == "on" pause 179 | 180 | if "%MAVEN_TERMINATE_CMD%" == "on" exit %ERROR_CODE% 181 | 182 | exit /B %ERROR_CODE% 183 | -------------------------------------------------------------------------------- /my.log: -------------------------------------------------------------------------------- 1 | 2021/05/29-13:52 [main] INFO com.ylesb.bsfs.BsfsApplication- Starting BsfsApplication using Java 1.8.0_121 on XGC with PID 21428 (F:\IDEAProject\bsfs\target\classes started by 46653 in F:\IDEAProject\bsfs) 2 | 2021/05/29-13:52 [main] INFO com.ylesb.bsfs.BsfsApplication- No active profile set, falling back to default profiles: default 3 | 2021/05/29-13:52 [main] INFO org.springframework.boot.web.embedded.tomcat.TomcatWebServer- Tomcat initialized with port(s): 8080 (http) 4 | 2021/05/29-13:52 [main] INFO org.apache.catalina.core.StandardService- Starting service [Tomcat] 5 | 2021/05/29-13:52 [main] INFO org.apache.catalina.core.StandardEngine- Starting Servlet engine: [Apache Tomcat/9.0.45] 6 | 2021/05/29-13:52 [main] INFO org.apache.catalina.core.ContainerBase.[Tomcat].[localhost].[/]- Initializing Spring embedded WebApplicationContext 7 | 2021/05/29-13:52 [main] INFO org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext- Root WebApplicationContext: initialization completed in 1600 ms 8 | 2021/05/29-13:52 [main] INFO springfox.documentation.spring.web.PropertySourcedRequestMappingHandlerMapping- Mapped URL path [/v2/api-docs] onto method [springfox.documentation.swagger2.web.Swagger2Controller#getDocumentation(String, HttpServletRequest)] 9 | 2021/05/29-13:52 [main] INFO org.springframework.scheduling.concurrent.ThreadPoolTaskExecutor- Initializing ExecutorService 'applicationTaskExecutor' 10 | 2021/05/29-13:52 [main] WARN org.springframework.boot.autoconfigure.thymeleaf.ThymeleafAutoConfiguration$DefaultTemplateResolverConfiguration- Cannot find template location: classpath:/templates/ (please add some templates or check your Thymeleaf configuration) 11 | 2021/05/29-13:52 [main] INFO org.springframework.boot.web.embedded.tomcat.TomcatWebServer- Tomcat started on port(s): 8080 (http) with context path '' 12 | 2021/05/29-13:52 [main] INFO springfox.documentation.spring.web.plugins.DocumentationPluginsBootstrapper- Context refreshed 13 | 2021/05/29-13:52 [main] INFO springfox.documentation.spring.web.plugins.DocumentationPluginsBootstrapper- Found 1 custom documentation plugin(s) 14 | 2021/05/29-13:52 [main] INFO springfox.documentation.spring.web.scanners.ApiListingReferenceScanner- Scanning for api listing references 15 | 2021/05/29-13:52 [main] INFO springfox.documentation.spring.web.readers.operation.CachingOperationNameGenerator- Generating unique operation named: findallUsingPOST_1 16 | 2021/05/29-13:52 [main] INFO springfox.documentation.spring.web.readers.operation.CachingOperationNameGenerator- Generating unique operation named: updatepwdUsingPOST_1 17 | 2021/05/29-13:52 [main] INFO springfox.documentation.spring.web.readers.operation.CachingOperationNameGenerator- Generating unique operation named: uploadImgUsingPOST_1 18 | 2021/05/29-13:52 [main] INFO springfox.documentation.spring.web.readers.operation.CachingOperationNameGenerator- Generating unique operation named: loginUsingPOST_1 19 | 2021/05/29-13:52 [main] INFO springfox.documentation.spring.web.readers.operation.CachingOperationNameGenerator- Generating unique operation named: addfaceimgUsingPOST_1 20 | 2021/05/29-13:52 [main] INFO springfox.documentation.spring.web.readers.operation.CachingOperationNameGenerator- Generating unique operation named: delapplyUsingPOST_1 21 | 2021/05/29-13:52 [main] INFO springfox.documentation.spring.web.readers.operation.CachingOperationNameGenerator- Generating unique operation named: findallUsingPOST_2 22 | 2021/05/29-13:52 [main] INFO springfox.documentation.spring.web.readers.operation.CachingOperationNameGenerator- Generating unique operation named: findallUsingPOST_3 23 | 2021/05/29-13:52 [main] INFO springfox.documentation.spring.web.readers.operation.CachingOperationNameGenerator- Generating unique operation named: loginUsingPOST_2 24 | 2021/05/29-13:52 [main] INFO springfox.documentation.spring.web.readers.operation.CachingOperationNameGenerator- Generating unique operation named: updatepwdUsingPOST_2 25 | 2021/05/29-13:52 [main] INFO com.ylesb.bsfs.BsfsApplication- Started BsfsApplication in 3.703 seconds (JVM running for 5.485) 26 | 2021/05/29-13:52 [main] INFO com.ylesb.bsfs.BsfsApplication- 服务启动完成! 27 | 2021/05/29-13:52 [http-nio-8080-exec-1] INFO org.apache.catalina.core.ContainerBase.[Tomcat].[localhost].[/]- Initializing Spring DispatcherServlet 'dispatcherServlet' 28 | 2021/05/29-13:52 [http-nio-8080-exec-1] INFO org.springframework.web.servlet.DispatcherServlet- Initializing Servlet 'dispatcherServlet' 29 | 2021/05/29-13:52 [http-nio-8080-exec-1] INFO org.springframework.web.servlet.DispatcherServlet- Completed initialization in 1 ms 30 | 2021/05/29-13:52 [http-nio-8080-exec-1] INFO com.zaxxer.hikari.HikariDataSource- test - Starting... 31 | 2021/05/29-13:52 [http-nio-8080-exec-1] INFO com.zaxxer.hikari.HikariDataSource- test - Start completed. 32 | 2021/05/29-14:03 [main] INFO com.ylesb.bsfs.BsfsApplication- Starting BsfsApplication using Java 1.8.0_121 on XGC with PID 9452 (F:\IDEAProject\bsfs\target\classes started by 46653 in F:\IDEAProject\bsfs) 33 | 2021/05/29-14:03 [main] INFO com.ylesb.bsfs.BsfsApplication- No active profile set, falling back to default profiles: default 34 | 2021/05/29-14:03 [main] INFO org.springframework.boot.web.embedded.tomcat.TomcatWebServer- Tomcat initialized with port(s): 8080 (http) 35 | 2021/05/29-14:03 [main] INFO org.apache.catalina.core.StandardService- Starting service [Tomcat] 36 | 2021/05/29-14:03 [main] INFO org.apache.catalina.core.StandardEngine- Starting Servlet engine: [Apache Tomcat/9.0.45] 37 | 2021/05/29-14:03 [main] INFO org.apache.catalina.core.ContainerBase.[Tomcat].[localhost].[/]- Initializing Spring embedded WebApplicationContext 38 | 2021/05/29-14:03 [main] INFO org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext- Root WebApplicationContext: initialization completed in 1301 ms 39 | 2021/05/29-14:03 [main] INFO springfox.documentation.spring.web.PropertySourcedRequestMappingHandlerMapping- Mapped URL path [/v2/api-docs] onto method [springfox.documentation.swagger2.web.Swagger2Controller#getDocumentation(String, HttpServletRequest)] 40 | 2021/05/29-14:03 [main] INFO org.springframework.scheduling.concurrent.ThreadPoolTaskExecutor- Initializing ExecutorService 'applicationTaskExecutor' 41 | 2021/05/29-14:03 [main] WARN org.springframework.boot.autoconfigure.thymeleaf.ThymeleafAutoConfiguration$DefaultTemplateResolverConfiguration- Cannot find template location: classpath:/templates/ (please add some templates or check your Thymeleaf configuration) 42 | 2021/05/29-14:03 [main] INFO org.springframework.boot.web.embedded.tomcat.TomcatWebServer- Tomcat started on port(s): 8080 (http) with context path '' 43 | 2021/05/29-14:03 [main] INFO springfox.documentation.spring.web.plugins.DocumentationPluginsBootstrapper- Context refreshed 44 | 2021/05/29-14:03 [main] INFO springfox.documentation.spring.web.plugins.DocumentationPluginsBootstrapper- Found 1 custom documentation plugin(s) 45 | 2021/05/29-14:03 [main] INFO springfox.documentation.spring.web.scanners.ApiListingReferenceScanner- Scanning for api listing references 46 | 2021/05/29-14:03 [main] INFO springfox.documentation.spring.web.readers.operation.CachingOperationNameGenerator- Generating unique operation named: findallUsingPOST_1 47 | 2021/05/29-14:03 [main] INFO springfox.documentation.spring.web.readers.operation.CachingOperationNameGenerator- Generating unique operation named: updatepwdUsingPOST_1 48 | 2021/05/29-14:03 [main] INFO springfox.documentation.spring.web.readers.operation.CachingOperationNameGenerator- Generating unique operation named: uploadImgUsingPOST_1 49 | 2021/05/29-14:03 [main] INFO springfox.documentation.spring.web.readers.operation.CachingOperationNameGenerator- Generating unique operation named: loginUsingPOST_1 50 | 2021/05/29-14:03 [main] INFO springfox.documentation.spring.web.readers.operation.CachingOperationNameGenerator- Generating unique operation named: addfaceimgUsingPOST_1 51 | 2021/05/29-14:03 [main] INFO springfox.documentation.spring.web.readers.operation.CachingOperationNameGenerator- Generating unique operation named: delapplyUsingPOST_1 52 | 2021/05/29-14:03 [main] INFO springfox.documentation.spring.web.readers.operation.CachingOperationNameGenerator- Generating unique operation named: findallUsingPOST_2 53 | 2021/05/29-14:03 [main] INFO springfox.documentation.spring.web.readers.operation.CachingOperationNameGenerator- Generating unique operation named: findallUsingPOST_3 54 | 2021/05/29-14:03 [main] INFO springfox.documentation.spring.web.readers.operation.CachingOperationNameGenerator- Generating unique operation named: loginUsingPOST_2 55 | 2021/05/29-14:03 [main] INFO springfox.documentation.spring.web.readers.operation.CachingOperationNameGenerator- Generating unique operation named: updatepwdUsingPOST_2 56 | 2021/05/29-14:03 [main] INFO com.ylesb.bsfs.BsfsApplication- Started BsfsApplication in 2.785 seconds (JVM running for 4.642) 57 | 2021/05/29-14:03 [main] INFO com.ylesb.bsfs.BsfsApplication- 服务启动完成! 58 | 2021/05/29-14:04 [http-nio-8080-exec-1] INFO org.apache.catalina.core.ContainerBase.[Tomcat].[localhost].[/]- Initializing Spring DispatcherServlet 'dispatcherServlet' 59 | 2021/05/29-14:04 [http-nio-8080-exec-1] INFO org.springframework.web.servlet.DispatcherServlet- Initializing Servlet 'dispatcherServlet' 60 | 2021/05/29-14:04 [http-nio-8080-exec-1] INFO org.springframework.web.servlet.DispatcherServlet- Completed initialization in 1 ms 61 | 2021/05/29-15:32 [http-nio-8080-exec-6] INFO com.zaxxer.hikari.HikariDataSource- test - Starting... 62 | 2021/05/29-15:32 [http-nio-8080-exec-6] INFO com.zaxxer.hikari.HikariDataSource- test - Start completed. 63 | 2021/05/29-15:42 [main] INFO com.ylesb.bsfs.BsfsApplication- Starting BsfsApplication using Java 1.8.0_121 on XGC with PID 11204 (F:\IDEAProject\bsfs\target\classes started by 46653 in F:\IDEAProject\bsfs) 64 | 2021/05/29-15:42 [main] INFO com.ylesb.bsfs.BsfsApplication- No active profile set, falling back to default profiles: default 65 | 2021/05/29-15:42 [main] INFO org.springframework.boot.web.embedded.tomcat.TomcatWebServer- Tomcat initialized with port(s): 8080 (http) 66 | 2021/05/29-15:42 [main] INFO org.apache.catalina.core.StandardService- Starting service [Tomcat] 67 | 2021/05/29-15:42 [main] INFO org.apache.catalina.core.StandardEngine- Starting Servlet engine: [Apache Tomcat/9.0.45] 68 | 2021/05/29-15:42 [main] INFO org.apache.catalina.core.ContainerBase.[Tomcat].[localhost].[/]- Initializing Spring embedded WebApplicationContext 69 | 2021/05/29-15:42 [main] INFO org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext- Root WebApplicationContext: initialization completed in 1411 ms 70 | 2021/05/29-15:42 [main] INFO springfox.documentation.spring.web.PropertySourcedRequestMappingHandlerMapping- Mapped URL path [/v2/api-docs] onto method [springfox.documentation.swagger2.web.Swagger2Controller#getDocumentation(String, HttpServletRequest)] 71 | 2021/05/29-15:42 [main] INFO org.springframework.scheduling.concurrent.ThreadPoolTaskExecutor- Initializing ExecutorService 'applicationTaskExecutor' 72 | 2021/05/29-15:42 [main] WARN org.springframework.boot.autoconfigure.thymeleaf.ThymeleafAutoConfiguration$DefaultTemplateResolverConfiguration- Cannot find template location: classpath:/templates/ (please add some templates or check your Thymeleaf configuration) 73 | 2021/05/29-15:42 [main] INFO org.springframework.boot.web.embedded.tomcat.TomcatWebServer- Tomcat started on port(s): 8080 (http) with context path '' 74 | 2021/05/29-15:42 [main] INFO springfox.documentation.spring.web.plugins.DocumentationPluginsBootstrapper- Context refreshed 75 | 2021/05/29-15:42 [main] INFO springfox.documentation.spring.web.plugins.DocumentationPluginsBootstrapper- Found 1 custom documentation plugin(s) 76 | 2021/05/29-15:42 [main] INFO springfox.documentation.spring.web.scanners.ApiListingReferenceScanner- Scanning for api listing references 77 | 2021/05/29-15:42 [main] INFO springfox.documentation.spring.web.readers.operation.CachingOperationNameGenerator- Generating unique operation named: findallUsingPOST_1 78 | 2021/05/29-15:42 [http-nio-8080-exec-1] INFO org.apache.catalina.core.ContainerBase.[Tomcat].[localhost].[/]- Initializing Spring DispatcherServlet 'dispatcherServlet' 79 | 2021/05/29-15:42 [http-nio-8080-exec-1] INFO org.springframework.web.servlet.DispatcherServlet- Initializing Servlet 'dispatcherServlet' 80 | 2021/05/29-15:42 [http-nio-8080-exec-1] INFO org.springframework.web.servlet.DispatcherServlet- Completed initialization in 1 ms 81 | 2021/05/29-15:42 [main] INFO springfox.documentation.spring.web.readers.operation.CachingOperationNameGenerator- Generating unique operation named: updatepwdUsingPOST_1 82 | 2021/05/29-15:42 [main] INFO springfox.documentation.spring.web.readers.operation.CachingOperationNameGenerator- Generating unique operation named: uploadImgUsingPOST_1 83 | 2021/05/29-15:42 [main] INFO springfox.documentation.spring.web.readers.operation.CachingOperationNameGenerator- Generating unique operation named: loginUsingPOST_1 84 | 2021/05/29-15:42 [http-nio-8080-exec-1] INFO com.zaxxer.hikari.HikariDataSource- test - Starting... 85 | 2021/05/29-15:42 [main] INFO springfox.documentation.spring.web.readers.operation.CachingOperationNameGenerator- Generating unique operation named: addfaceimgUsingPOST_1 86 | 2021/05/29-15:42 [main] INFO springfox.documentation.spring.web.readers.operation.CachingOperationNameGenerator- Generating unique operation named: delapplyUsingPOST_1 87 | 2021/05/29-15:42 [main] INFO springfox.documentation.spring.web.readers.operation.CachingOperationNameGenerator- Generating unique operation named: findallUsingPOST_2 88 | 2021/05/29-15:42 [main] INFO springfox.documentation.spring.web.readers.operation.CachingOperationNameGenerator- Generating unique operation named: findallUsingPOST_3 89 | 2021/05/29-15:42 [main] INFO springfox.documentation.spring.web.readers.operation.CachingOperationNameGenerator- Generating unique operation named: loginUsingPOST_2 90 | 2021/05/29-15:42 [main] INFO springfox.documentation.spring.web.readers.operation.CachingOperationNameGenerator- Generating unique operation named: updatepwdUsingPOST_2 91 | 2021/05/29-15:42 [main] INFO com.ylesb.bsfs.BsfsApplication- Started BsfsApplication in 3.134 seconds (JVM running for 4.877) 92 | 2021/05/29-15:42 [main] INFO com.ylesb.bsfs.BsfsApplication- 服务启动完成! 93 | 2021/05/29-15:42 [http-nio-8080-exec-1] INFO com.zaxxer.hikari.HikariDataSource- test - Start completed. 94 | 2021/05/29-15:43 [main] INFO com.ylesb.bsfs.BsfsApplication- Starting BsfsApplication using Java 1.8.0_121 on XGC with PID 16328 (F:\IDEAProject\bsfs\target\classes started by 46653 in F:\IDEAProject\bsfs) 95 | 2021/05/29-15:43 [main] INFO com.ylesb.bsfs.BsfsApplication- No active profile set, falling back to default profiles: default 96 | 2021/05/29-15:43 [main] INFO org.springframework.boot.web.embedded.tomcat.TomcatWebServer- Tomcat initialized with port(s): 8080 (http) 97 | 2021/05/29-15:43 [main] INFO org.apache.catalina.core.StandardService- Starting service [Tomcat] 98 | 2021/05/29-15:43 [main] INFO org.apache.catalina.core.StandardEngine- Starting Servlet engine: [Apache Tomcat/9.0.45] 99 | 2021/05/29-15:43 [main] INFO org.apache.catalina.core.ContainerBase.[Tomcat].[localhost].[/]- Initializing Spring embedded WebApplicationContext 100 | 2021/05/29-15:43 [main] INFO org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext- Root WebApplicationContext: initialization completed in 1735 ms 101 | 2021/05/29-15:43 [main] INFO springfox.documentation.spring.web.PropertySourcedRequestMappingHandlerMapping- Mapped URL path [/v2/api-docs] onto method [springfox.documentation.swagger2.web.Swagger2Controller#getDocumentation(String, HttpServletRequest)] 102 | 2021/05/29-15:43 [main] INFO org.springframework.scheduling.concurrent.ThreadPoolTaskExecutor- Initializing ExecutorService 'applicationTaskExecutor' 103 | 2021/05/29-15:43 [main] WARN org.springframework.boot.autoconfigure.thymeleaf.ThymeleafAutoConfiguration$DefaultTemplateResolverConfiguration- Cannot find template location: classpath:/templates/ (please add some templates or check your Thymeleaf configuration) 104 | 2021/05/29-15:43 [main] INFO org.springframework.boot.web.embedded.tomcat.TomcatWebServer- Tomcat started on port(s): 8080 (http) with context path '' 105 | 2021/05/29-15:43 [main] INFO springfox.documentation.spring.web.plugins.DocumentationPluginsBootstrapper- Context refreshed 106 | 2021/05/29-15:43 [main] INFO springfox.documentation.spring.web.plugins.DocumentationPluginsBootstrapper- Found 1 custom documentation plugin(s) 107 | 2021/05/29-15:43 [main] INFO springfox.documentation.spring.web.scanners.ApiListingReferenceScanner- Scanning for api listing references 108 | 2021/05/29-15:43 [main] INFO springfox.documentation.spring.web.readers.operation.CachingOperationNameGenerator- Generating unique operation named: findallUsingPOST_1 109 | 2021/05/29-15:43 [main] INFO springfox.documentation.spring.web.readers.operation.CachingOperationNameGenerator- Generating unique operation named: updatepwdUsingPOST_1 110 | 2021/05/29-15:43 [main] INFO springfox.documentation.spring.web.readers.operation.CachingOperationNameGenerator- Generating unique operation named: uploadImgUsingPOST_1 111 | 2021/05/29-15:43 [main] INFO springfox.documentation.spring.web.readers.operation.CachingOperationNameGenerator- Generating unique operation named: loginUsingPOST_1 112 | 2021/05/29-15:43 [main] INFO springfox.documentation.spring.web.readers.operation.CachingOperationNameGenerator- Generating unique operation named: addfaceimgUsingPOST_1 113 | 2021/05/29-15:43 [main] INFO springfox.documentation.spring.web.readers.operation.CachingOperationNameGenerator- Generating unique operation named: delapplyUsingPOST_1 114 | 2021/05/29-15:43 [main] INFO springfox.documentation.spring.web.readers.operation.CachingOperationNameGenerator- Generating unique operation named: findallUsingPOST_2 115 | 2021/05/29-15:43 [main] INFO springfox.documentation.spring.web.readers.operation.CachingOperationNameGenerator- Generating unique operation named: findallUsingPOST_3 116 | 2021/05/29-15:43 [main] INFO springfox.documentation.spring.web.readers.operation.CachingOperationNameGenerator- Generating unique operation named: loginUsingPOST_2 117 | 2021/05/29-15:43 [main] INFO springfox.documentation.spring.web.readers.operation.CachingOperationNameGenerator- Generating unique operation named: updatepwdUsingPOST_2 118 | 2021/05/29-15:43 [main] INFO com.ylesb.bsfs.BsfsApplication- Started BsfsApplication in 4.113 seconds (JVM running for 6.108) 119 | 2021/05/29-15:43 [main] INFO com.ylesb.bsfs.BsfsApplication- 服务启动完成! 120 | 2021/05/29-15:59 [http-nio-8080-exec-1] INFO org.apache.catalina.core.ContainerBase.[Tomcat].[localhost].[/]- Initializing Spring DispatcherServlet 'dispatcherServlet' 121 | 2021/05/29-15:59 [http-nio-8080-exec-1] INFO org.springframework.web.servlet.DispatcherServlet- Initializing Servlet 'dispatcherServlet' 122 | 2021/05/29-15:59 [http-nio-8080-exec-1] INFO org.springframework.web.servlet.DispatcherServlet- Completed initialization in 1 ms 123 | 2021/05/29-15:59 [http-nio-8080-exec-1] INFO com.zaxxer.hikari.HikariDataSource- test - Starting... 124 | 2021/05/29-15:59 [http-nio-8080-exec-1] ERROR com.zaxxer.hikari.pool.HikariPool- test - Exception during pool initialization. 125 | com.mysql.cj.jdbc.exceptions.CommunicationsException: Communications link failure 126 | 127 | The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 128 | at com.mysql.cj.jdbc.exceptions.SQLError.createCommunicationsException(SQLError.java:174) 129 | at com.mysql.cj.jdbc.exceptions.SQLExceptionsMapping.translateException(SQLExceptionsMapping.java:64) 130 | at com.mysql.cj.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:833) 131 | at com.mysql.cj.jdbc.ConnectionImpl.(ConnectionImpl.java:453) 132 | at com.mysql.cj.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:246) 133 | at com.mysql.cj.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:198) 134 | at com.zaxxer.hikari.util.DriverDataSource.getConnection(DriverDataSource.java:138) 135 | at com.zaxxer.hikari.pool.PoolBase.newConnection(PoolBase.java:358) 136 | at com.zaxxer.hikari.pool.PoolBase.newPoolEntry(PoolBase.java:206) 137 | at com.zaxxer.hikari.pool.HikariPool.createPoolEntry(HikariPool.java:477) 138 | at com.zaxxer.hikari.pool.HikariPool.checkFailFast(HikariPool.java:560) 139 | at com.zaxxer.hikari.pool.HikariPool.(HikariPool.java:115) 140 | at com.zaxxer.hikari.HikariDataSource.getConnection(HikariDataSource.java:112) 141 | at org.springframework.jdbc.datasource.DataSourceUtils.fetchConnection(DataSourceUtils.java:158) 142 | at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:116) 143 | at org.springframework.jdbc.datasource.DataSourceUtils.getConnection(DataSourceUtils.java:79) 144 | at org.mybatis.spring.transaction.SpringManagedTransaction.openConnection(SpringManagedTransaction.java:80) 145 | at org.mybatis.spring.transaction.SpringManagedTransaction.getConnection(SpringManagedTransaction.java:67) 146 | at org.apache.ibatis.executor.BaseExecutor.getConnection(BaseExecutor.java:337) 147 | at org.apache.ibatis.executor.SimpleExecutor.prepareStatement(SimpleExecutor.java:86) 148 | at org.apache.ibatis.executor.SimpleExecutor.doQuery(SimpleExecutor.java:62) 149 | at org.apache.ibatis.executor.BaseExecutor.queryFromDatabase(BaseExecutor.java:325) 150 | at org.apache.ibatis.executor.BaseExecutor.query(BaseExecutor.java:156) 151 | at org.apache.ibatis.executor.CachingExecutor.query(CachingExecutor.java:109) 152 | at org.apache.ibatis.executor.CachingExecutor.query(CachingExecutor.java:89) 153 | at org.apache.ibatis.session.defaults.DefaultSqlSession.selectList(DefaultSqlSession.java:147) 154 | at org.apache.ibatis.session.defaults.DefaultSqlSession.selectList(DefaultSqlSession.java:140) 155 | at org.apache.ibatis.session.defaults.DefaultSqlSession.selectOne(DefaultSqlSession.java:76) 156 | at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 157 | at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) 158 | at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) 159 | at java.lang.reflect.Method.invoke(Method.java:498) 160 | at org.mybatis.spring.SqlSessionTemplate$SqlSessionInterceptor.invoke(SqlSessionTemplate.java:427) 161 | at com.sun.proxy.$Proxy69.selectOne(Unknown Source) 162 | at org.mybatis.spring.SqlSessionTemplate.selectOne(SqlSessionTemplate.java:160) 163 | at org.apache.ibatis.binding.MapperMethod.execute(MapperMethod.java:87) 164 | at org.apache.ibatis.binding.MapperProxy$PlainMethodInvoker.invoke(MapperProxy.java:152) 165 | at org.apache.ibatis.binding.MapperProxy.invoke(MapperProxy.java:85) 166 | at com.sun.proxy.$Proxy80.login(Unknown Source) 167 | at com.ylesb.bsfs.serviceIml.UserServiceImpl.login(UserServiceImpl.java:46) 168 | at com.ylesb.bsfs.controller.UserController.login(UserController.java:46) 169 | at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 170 | at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) 171 | at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) 172 | at java.lang.reflect.Method.invoke(Method.java:498) 173 | at org.springframework.web.method.support.InvocableHandlerMethod.doInvoke(InvocableHandlerMethod.java:197) 174 | at org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:141) 175 | at org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:106) 176 | at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandlerMethod(RequestMappingHandlerAdapter.java:894) 177 | at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:808) 178 | at org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:87) 179 | at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:1060) 180 | at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:962) 181 | at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:1006) 182 | at org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:909) 183 | at javax.servlet.http.HttpServlet.service(HttpServlet.java:652) 184 | at org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:883) 185 | at javax.servlet.http.HttpServlet.service(HttpServlet.java:733) 186 | at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:227) 187 | at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162) 188 | at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:53) 189 | at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189) 190 | at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162) 191 | at org.springframework.web.filter.RequestContextFilter.doFilterInternal(RequestContextFilter.java:100) 192 | at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:119) 193 | at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189) 194 | at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162) 195 | at org.springframework.web.filter.FormContentFilter.doFilterInternal(FormContentFilter.java:93) 196 | at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:119) 197 | at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189) 198 | at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162) 199 | at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:201) 200 | at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:119) 201 | at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189) 202 | at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162) 203 | at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:202) 204 | at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:97) 205 | at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:542) 206 | at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:143) 207 | at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:92) 208 | at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:78) 209 | at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:357) 210 | at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:374) 211 | at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:65) 212 | at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:893) 213 | at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1707) 214 | at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49) 215 | at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) 216 | at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) 217 | at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61) 218 | at java.lang.Thread.run(Thread.java:745) 219 | Caused by: com.mysql.cj.exceptions.CJCommunicationsException: Communications link failure 220 | 221 | The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 222 | at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) 223 | at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62) 224 | at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) 225 | at java.lang.reflect.Constructor.newInstance(Constructor.java:423) 226 | at com.mysql.cj.exceptions.ExceptionFactory.createException(ExceptionFactory.java:61) 227 | at com.mysql.cj.exceptions.ExceptionFactory.createException(ExceptionFactory.java:105) 228 | at com.mysql.cj.exceptions.ExceptionFactory.createException(ExceptionFactory.java:151) 229 | at com.mysql.cj.exceptions.ExceptionFactory.createCommunicationsException(ExceptionFactory.java:167) 230 | at com.mysql.cj.protocol.a.NativeSocketConnection.connect(NativeSocketConnection.java:89) 231 | at com.mysql.cj.NativeSession.connect(NativeSession.java:144) 232 | at com.mysql.cj.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:953) 233 | at com.mysql.cj.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:823) 234 | ... 88 common frames omitted 235 | Caused by: java.net.SocketException: Network is unreachable: connect 236 | at java.net.DualStackPlainSocketImpl.waitForConnect(Native Method) 237 | at java.net.DualStackPlainSocketImpl.socketConnect(DualStackPlainSocketImpl.java:85) 238 | at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:350) 239 | at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:206) 240 | at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:188) 241 | at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:172) 242 | at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392) 243 | at java.net.Socket.connect(Socket.java:589) 244 | at com.mysql.cj.protocol.StandardSocketFactory.connect(StandardSocketFactory.java:155) 245 | at com.mysql.cj.protocol.a.NativeSocketConnection.connect(NativeSocketConnection.java:63) 246 | ... 91 common frames omitted 247 | 2021/05/29-15:59 [http-nio-8080-exec-1] ERROR com.ylesb.bsfs.core.GlobalExceptionHandler- 异常: 248 | org.mybatis.spring.MyBatisSystemException: nested exception is org.apache.ibatis.exceptions.PersistenceException: 249 | ### Error querying database. Cause: org.springframework.jdbc.CannotGetJdbcConnectionException: Failed to obtain JDBC Connection; nested exception is com.mysql.cj.jdbc.exceptions.CommunicationsException: Communications link failure 250 | 251 | The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 252 | ### The error may exist in file [F:\IDEAProject\bsfs\target\classes\mapper\UserMapper.xml] 253 | ### The error may involve com.ylesb.bsfs.mapper.UserMapper.login 254 | ### The error occurred while executing a query 255 | ### Cause: org.springframework.jdbc.CannotGetJdbcConnectionException: Failed to obtain JDBC Connection; nested exception is com.mysql.cj.jdbc.exceptions.CommunicationsException: Communications link failure 256 | 257 | The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 258 | at org.mybatis.spring.MyBatisExceptionTranslator.translateExceptionIfPossible(MyBatisExceptionTranslator.java:96) 259 | at org.mybatis.spring.SqlSessionTemplate$SqlSessionInterceptor.invoke(SqlSessionTemplate.java:441) 260 | at com.sun.proxy.$Proxy69.selectOne(Unknown Source) 261 | at org.mybatis.spring.SqlSessionTemplate.selectOne(SqlSessionTemplate.java:160) 262 | at org.apache.ibatis.binding.MapperMethod.execute(MapperMethod.java:87) 263 | at org.apache.ibatis.binding.MapperProxy$PlainMethodInvoker.invoke(MapperProxy.java:152) 264 | at org.apache.ibatis.binding.MapperProxy.invoke(MapperProxy.java:85) 265 | at com.sun.proxy.$Proxy80.login(Unknown Source) 266 | at com.ylesb.bsfs.serviceIml.UserServiceImpl.login(UserServiceImpl.java:46) 267 | at com.ylesb.bsfs.controller.UserController.login(UserController.java:46) 268 | at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 269 | at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) 270 | at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) 271 | at java.lang.reflect.Method.invoke(Method.java:498) 272 | at org.springframework.web.method.support.InvocableHandlerMethod.doInvoke(InvocableHandlerMethod.java:197) 273 | at org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:141) 274 | at org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:106) 275 | at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandlerMethod(RequestMappingHandlerAdapter.java:894) 276 | at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:808) 277 | at org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:87) 278 | at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:1060) 279 | at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:962) 280 | at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:1006) 281 | at org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:909) 282 | at javax.servlet.http.HttpServlet.service(HttpServlet.java:652) 283 | at org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:883) 284 | at javax.servlet.http.HttpServlet.service(HttpServlet.java:733) 285 | at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:227) 286 | at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162) 287 | at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:53) 288 | at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189) 289 | at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162) 290 | at org.springframework.web.filter.RequestContextFilter.doFilterInternal(RequestContextFilter.java:100) 291 | at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:119) 292 | at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189) 293 | at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162) 294 | at org.springframework.web.filter.FormContentFilter.doFilterInternal(FormContentFilter.java:93) 295 | at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:119) 296 | at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189) 297 | at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162) 298 | at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:201) 299 | at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:119) 300 | at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189) 301 | at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162) 302 | at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:202) 303 | at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:97) 304 | at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:542) 305 | at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:143) 306 | at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:92) 307 | at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:78) 308 | at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:357) 309 | at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:374) 310 | at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:65) 311 | at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:893) 312 | at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1707) 313 | at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49) 314 | at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) 315 | at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) 316 | at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61) 317 | at java.lang.Thread.run(Thread.java:745) 318 | Caused by: org.apache.ibatis.exceptions.PersistenceException: 319 | ### Error querying database. Cause: org.springframework.jdbc.CannotGetJdbcConnectionException: Failed to obtain JDBC Connection; nested exception is com.mysql.cj.jdbc.exceptions.CommunicationsException: Communications link failure 320 | 321 | The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 322 | ### The error may exist in file [F:\IDEAProject\bsfs\target\classes\mapper\UserMapper.xml] 323 | ### The error may involve com.ylesb.bsfs.mapper.UserMapper.login 324 | ### The error occurred while executing a query 325 | ### Cause: org.springframework.jdbc.CannotGetJdbcConnectionException: Failed to obtain JDBC Connection; nested exception is com.mysql.cj.jdbc.exceptions.CommunicationsException: Communications link failure 326 | 327 | The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 328 | at org.apache.ibatis.exceptions.ExceptionFactory.wrapException(ExceptionFactory.java:30) 329 | at org.apache.ibatis.session.defaults.DefaultSqlSession.selectList(DefaultSqlSession.java:149) 330 | at org.apache.ibatis.session.defaults.DefaultSqlSession.selectList(DefaultSqlSession.java:140) 331 | at org.apache.ibatis.session.defaults.DefaultSqlSession.selectOne(DefaultSqlSession.java:76) 332 | at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 333 | at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) 334 | at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) 335 | at java.lang.reflect.Method.invoke(Method.java:498) 336 | at org.mybatis.spring.SqlSessionTemplate$SqlSessionInterceptor.invoke(SqlSessionTemplate.java:427) 337 | ... 58 common frames omitted 338 | Caused by: org.springframework.jdbc.CannotGetJdbcConnectionException: Failed to obtain JDBC Connection; nested exception is com.mysql.cj.jdbc.exceptions.CommunicationsException: Communications link failure 339 | 340 | The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 341 | at org.springframework.jdbc.datasource.DataSourceUtils.getConnection(DataSourceUtils.java:82) 342 | at org.mybatis.spring.transaction.SpringManagedTransaction.openConnection(SpringManagedTransaction.java:80) 343 | at org.mybatis.spring.transaction.SpringManagedTransaction.getConnection(SpringManagedTransaction.java:67) 344 | at org.apache.ibatis.executor.BaseExecutor.getConnection(BaseExecutor.java:337) 345 | at org.apache.ibatis.executor.SimpleExecutor.prepareStatement(SimpleExecutor.java:86) 346 | at org.apache.ibatis.executor.SimpleExecutor.doQuery(SimpleExecutor.java:62) 347 | at org.apache.ibatis.executor.BaseExecutor.queryFromDatabase(BaseExecutor.java:325) 348 | at org.apache.ibatis.executor.BaseExecutor.query(BaseExecutor.java:156) 349 | at org.apache.ibatis.executor.CachingExecutor.query(CachingExecutor.java:109) 350 | at org.apache.ibatis.executor.CachingExecutor.query(CachingExecutor.java:89) 351 | at org.apache.ibatis.session.defaults.DefaultSqlSession.selectList(DefaultSqlSession.java:147) 352 | ... 65 common frames omitted 353 | Caused by: com.mysql.cj.jdbc.exceptions.CommunicationsException: Communications link failure 354 | 355 | The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 356 | at com.mysql.cj.jdbc.exceptions.SQLError.createCommunicationsException(SQLError.java:174) 357 | at com.mysql.cj.jdbc.exceptions.SQLExceptionsMapping.translateException(SQLExceptionsMapping.java:64) 358 | at com.mysql.cj.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:833) 359 | at com.mysql.cj.jdbc.ConnectionImpl.(ConnectionImpl.java:453) 360 | at com.mysql.cj.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:246) 361 | at com.mysql.cj.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:198) 362 | at com.zaxxer.hikari.util.DriverDataSource.getConnection(DriverDataSource.java:138) 363 | at com.zaxxer.hikari.pool.PoolBase.newConnection(PoolBase.java:358) 364 | at com.zaxxer.hikari.pool.PoolBase.newPoolEntry(PoolBase.java:206) 365 | at com.zaxxer.hikari.pool.HikariPool.createPoolEntry(HikariPool.java:477) 366 | at com.zaxxer.hikari.pool.HikariPool.checkFailFast(HikariPool.java:560) 367 | at com.zaxxer.hikari.pool.HikariPool.(HikariPool.java:115) 368 | at com.zaxxer.hikari.HikariDataSource.getConnection(HikariDataSource.java:112) 369 | at org.springframework.jdbc.datasource.DataSourceUtils.fetchConnection(DataSourceUtils.java:158) 370 | at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:116) 371 | at org.springframework.jdbc.datasource.DataSourceUtils.getConnection(DataSourceUtils.java:79) 372 | ... 75 common frames omitted 373 | Caused by: com.mysql.cj.exceptions.CJCommunicationsException: Communications link failure 374 | 375 | The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 376 | at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) 377 | at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62) 378 | at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) 379 | at java.lang.reflect.Constructor.newInstance(Constructor.java:423) 380 | at com.mysql.cj.exceptions.ExceptionFactory.createException(ExceptionFactory.java:61) 381 | at com.mysql.cj.exceptions.ExceptionFactory.createException(ExceptionFactory.java:105) 382 | at com.mysql.cj.exceptions.ExceptionFactory.createException(ExceptionFactory.java:151) 383 | at com.mysql.cj.exceptions.ExceptionFactory.createCommunicationsException(ExceptionFactory.java:167) 384 | at com.mysql.cj.protocol.a.NativeSocketConnection.connect(NativeSocketConnection.java:89) 385 | at com.mysql.cj.NativeSession.connect(NativeSession.java:144) 386 | at com.mysql.cj.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:953) 387 | at com.mysql.cj.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:823) 388 | ... 88 common frames omitted 389 | Caused by: java.net.SocketException: Network is unreachable: connect 390 | at java.net.DualStackPlainSocketImpl.waitForConnect(Native Method) 391 | at java.net.DualStackPlainSocketImpl.socketConnect(DualStackPlainSocketImpl.java:85) 392 | at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:350) 393 | at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:206) 394 | at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:188) 395 | at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:172) 396 | at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392) 397 | at java.net.Socket.connect(Socket.java:589) 398 | at com.mysql.cj.protocol.StandardSocketFactory.connect(StandardSocketFactory.java:155) 399 | at com.mysql.cj.protocol.a.NativeSocketConnection.connect(NativeSocketConnection.java:63) 400 | ... 91 common frames omitted 401 | 2021/05/29-15:59 [main] INFO com.ylesb.bsfs.BsfsApplication- Starting BsfsApplication using Java 1.8.0_121 on XGC with PID 18228 (F:\IDEAProject\bsfs\target\classes started by 46653 in F:\IDEAProject\bsfs) 402 | 2021/05/29-15:59 [main] INFO com.ylesb.bsfs.BsfsApplication- No active profile set, falling back to default profiles: default 403 | 2021/05/29-15:59 [main] INFO org.springframework.boot.web.embedded.tomcat.TomcatWebServer- Tomcat initialized with port(s): 8080 (http) 404 | 2021/05/29-15:59 [main] INFO org.apache.catalina.core.StandardService- Starting service [Tomcat] 405 | 2021/05/29-15:59 [main] INFO org.apache.catalina.core.StandardEngine- Starting Servlet engine: [Apache Tomcat/9.0.45] 406 | 2021/05/29-15:59 [main] INFO org.apache.catalina.core.ContainerBase.[Tomcat].[localhost].[/]- Initializing Spring embedded WebApplicationContext 407 | 2021/05/29-15:59 [main] INFO org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext- Root WebApplicationContext: initialization completed in 1292 ms 408 | 2021/05/29-15:59 [main] INFO springfox.documentation.spring.web.PropertySourcedRequestMappingHandlerMapping- Mapped URL path [/v2/api-docs] onto method [springfox.documentation.swagger2.web.Swagger2Controller#getDocumentation(String, HttpServletRequest)] 409 | 2021/05/29-15:59 [main] INFO org.springframework.scheduling.concurrent.ThreadPoolTaskExecutor- Initializing ExecutorService 'applicationTaskExecutor' 410 | 2021/05/29-15:59 [main] WARN org.springframework.boot.autoconfigure.thymeleaf.ThymeleafAutoConfiguration$DefaultTemplateResolverConfiguration- Cannot find template location: classpath:/templates/ (please add some templates or check your Thymeleaf configuration) 411 | 2021/05/29-15:59 [main] INFO org.springframework.boot.web.embedded.tomcat.TomcatWebServer- Tomcat started on port(s): 8080 (http) with context path '' 412 | 2021/05/29-15:59 [main] INFO springfox.documentation.spring.web.plugins.DocumentationPluginsBootstrapper- Context refreshed 413 | 2021/05/29-15:59 [main] INFO springfox.documentation.spring.web.plugins.DocumentationPluginsBootstrapper- Found 1 custom documentation plugin(s) 414 | 2021/05/29-15:59 [main] INFO springfox.documentation.spring.web.scanners.ApiListingReferenceScanner- Scanning for api listing references 415 | 2021/05/29-15:59 [main] INFO springfox.documentation.spring.web.readers.operation.CachingOperationNameGenerator- Generating unique operation named: findallUsingPOST_1 416 | 2021/05/29-15:59 [main] INFO springfox.documentation.spring.web.readers.operation.CachingOperationNameGenerator- Generating unique operation named: updatepwdUsingPOST_1 417 | 2021/05/29-15:59 [main] INFO springfox.documentation.spring.web.readers.operation.CachingOperationNameGenerator- Generating unique operation named: uploadImgUsingPOST_1 418 | 2021/05/29-15:59 [main] INFO springfox.documentation.spring.web.readers.operation.CachingOperationNameGenerator- Generating unique operation named: loginUsingPOST_1 419 | 2021/05/29-15:59 [main] INFO springfox.documentation.spring.web.readers.operation.CachingOperationNameGenerator- Generating unique operation named: addfaceimgUsingPOST_1 420 | 2021/05/29-15:59 [main] INFO springfox.documentation.spring.web.readers.operation.CachingOperationNameGenerator- Generating unique operation named: delapplyUsingPOST_1 421 | 2021/05/29-15:59 [main] INFO springfox.documentation.spring.web.readers.operation.CachingOperationNameGenerator- Generating unique operation named: findallUsingPOST_2 422 | 2021/05/29-15:59 [main] INFO springfox.documentation.spring.web.readers.operation.CachingOperationNameGenerator- Generating unique operation named: findallUsingPOST_3 423 | 2021/05/29-15:59 [main] INFO springfox.documentation.spring.web.readers.operation.CachingOperationNameGenerator- Generating unique operation named: loginUsingPOST_2 424 | 2021/05/29-15:59 [main] INFO springfox.documentation.spring.web.readers.operation.CachingOperationNameGenerator- Generating unique operation named: updatepwdUsingPOST_2 425 | 2021/05/29-15:59 [main] INFO com.ylesb.bsfs.BsfsApplication- Started BsfsApplication in 3.056 seconds (JVM running for 5.005) 426 | 2021/05/29-15:59 [main] INFO com.ylesb.bsfs.BsfsApplication- 服务启动完成! 427 | 2021/05/29-15:59 [http-nio-8080-exec-1] INFO org.apache.catalina.core.ContainerBase.[Tomcat].[localhost].[/]- Initializing Spring DispatcherServlet 'dispatcherServlet' 428 | 2021/05/29-15:59 [http-nio-8080-exec-1] INFO org.springframework.web.servlet.DispatcherServlet- Initializing Servlet 'dispatcherServlet' 429 | 2021/05/29-15:59 [http-nio-8080-exec-1] INFO org.springframework.web.servlet.DispatcherServlet- Completed initialization in 1 ms 430 | 2021/05/29-15:59 [http-nio-8080-exec-1] INFO com.zaxxer.hikari.HikariDataSource- test - Starting... 431 | 2021/05/29-15:59 [http-nio-8080-exec-1] ERROR com.zaxxer.hikari.pool.HikariPool- test - Exception during pool initialization. 432 | com.mysql.cj.jdbc.exceptions.CommunicationsException: Communications link failure 433 | 434 | The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 435 | at com.mysql.cj.jdbc.exceptions.SQLError.createCommunicationsException(SQLError.java:174) 436 | at com.mysql.cj.jdbc.exceptions.SQLExceptionsMapping.translateException(SQLExceptionsMapping.java:64) 437 | at com.mysql.cj.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:833) 438 | at com.mysql.cj.jdbc.ConnectionImpl.(ConnectionImpl.java:453) 439 | at com.mysql.cj.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:246) 440 | at com.mysql.cj.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:198) 441 | at com.zaxxer.hikari.util.DriverDataSource.getConnection(DriverDataSource.java:138) 442 | at com.zaxxer.hikari.pool.PoolBase.newConnection(PoolBase.java:358) 443 | at com.zaxxer.hikari.pool.PoolBase.newPoolEntry(PoolBase.java:206) 444 | at com.zaxxer.hikari.pool.HikariPool.createPoolEntry(HikariPool.java:477) 445 | at com.zaxxer.hikari.pool.HikariPool.checkFailFast(HikariPool.java:560) 446 | at com.zaxxer.hikari.pool.HikariPool.(HikariPool.java:115) 447 | at com.zaxxer.hikari.HikariDataSource.getConnection(HikariDataSource.java:112) 448 | at org.springframework.jdbc.datasource.DataSourceUtils.fetchConnection(DataSourceUtils.java:158) 449 | at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:116) 450 | at org.springframework.jdbc.datasource.DataSourceUtils.getConnection(DataSourceUtils.java:79) 451 | at org.mybatis.spring.transaction.SpringManagedTransaction.openConnection(SpringManagedTransaction.java:80) 452 | at org.mybatis.spring.transaction.SpringManagedTransaction.getConnection(SpringManagedTransaction.java:67) 453 | at org.apache.ibatis.executor.BaseExecutor.getConnection(BaseExecutor.java:337) 454 | at org.apache.ibatis.executor.SimpleExecutor.prepareStatement(SimpleExecutor.java:86) 455 | at org.apache.ibatis.executor.SimpleExecutor.doQuery(SimpleExecutor.java:62) 456 | at org.apache.ibatis.executor.BaseExecutor.queryFromDatabase(BaseExecutor.java:325) 457 | at org.apache.ibatis.executor.BaseExecutor.query(BaseExecutor.java:156) 458 | at org.apache.ibatis.executor.CachingExecutor.query(CachingExecutor.java:109) 459 | at org.apache.ibatis.executor.CachingExecutor.query(CachingExecutor.java:89) 460 | at org.apache.ibatis.session.defaults.DefaultSqlSession.selectList(DefaultSqlSession.java:147) 461 | at org.apache.ibatis.session.defaults.DefaultSqlSession.selectList(DefaultSqlSession.java:140) 462 | at org.apache.ibatis.session.defaults.DefaultSqlSession.selectOne(DefaultSqlSession.java:76) 463 | at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 464 | at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) 465 | at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) 466 | at java.lang.reflect.Method.invoke(Method.java:498) 467 | at org.mybatis.spring.SqlSessionTemplate$SqlSessionInterceptor.invoke(SqlSessionTemplate.java:427) 468 | at com.sun.proxy.$Proxy69.selectOne(Unknown Source) 469 | at org.mybatis.spring.SqlSessionTemplate.selectOne(SqlSessionTemplate.java:160) 470 | at org.apache.ibatis.binding.MapperMethod.execute(MapperMethod.java:87) 471 | at org.apache.ibatis.binding.MapperProxy$PlainMethodInvoker.invoke(MapperProxy.java:152) 472 | at org.apache.ibatis.binding.MapperProxy.invoke(MapperProxy.java:85) 473 | at com.sun.proxy.$Proxy80.login(Unknown Source) 474 | at com.ylesb.bsfs.serviceIml.UserServiceImpl.login(UserServiceImpl.java:46) 475 | at com.ylesb.bsfs.controller.UserController.login(UserController.java:46) 476 | at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 477 | at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) 478 | at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) 479 | at java.lang.reflect.Method.invoke(Method.java:498) 480 | at org.springframework.web.method.support.InvocableHandlerMethod.doInvoke(InvocableHandlerMethod.java:197) 481 | at org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:141) 482 | at org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:106) 483 | at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandlerMethod(RequestMappingHandlerAdapter.java:894) 484 | at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:808) 485 | at org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:87) 486 | at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:1060) 487 | at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:962) 488 | at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:1006) 489 | at org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:909) 490 | at javax.servlet.http.HttpServlet.service(HttpServlet.java:652) 491 | at org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:883) 492 | at javax.servlet.http.HttpServlet.service(HttpServlet.java:733) 493 | at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:227) 494 | at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162) 495 | at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:53) 496 | at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189) 497 | at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162) 498 | at org.springframework.web.filter.RequestContextFilter.doFilterInternal(RequestContextFilter.java:100) 499 | at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:119) 500 | at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189) 501 | at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162) 502 | at org.springframework.web.filter.FormContentFilter.doFilterInternal(FormContentFilter.java:93) 503 | at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:119) 504 | at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189) 505 | at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162) 506 | at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:201) 507 | at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:119) 508 | at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189) 509 | at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162) 510 | at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:202) 511 | at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:97) 512 | at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:542) 513 | at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:143) 514 | at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:92) 515 | at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:78) 516 | at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:357) 517 | at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:374) 518 | at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:65) 519 | at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:893) 520 | at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1707) 521 | at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49) 522 | at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) 523 | at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) 524 | at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61) 525 | at java.lang.Thread.run(Thread.java:745) 526 | Caused by: com.mysql.cj.exceptions.CJCommunicationsException: Communications link failure 527 | 528 | The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 529 | at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) 530 | at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62) 531 | at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) 532 | at java.lang.reflect.Constructor.newInstance(Constructor.java:423) 533 | at com.mysql.cj.exceptions.ExceptionFactory.createException(ExceptionFactory.java:61) 534 | at com.mysql.cj.exceptions.ExceptionFactory.createException(ExceptionFactory.java:105) 535 | at com.mysql.cj.exceptions.ExceptionFactory.createException(ExceptionFactory.java:151) 536 | at com.mysql.cj.exceptions.ExceptionFactory.createCommunicationsException(ExceptionFactory.java:167) 537 | at com.mysql.cj.protocol.a.NativeSocketConnection.connect(NativeSocketConnection.java:89) 538 | at com.mysql.cj.NativeSession.connect(NativeSession.java:144) 539 | at com.mysql.cj.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:953) 540 | at com.mysql.cj.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:823) 541 | ... 88 common frames omitted 542 | Caused by: java.net.SocketException: Network is unreachable: connect 543 | at java.net.DualStackPlainSocketImpl.waitForConnect(Native Method) 544 | at java.net.DualStackPlainSocketImpl.socketConnect(DualStackPlainSocketImpl.java:85) 545 | at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:350) 546 | at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:206) 547 | at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:188) 548 | at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:172) 549 | at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392) 550 | at java.net.Socket.connect(Socket.java:589) 551 | at com.mysql.cj.protocol.StandardSocketFactory.connect(StandardSocketFactory.java:155) 552 | at com.mysql.cj.protocol.a.NativeSocketConnection.connect(NativeSocketConnection.java:63) 553 | ... 91 common frames omitted 554 | 2021/05/29-15:59 [http-nio-8080-exec-1] ERROR com.ylesb.bsfs.core.GlobalExceptionHandler- 异常: 555 | org.mybatis.spring.MyBatisSystemException: nested exception is org.apache.ibatis.exceptions.PersistenceException: 556 | ### Error querying database. Cause: org.springframework.jdbc.CannotGetJdbcConnectionException: Failed to obtain JDBC Connection; nested exception is com.mysql.cj.jdbc.exceptions.CommunicationsException: Communications link failure 557 | 558 | The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 559 | ### The error may exist in file [F:\IDEAProject\bsfs\target\classes\mapper\UserMapper.xml] 560 | ### The error may involve com.ylesb.bsfs.mapper.UserMapper.login 561 | ### The error occurred while executing a query 562 | ### Cause: org.springframework.jdbc.CannotGetJdbcConnectionException: Failed to obtain JDBC Connection; nested exception is com.mysql.cj.jdbc.exceptions.CommunicationsException: Communications link failure 563 | 564 | The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 565 | at org.mybatis.spring.MyBatisExceptionTranslator.translateExceptionIfPossible(MyBatisExceptionTranslator.java:96) 566 | at org.mybatis.spring.SqlSessionTemplate$SqlSessionInterceptor.invoke(SqlSessionTemplate.java:441) 567 | at com.sun.proxy.$Proxy69.selectOne(Unknown Source) 568 | at org.mybatis.spring.SqlSessionTemplate.selectOne(SqlSessionTemplate.java:160) 569 | at org.apache.ibatis.binding.MapperMethod.execute(MapperMethod.java:87) 570 | at org.apache.ibatis.binding.MapperProxy$PlainMethodInvoker.invoke(MapperProxy.java:152) 571 | at org.apache.ibatis.binding.MapperProxy.invoke(MapperProxy.java:85) 572 | at com.sun.proxy.$Proxy80.login(Unknown Source) 573 | at com.ylesb.bsfs.serviceIml.UserServiceImpl.login(UserServiceImpl.java:46) 574 | at com.ylesb.bsfs.controller.UserController.login(UserController.java:46) 575 | at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 576 | at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) 577 | at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) 578 | at java.lang.reflect.Method.invoke(Method.java:498) 579 | at org.springframework.web.method.support.InvocableHandlerMethod.doInvoke(InvocableHandlerMethod.java:197) 580 | at org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:141) 581 | at org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:106) 582 | at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandlerMethod(RequestMappingHandlerAdapter.java:894) 583 | at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:808) 584 | at org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:87) 585 | at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:1060) 586 | at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:962) 587 | at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:1006) 588 | at org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:909) 589 | at javax.servlet.http.HttpServlet.service(HttpServlet.java:652) 590 | at org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:883) 591 | at javax.servlet.http.HttpServlet.service(HttpServlet.java:733) 592 | at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:227) 593 | at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162) 594 | at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:53) 595 | at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189) 596 | at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162) 597 | at org.springframework.web.filter.RequestContextFilter.doFilterInternal(RequestContextFilter.java:100) 598 | at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:119) 599 | at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189) 600 | at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162) 601 | at org.springframework.web.filter.FormContentFilter.doFilterInternal(FormContentFilter.java:93) 602 | at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:119) 603 | at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189) 604 | at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162) 605 | at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:201) 606 | at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:119) 607 | at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189) 608 | at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162) 609 | at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:202) 610 | at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:97) 611 | at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:542) 612 | at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:143) 613 | at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:92) 614 | at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:78) 615 | at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:357) 616 | at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:374) 617 | at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:65) 618 | at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:893) 619 | at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1707) 620 | at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49) 621 | at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) 622 | at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) 623 | at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61) 624 | at java.lang.Thread.run(Thread.java:745) 625 | Caused by: org.apache.ibatis.exceptions.PersistenceException: 626 | ### Error querying database. Cause: org.springframework.jdbc.CannotGetJdbcConnectionException: Failed to obtain JDBC Connection; nested exception is com.mysql.cj.jdbc.exceptions.CommunicationsException: Communications link failure 627 | 628 | The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 629 | ### The error may exist in file [F:\IDEAProject\bsfs\target\classes\mapper\UserMapper.xml] 630 | ### The error may involve com.ylesb.bsfs.mapper.UserMapper.login 631 | ### The error occurred while executing a query 632 | ### Cause: org.springframework.jdbc.CannotGetJdbcConnectionException: Failed to obtain JDBC Connection; nested exception is com.mysql.cj.jdbc.exceptions.CommunicationsException: Communications link failure 633 | 634 | The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 635 | at org.apache.ibatis.exceptions.ExceptionFactory.wrapException(ExceptionFactory.java:30) 636 | at org.apache.ibatis.session.defaults.DefaultSqlSession.selectList(DefaultSqlSession.java:149) 637 | at org.apache.ibatis.session.defaults.DefaultSqlSession.selectList(DefaultSqlSession.java:140) 638 | at org.apache.ibatis.session.defaults.DefaultSqlSession.selectOne(DefaultSqlSession.java:76) 639 | at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 640 | at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) 641 | at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) 642 | at java.lang.reflect.Method.invoke(Method.java:498) 643 | at org.mybatis.spring.SqlSessionTemplate$SqlSessionInterceptor.invoke(SqlSessionTemplate.java:427) 644 | ... 58 common frames omitted 645 | Caused by: org.springframework.jdbc.CannotGetJdbcConnectionException: Failed to obtain JDBC Connection; nested exception is com.mysql.cj.jdbc.exceptions.CommunicationsException: Communications link failure 646 | 647 | The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 648 | at org.springframework.jdbc.datasource.DataSourceUtils.getConnection(DataSourceUtils.java:82) 649 | at org.mybatis.spring.transaction.SpringManagedTransaction.openConnection(SpringManagedTransaction.java:80) 650 | at org.mybatis.spring.transaction.SpringManagedTransaction.getConnection(SpringManagedTransaction.java:67) 651 | at org.apache.ibatis.executor.BaseExecutor.getConnection(BaseExecutor.java:337) 652 | at org.apache.ibatis.executor.SimpleExecutor.prepareStatement(SimpleExecutor.java:86) 653 | at org.apache.ibatis.executor.SimpleExecutor.doQuery(SimpleExecutor.java:62) 654 | at org.apache.ibatis.executor.BaseExecutor.queryFromDatabase(BaseExecutor.java:325) 655 | at org.apache.ibatis.executor.BaseExecutor.query(BaseExecutor.java:156) 656 | at org.apache.ibatis.executor.CachingExecutor.query(CachingExecutor.java:109) 657 | at org.apache.ibatis.executor.CachingExecutor.query(CachingExecutor.java:89) 658 | at org.apache.ibatis.session.defaults.DefaultSqlSession.selectList(DefaultSqlSession.java:147) 659 | ... 65 common frames omitted 660 | Caused by: com.mysql.cj.jdbc.exceptions.CommunicationsException: Communications link failure 661 | 662 | The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 663 | at com.mysql.cj.jdbc.exceptions.SQLError.createCommunicationsException(SQLError.java:174) 664 | at com.mysql.cj.jdbc.exceptions.SQLExceptionsMapping.translateException(SQLExceptionsMapping.java:64) 665 | at com.mysql.cj.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:833) 666 | at com.mysql.cj.jdbc.ConnectionImpl.(ConnectionImpl.java:453) 667 | at com.mysql.cj.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:246) 668 | at com.mysql.cj.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:198) 669 | at com.zaxxer.hikari.util.DriverDataSource.getConnection(DriverDataSource.java:138) 670 | at com.zaxxer.hikari.pool.PoolBase.newConnection(PoolBase.java:358) 671 | at com.zaxxer.hikari.pool.PoolBase.newPoolEntry(PoolBase.java:206) 672 | at com.zaxxer.hikari.pool.HikariPool.createPoolEntry(HikariPool.java:477) 673 | at com.zaxxer.hikari.pool.HikariPool.checkFailFast(HikariPool.java:560) 674 | at com.zaxxer.hikari.pool.HikariPool.(HikariPool.java:115) 675 | at com.zaxxer.hikari.HikariDataSource.getConnection(HikariDataSource.java:112) 676 | at org.springframework.jdbc.datasource.DataSourceUtils.fetchConnection(DataSourceUtils.java:158) 677 | at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:116) 678 | at org.springframework.jdbc.datasource.DataSourceUtils.getConnection(DataSourceUtils.java:79) 679 | ... 75 common frames omitted 680 | Caused by: com.mysql.cj.exceptions.CJCommunicationsException: Communications link failure 681 | 682 | The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 683 | at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) 684 | at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62) 685 | at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) 686 | at java.lang.reflect.Constructor.newInstance(Constructor.java:423) 687 | at com.mysql.cj.exceptions.ExceptionFactory.createException(ExceptionFactory.java:61) 688 | at com.mysql.cj.exceptions.ExceptionFactory.createException(ExceptionFactory.java:105) 689 | at com.mysql.cj.exceptions.ExceptionFactory.createException(ExceptionFactory.java:151) 690 | at com.mysql.cj.exceptions.ExceptionFactory.createCommunicationsException(ExceptionFactory.java:167) 691 | at com.mysql.cj.protocol.a.NativeSocketConnection.connect(NativeSocketConnection.java:89) 692 | at com.mysql.cj.NativeSession.connect(NativeSession.java:144) 693 | at com.mysql.cj.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:953) 694 | at com.mysql.cj.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:823) 695 | ... 88 common frames omitted 696 | Caused by: java.net.SocketException: Network is unreachable: connect 697 | at java.net.DualStackPlainSocketImpl.waitForConnect(Native Method) 698 | at java.net.DualStackPlainSocketImpl.socketConnect(DualStackPlainSocketImpl.java:85) 699 | at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:350) 700 | at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:206) 701 | at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:188) 702 | at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:172) 703 | at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392) 704 | at java.net.Socket.connect(Socket.java:589) 705 | at com.mysql.cj.protocol.StandardSocketFactory.connect(StandardSocketFactory.java:155) 706 | at com.mysql.cj.protocol.a.NativeSocketConnection.connect(NativeSocketConnection.java:63) 707 | ... 91 common frames omitted 708 | 2021/05/29-16:00 [main] INFO com.ylesb.bsfs.BsfsApplication- Starting BsfsApplication using Java 1.8.0_121 on XGC with PID 19084 (F:\IDEAProject\bsfs\target\classes started by 46653 in F:\IDEAProject\bsfs) 709 | 2021/05/29-16:00 [main] INFO com.ylesb.bsfs.BsfsApplication- No active profile set, falling back to default profiles: default 710 | 2021/05/29-16:00 [main] INFO org.springframework.boot.web.embedded.tomcat.TomcatWebServer- Tomcat initialized with port(s): 8080 (http) 711 | 2021/05/29-16:00 [main] INFO org.apache.catalina.core.StandardService- Starting service [Tomcat] 712 | 2021/05/29-16:00 [main] INFO org.apache.catalina.core.StandardEngine- Starting Servlet engine: [Apache Tomcat/9.0.45] 713 | 2021/05/29-16:00 [main] INFO org.apache.catalina.core.ContainerBase.[Tomcat].[localhost].[/]- Initializing Spring embedded WebApplicationContext 714 | 2021/05/29-16:00 [main] INFO org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext- Root WebApplicationContext: initialization completed in 1421 ms 715 | 2021/05/29-16:00 [main] INFO springfox.documentation.spring.web.PropertySourcedRequestMappingHandlerMapping- Mapped URL path [/v2/api-docs] onto method [springfox.documentation.swagger2.web.Swagger2Controller#getDocumentation(String, HttpServletRequest)] 716 | 2021/05/29-16:00 [main] INFO org.springframework.scheduling.concurrent.ThreadPoolTaskExecutor- Initializing ExecutorService 'applicationTaskExecutor' 717 | 2021/05/29-16:00 [main] WARN org.springframework.boot.autoconfigure.thymeleaf.ThymeleafAutoConfiguration$DefaultTemplateResolverConfiguration- Cannot find template location: classpath:/templates/ (please add some templates or check your Thymeleaf configuration) 718 | 2021/05/29-16:00 [main] INFO org.springframework.boot.web.embedded.tomcat.TomcatWebServer- Tomcat started on port(s): 8080 (http) with context path '' 719 | 2021/05/29-16:00 [main] INFO springfox.documentation.spring.web.plugins.DocumentationPluginsBootstrapper- Context refreshed 720 | 2021/05/29-16:00 [main] INFO springfox.documentation.spring.web.plugins.DocumentationPluginsBootstrapper- Found 1 custom documentation plugin(s) 721 | 2021/05/29-16:00 [main] INFO springfox.documentation.spring.web.scanners.ApiListingReferenceScanner- Scanning for api listing references 722 | 2021/05/29-16:00 [main] INFO springfox.documentation.spring.web.readers.operation.CachingOperationNameGenerator- Generating unique operation named: findallUsingPOST_1 723 | 2021/05/29-16:00 [main] INFO springfox.documentation.spring.web.readers.operation.CachingOperationNameGenerator- Generating unique operation named: updatepwdUsingPOST_1 724 | 2021/05/29-16:00 [main] INFO springfox.documentation.spring.web.readers.operation.CachingOperationNameGenerator- Generating unique operation named: uploadImgUsingPOST_1 725 | 2021/05/29-16:00 [main] INFO springfox.documentation.spring.web.readers.operation.CachingOperationNameGenerator- Generating unique operation named: loginUsingPOST_1 726 | 2021/05/29-16:00 [main] INFO springfox.documentation.spring.web.readers.operation.CachingOperationNameGenerator- Generating unique operation named: addfaceimgUsingPOST_1 727 | 2021/05/29-16:00 [main] INFO springfox.documentation.spring.web.readers.operation.CachingOperationNameGenerator- Generating unique operation named: delapplyUsingPOST_1 728 | 2021/05/29-16:00 [main] INFO springfox.documentation.spring.web.readers.operation.CachingOperationNameGenerator- Generating unique operation named: findallUsingPOST_2 729 | 2021/05/29-16:00 [main] INFO springfox.documentation.spring.web.readers.operation.CachingOperationNameGenerator- Generating unique operation named: findallUsingPOST_3 730 | 2021/05/29-16:00 [main] INFO springfox.documentation.spring.web.readers.operation.CachingOperationNameGenerator- Generating unique operation named: loginUsingPOST_2 731 | 2021/05/29-16:00 [main] INFO springfox.documentation.spring.web.readers.operation.CachingOperationNameGenerator- Generating unique operation named: updatepwdUsingPOST_2 732 | 2021/05/29-16:00 [main] INFO com.ylesb.bsfs.BsfsApplication- Started BsfsApplication in 3.797 seconds (JVM running for 5.608) 733 | 2021/05/29-16:00 [main] INFO com.ylesb.bsfs.BsfsApplication- 服务启动完成! 734 | 2021/05/29-16:00 [http-nio-8080-exec-1] INFO org.apache.catalina.core.ContainerBase.[Tomcat].[localhost].[/]- Initializing Spring DispatcherServlet 'dispatcherServlet' 735 | 2021/05/29-16:00 [http-nio-8080-exec-1] INFO org.springframework.web.servlet.DispatcherServlet- Initializing Servlet 'dispatcherServlet' 736 | 2021/05/29-16:00 [http-nio-8080-exec-1] INFO org.springframework.web.servlet.DispatcherServlet- Completed initialization in 1 ms 737 | 2021/05/29-16:00 [http-nio-8080-exec-1] INFO com.zaxxer.hikari.HikariDataSource- test - Starting... 738 | 2021/05/29-16:00 [http-nio-8080-exec-1] INFO com.zaxxer.hikari.HikariDataSource- test - Start completed. 739 | -------------------------------------------------------------------------------- /my.log.2021-05-24.0.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CoderXGC/bsfs/8933a3875ac4f17790d33ccccbfd537e3bef741b/my.log.2021-05-24.0.gz -------------------------------------------------------------------------------- /my.log.2021-05-25.0.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CoderXGC/bsfs/8933a3875ac4f17790d33ccccbfd537e3bef741b/my.log.2021-05-25.0.gz -------------------------------------------------------------------------------- /my.log.2021-05-26.0.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CoderXGC/bsfs/8933a3875ac4f17790d33ccccbfd537e3bef741b/my.log.2021-05-26.0.gz -------------------------------------------------------------------------------- /my.log.2021-05-27.0.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CoderXGC/bsfs/8933a3875ac4f17790d33ccccbfd537e3bef741b/my.log.2021-05-27.0.gz -------------------------------------------------------------------------------- /my.log.2021-05-28.0.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CoderXGC/bsfs/8933a3875ac4f17790d33ccccbfd537e3bef741b/my.log.2021-05-28.0.gz -------------------------------------------------------------------------------- /pom.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 4.0.0 5 | 6 | org.springframework.boot 7 | spring-boot-starter-parent 8 | 2.4.5 9 | 10 | 11 | com.ylesb 12 | bsfs 13 | 0.0.1-SNAPSHOT 14 | bsfs 15 | Demo project for Spring Boot 16 | 17 | 1.8 18 | 19 | 20 | 21 | org.springframework.boot 22 | spring-boot-starter-jdbc 23 | 24 | 25 | org.springframework.boot 26 | spring-boot-starter-thymeleaf 27 | 28 | 29 | org.springframework.boot 30 | spring-boot-starter-web 31 | 32 | 33 | 34 | org.mybatis.spring.boot 35 | mybatis-spring-boot-starter 36 | 2.1.4 37 | 38 | 39 | 40 | mysql 41 | mysql-connector-java 42 | runtime 43 | 8.0.23 44 | 45 | 46 | org.springframework.boot 47 | spring-boot-starter-test 48 | test 49 | 50 | 51 | 52 | org.projectlombok 53 | lombok 54 | 1.18.20 55 | 56 | 57 | 58 | junit 59 | junit 60 | 4.13 61 | test 62 | 63 | 64 | 65 | javax.validation 66 | validation-api 67 | 2.0.1.Final 68 | 69 | 70 | com.jayway.jsonpath 71 | json-path 72 | 73 | 74 | org.hibernate.validator 75 | hibernate-validator 76 | 6.0.9.Final 77 | 78 | 79 | io.springfox 80 | springfox-swagger2 81 | 2.7.0 82 | 83 | 84 | io.springfox 85 | springfox-swagger-ui 86 | 2.7.0 87 | 88 | 89 | 90 | 91 | 92 | 93 | 94 | org.springframework.boot 95 | spring-boot-maven-plugin 96 | 2.4.5 97 | 98 | 99 | 100 | 101 | 102 | -------------------------------------------------------------------------------- /src/main/java/com/ylesb/bsfs/BsfsApplication.java: -------------------------------------------------------------------------------- 1 | package com.ylesb.bsfs; 2 | 3 | import lombok.extern.slf4j.Slf4j; 4 | import org.springframework.boot.CommandLineRunner; 5 | import org.springframework.boot.SpringApplication; 6 | import org.springframework.boot.autoconfigure.SpringBootApplication; 7 | import org.springframework.boot.builder.SpringApplicationBuilder; 8 | import org.springframework.boot.web.servlet.support.SpringBootServletInitializer; 9 | import springfox.documentation.swagger2.annotations.EnableSwagger2; 10 | 11 | /** 12 | * Created by cc_want on 2018/6/2. 13 | */ 14 | @Slf4j 15 | @EnableSwagger2 16 | @SpringBootApplication 17 | public class BsfsApplication extends SpringBootServletInitializer implements CommandLineRunner{ 18 | @Override 19 | protected SpringApplicationBuilder configure(SpringApplicationBuilder builder) { 20 | //return super.configure(builder); 21 | return builder.sources(BsfsApplication.class); 22 | } 23 | public static void main(String[] args) { 24 | SpringApplication.run(BsfsApplication.class, args); 25 | } 26 | @Override 27 | public void run(String... strings) throws Exception { 28 | //System.out.println("服务启动完成!"); 29 | log.info("服务启动完成!"); 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /src/main/java/com/ylesb/bsfs/bean/AdminBean.java: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (C), 2020-2021, www.ylesb.com 3 | * FileName: AdminBean 4 | * Author: White 5 | * Date: 2021/4/27 18:14 6 | * Description: 管理员实体类 7 | * History: 8 | */ 9 | package com.ylesb.bsfs.bean; 10 | 11 | import lombok.Data; 12 | 13 | /** 14 | * 15 | * 〈管理员实体类〉 16 | * 17 | * @author White 18 | * @create 2021/4/27 19 | */ 20 | @Data 21 | public class AdminBean 22 | { 23 | private String id; 24 | private String pwd; 25 | private String name; 26 | private String signintime; 27 | private String signouttime; 28 | private int did; 29 | 30 | } -------------------------------------------------------------------------------- /src/main/java/com/ylesb/bsfs/bean/ApplyBean.java: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (C), 2020-2021, www.ylesb.com 3 | * FileName: ApplyBean 4 | * Author: White 5 | * Date: 2021/4/28 21:27 6 | * Description: 申请实体类 7 | * History: 8 | */ 9 | package com.ylesb.bsfs.bean; 10 | 11 | import lombok.Data; 12 | 13 | /** 14 | * 15 | * 〈申请实体类〉 16 | * 17 | * @author White 18 | * @create 2021/4/28 19 | */ 20 | @Data 21 | public class ApplyBean { 22 | private String applyid; 23 | private String message; 24 | private String applytime; 25 | private String starttime; 26 | private String endtime; 27 | private String status; 28 | private String id; 29 | private String type; 30 | private String time; 31 | } -------------------------------------------------------------------------------- /src/main/java/com/ylesb/bsfs/bean/CompanyBean.java: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (C), 2020-2021, www.ylesb.com 3 | * FileName: CompanyBean 4 | * Author: White 5 | * Date: 2021/5/26 19:30 6 | * Description: 公司实体类 7 | * History: 8 | */ 9 | package com.ylesb.bsfs.bean; 10 | 11 | /** 12 | * 13 | * 〈公司实体类〉 14 | * 15 | * @author White 16 | * @create 2021/5/26 17 | */ 18 | public class CompanyBean { 19 | int id; 20 | String cname; 21 | String status; 22 | } -------------------------------------------------------------------------------- /src/main/java/com/ylesb/bsfs/bean/FaceImgUrlBean.java: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (C), 2020-2021, XXX有限公司 3 | * FileName: FaceImgUrlBean 4 | * Author: White 5 | * Date: 2021/4/22 22:28 6 | * Description: 人脸实体类 7 | * History: 8 | */ 9 | package com.ylesb.bsfs.bean; 10 | 11 | import lombok.Data; 12 | 13 | /** 14 | * 15 | * 〈人脸实体类〉 16 | * 17 | * @author White 18 | * @create 2021/4/22 19 | */ 20 | @Data 21 | public class FaceImgUrlBean 22 | { 23 | private String id; 24 | private String faceimg; 25 | } -------------------------------------------------------------------------------- /src/main/java/com/ylesb/bsfs/bean/LogBean.java: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (C), 2020-2021, XXX有限公司 3 | * FileName: LogBean 4 | * Author: White 5 | * Date: 2021/4/20 18:25 6 | * Description: 日志消息 7 | * History: 8 | */ 9 | package com.ylesb.bsfs.bean; 10 | 11 | import lombok.Data; 12 | 13 | /** 14 | * 15 | * 〈日志消息〉 16 | * 17 | * @author White 18 | * @create 2021/4/20 19 | */ 20 | @Data 21 | public class LogBean { 22 | private String id; 23 | private String message; 24 | } -------------------------------------------------------------------------------- /src/main/java/com/ylesb/bsfs/bean/NoticeBean.java: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (C), 2020-2021, www.ylesb.com 3 | * FileName: NoticeBean 4 | * Author: White 5 | * Date: 2021/4/30 22:38 6 | * Description: 公告实体类 7 | * History: 8 | */ 9 | package com.ylesb.bsfs.bean; 10 | 11 | import lombok.Data; 12 | 13 | /** 14 | * 15 | * 〈公告实体类〉 16 | * 17 | * @author White 18 | * @create 2021/4/30 19 | */ 20 | @Data 21 | public class NoticeBean { 22 | private String id; 23 | private String message; 24 | private String time; 25 | private int did; 26 | private String issuid; 27 | } -------------------------------------------------------------------------------- /src/main/java/com/ylesb/bsfs/bean/SignBean.java: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (C), 2020-2021, XXX有限公司 3 | * FileName: SignBean 4 | * Author: White 5 | * Date: 2021/4/23 16:12 6 | * Description: 登录实体类 7 | * History: 8 | */ 9 | package com.ylesb.bsfs.bean; 10 | import lombok.Data; 11 | 12 | /** 13 | * 14 | * 〈签到实体类〉 15 | * 16 | * @author White 17 | * @create 2021/4/23 18 | */ 19 | @Data 20 | public class SignBean { 21 | private String id; 22 | private String signid; 23 | private String latetime; 24 | private String signintime; 25 | private String daytime; 26 | private int did; 27 | private String machine; 28 | private String signouttime; 29 | } -------------------------------------------------------------------------------- /src/main/java/com/ylesb/bsfs/bean/UserBean.java: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (C), 2020-2021, XXX有限公司 3 | * FileName: UserBean 4 | * Author: White 5 | * Date: 2021/4/16 15:13 6 | * Description: 用户Bean 7 | * History: 8 | *