├── .gitignore ├── .mvn └── wrapper │ ├── MavenWrapperDownloader.java │ ├── maven-wrapper.jar │ └── maven-wrapper.properties ├── README.md ├── logs ├── archive │ ├── blog-all-2020-08-22.0.log │ ├── blog-debug-2020-08-22.0.log │ ├── blog-error-2020-08-22.0.log │ ├── blog-info-2020-08-22.0.log │ └── blog-warn-2020-08-22.0.log ├── blog-all.log ├── blog-debug.log ├── blog-error.log ├── blog-info.log └── blog-warn.log ├── mvnw ├── mvnw.cmd ├── pom.xml └── src ├── main ├── java │ └── com │ │ └── chengzzz │ │ └── stepservice │ │ ├── StepserviceApplication.java │ │ ├── callback │ │ ├── UpdateCallBack.java │ │ ├── mModifyCallback.java │ │ └── resultCallBack.java │ │ ├── controller │ │ ├── UpstepsController.java │ │ └── ViewController.java │ │ ├── dao │ │ └── UpstepsDao.java │ │ ├── entity │ │ ├── Data.java │ │ ├── Modifydata.java │ │ ├── PostData.java │ │ ├── Upsteps.java │ │ ├── UserInfo.java │ │ └── listdata.java │ │ ├── schedu │ │ └── UpdateSchedu.java │ │ ├── service │ │ ├── UpstepsService.java │ │ └── impl │ │ │ └── UpstepsServiceImpl.java │ │ └── utils │ │ └── utils.java └── resources │ ├── application.properties │ ├── application.yaml │ └── logback.xml └── test └── java └── com └── chengzzz └── stepservice └── StepserviceApplicationTests.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/YYYet/CzStepServer/fb20c140ced8c6015049be8b7094568e0c130522/.mvn/wrapper/maven-wrapper.jar -------------------------------------------------------------------------------- /.mvn/wrapper/maven-wrapper.properties: -------------------------------------------------------------------------------- 1 | distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.6.3/apache-maven-3.6.3-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 | # CzStepServer 2 | 乐心健康自动刷步手动刷步Spring boot 服务端 3 | 4 | 数据表下载 https://yyyet.github.io/2020/08/22/%E4%B9%90%E5%BF%83%E6%AD%A5%E6%95%B0%E5%8A%A9%E6%89%8B%E6%9C%8D%E5%8A%A1%E7%AB%AF/ 5 | 6 | 参数说明: 7 | 8 | phone 手机号 9 | 10 | password 密码 11 | 12 | steps 提交的步数 13 | 14 | flag 是否开启自动刷步 0为不自动刷步 1为自动刷步 刷步时间为每日中午12点 15 | 16 | 17 | 18 | ## 单次提交步数 19 | 20 | get请求 21 | 22 | ```http 23 | /Service/updateStep?phone=18888888888&password=CZ123456&steps=9990&flag=0 24 | ``` 25 | 26 | 响应 27 | 28 | ```json 29 | { 30 | "code": 200, 31 | "msg": "成功", 32 | "data": { 33 | "pedometerRecordHourlyList": [{ 34 | "id": "08be23751dc24a4bbca0638ad8880973", 35 | "userId": 26993431, 36 | "deviceId": "M_NULL", 37 | "measurementTime": "2020-08-22 00:00:00", 38 | "step": "9950,9950,0,0,0,0,0,0,0,0,0,0,4550,5650,0,0,9990,0,0,0,0,0,0,0", 39 | "calories": "2487.00,2487.00,0,0,0,0,0,0,0,0,0,0,1137.00,1412.00,0,0,2497.00,0,0,0,0,0,0,0", 40 | "distance": "3316.00,3316.00,0,0,0,0,0,0,0,0,0,0,1516.00,1883.00,0,0,3330.00,0,0,0,0,0,0,0", 41 | "dataSource": 2, 42 | "created": "2020-08-22 00:17:42", 43 | "active": 0, 44 | "updated": 1598084752590 45 | }] 46 | } 47 | } 48 | ``` 49 | 50 | 51 | 52 | 53 | 54 | ## 提交自动刷步 55 | 56 | get请求 57 | 58 | ```http 59 | /Service/updateStep?phone=18888888888&password=CZ123456&steps=9990&flag=1 60 | ``` 61 | 62 | 响应 63 | 64 | ```json 65 | { 66 | "code": 508, 67 | "msg": "已加入数据库进行定时任务" 68 | } 69 | ``` 70 | 71 | 72 | 73 | ---- 74 | 75 | 响应码 76 | 77 | ```json 78 | { 79 | "code": 200, 80 | "msg": "成功", 81 | "data": { 82 | "pedometerRecordHourlyList": [{ 83 | "id": "08be23751dc24a4bbca0638ad8880973", 84 | "userId": 26993431, 85 | "deviceId": "M_NULL", 86 | "measurementTime": "2020-08-22 00:00:00", 87 | "step": "9950,9950,0,0,0,0,0,0,0,0,0,0,4550,5650,0,0,9990,0,0,0,0,0,0,0", 88 | "calories": "2487.00,2487.00,0,0,0,0,0,0,0,0,0,0,1137.00,1412.00,0,0,2497.00,0,0,0,0,0,0,0", 89 | "distance": "3316.00,3316.00,0,0,0,0,0,0,0,0,0,0,1516.00,1883.00,0,0,3330.00,0,0,0,0,0,0,0", 90 | "dataSource": 2, 91 | "created": "2020-08-22 00:17:42", 92 | "active": 0, 93 | "updated": 1598084752590 94 | }] 95 | } 96 | } 97 | ``` 98 | 99 | ```json 100 | { 101 | "code": 508, 102 | "msg": "已加入数据库进行定时任务" 103 | } 104 | ``` 105 | 106 | ```json 107 | { 108 | "code": 407, 109 | "msg": "密码错误" 110 | } 111 | ``` 112 | 113 | ```json 114 | { 115 | "code": 510, 116 | "msg": "手机号长度错误" 117 | } 118 | ``` 119 | 120 | 121 | 122 | -------------------------------------------------------------------------------- /logs/archive/blog-debug-2020-08-22.0.log: -------------------------------------------------------------------------------- 1 | 2020-08-22 14:36:44.744 DEBUG [http-nio-8080-exec-1]com.chengzzz.stepservice.dao.UpstepsDao.selectOne.debug:143 -==> Preparing: SELECT id,phone,password,steps,flag,msg FROM upsteps WHERE (phone = ?) 2 | 2020-08-22 14:36:44.759 DEBUG [http-nio-8080-exec-1]com.chengzzz.stepservice.dao.UpstepsDao.selectOne.debug:143 -==> Parameters: 18267231101(String) 3 | 2020-08-22 14:36:44.772 DEBUG [http-nio-8080-exec-1]com.chengzzz.stepservice.dao.UpstepsDao.selectOne.debug:143 -<== Total: 1 4 | 2020-08-22 14:36:44.777 DEBUG [http-nio-8080-exec-1]com.chengzzz.stepservice.dao.UpstepsDao.updateById.debug:143 -==> Preparing: UPDATE upsteps SET phone=?, password=?, steps=?, flag=?, msg=? WHERE id=? 5 | 2020-08-22 14:36:44.778 DEBUG [http-nio-8080-exec-1]com.chengzzz.stepservice.dao.UpstepsDao.updateById.debug:143 -==> Parameters: 18267231101(String), ZM123456(String), 4550(String), 1(Integer), (String), 1(Integer) 6 | 2020-08-22 14:36:44.780 DEBUG [http-nio-8080-exec-1]com.chengzzz.stepservice.dao.UpstepsDao.updateById.debug:143 -<== Updates: 1 7 | 2020-08-22 14:39:49.254 DEBUG [http-nio-8080-exec-1]com.chengzzz.stepservice.dao.UpstepsDao.selectOne.debug:143 -==> Preparing: SELECT id,phone,password,steps,flag,msg FROM upsteps WHERE (phone = ?) 8 | 2020-08-22 14:39:49.268 DEBUG [http-nio-8080-exec-1]com.chengzzz.stepservice.dao.UpstepsDao.selectOne.debug:143 -==> Parameters: 18267231101(String) 9 | 2020-08-22 14:39:49.281 DEBUG [http-nio-8080-exec-1]com.chengzzz.stepservice.dao.UpstepsDao.selectOne.debug:143 -<== Total: 1 10 | 2020-08-22 14:39:49.286 DEBUG [http-nio-8080-exec-1]com.chengzzz.stepservice.dao.UpstepsDao.updateById.debug:143 -==> Preparing: UPDATE upsteps SET phone=?, password=?, steps=?, flag=?, msg=? WHERE id=? 11 | 2020-08-22 14:39:49.287 DEBUG [http-nio-8080-exec-1]com.chengzzz.stepservice.dao.UpstepsDao.updateById.debug:143 -==> Parameters: 18267231101(String), ZM123456(String), 4550(String), 1(Integer), (String), 1(Integer) 12 | 2020-08-22 14:39:49.288 DEBUG [http-nio-8080-exec-1]com.chengzzz.stepservice.dao.UpstepsDao.updateById.debug:143 -<== Updates: 1 13 | 2020-08-22 14:42:40.193 DEBUG [http-nio-8080-exec-1]com.chengzzz.stepservice.dao.UpstepsDao.selectOne.debug:143 -==> Preparing: SELECT id,phone,password,steps,flag,msg FROM upsteps WHERE (phone = ?) 14 | 2020-08-22 14:42:40.208 DEBUG [http-nio-8080-exec-1]com.chengzzz.stepservice.dao.UpstepsDao.selectOne.debug:143 -==> Parameters: 18267231101(String) 15 | 2020-08-22 14:42:40.221 DEBUG [http-nio-8080-exec-1]com.chengzzz.stepservice.dao.UpstepsDao.selectOne.debug:143 -<== Total: 1 16 | 2020-08-22 14:42:40.225 DEBUG [http-nio-8080-exec-1]com.chengzzz.stepservice.dao.UpstepsDao.updateById.debug:143 -==> Preparing: UPDATE upsteps SET phone=?, password=?, steps=?, flag=? WHERE id=? 17 | 2020-08-22 14:42:40.226 DEBUG [http-nio-8080-exec-1]com.chengzzz.stepservice.dao.UpstepsDao.updateById.debug:143 -==> Parameters: 18267231101(String), ZM123456(String), 4550(String), 0(Integer), 1(Integer) 18 | 2020-08-22 14:42:40.228 DEBUG [http-nio-8080-exec-1]com.chengzzz.stepservice.dao.UpstepsDao.updateById.debug:143 -<== Updates: 1 19 | 2020-08-22 16:08:29.214 DEBUG [http-nio-8080-exec-1]com.chengzzz.stepservice.dao.UpstepsDao.selectOne.debug:143 -==> Preparing: SELECT id,phone,password,steps,flag,msg FROM upsteps WHERE (phone = ?) 20 | 2020-08-22 16:08:29.229 DEBUG [http-nio-8080-exec-1]com.chengzzz.stepservice.dao.UpstepsDao.selectOne.debug:143 -==> Parameters: 18267231101(String) 21 | 2020-08-22 16:08:29.244 DEBUG [http-nio-8080-exec-1]com.chengzzz.stepservice.dao.UpstepsDao.selectOne.debug:143 -<== Total: 0 22 | 2020-08-22 16:09:40.827 DEBUG [http-nio-8080-exec-1]com.chengzzz.stepservice.dao.UpstepsDao.selectOne.debug:143 -==> Preparing: SELECT id,phone,password,steps,flag,msg FROM upsteps WHERE (phone = ?) 23 | 2020-08-22 16:09:40.842 DEBUG [http-nio-8080-exec-1]com.chengzzz.stepservice.dao.UpstepsDao.selectOne.debug:143 -==> Parameters: 18267231101(String) 24 | 2020-08-22 16:09:40.857 DEBUG [http-nio-8080-exec-1]com.chengzzz.stepservice.dao.UpstepsDao.selectOne.debug:143 -<== Total: 0 25 | 2020-08-22 16:09:44.963 DEBUG [http-nio-8080-exec-2]com.chengzzz.stepservice.dao.UpstepsDao.selectOne.debug:143 -==> Preparing: SELECT id,phone,password,steps,flag,msg FROM upsteps WHERE (phone = ?) 26 | 2020-08-22 16:09:44.963 DEBUG [http-nio-8080-exec-2]com.chengzzz.stepservice.dao.UpstepsDao.selectOne.debug:143 -==> Parameters: 18267231101(String) 27 | 2020-08-22 16:09:44.964 DEBUG [http-nio-8080-exec-2]com.chengzzz.stepservice.dao.UpstepsDao.selectOne.debug:143 -<== Total: 0 28 | 2020-08-22 16:13:08.871 DEBUG [http-nio-8080-exec-1]com.chengzzz.stepservice.dao.UpstepsDao.selectOne.debug:143 -==> Preparing: SELECT id,phone,password,steps,flag,msg FROM upsteps WHERE (phone = ?) 29 | 2020-08-22 16:13:08.885 DEBUG [http-nio-8080-exec-1]com.chengzzz.stepservice.dao.UpstepsDao.selectOne.debug:143 -==> Parameters: 18267231101(String) 30 | 2020-08-22 16:13:08.900 DEBUG [http-nio-8080-exec-1]com.chengzzz.stepservice.dao.UpstepsDao.selectOne.debug:143 -<== Total: 0 31 | 2020-08-22 16:13:08.904 DEBUG [http-nio-8080-exec-1]com.chengzzz.stepservice.dao.UpstepsDao.insert.debug:143 -==> Preparing: INSERT INTO upsteps ( phone, password, steps, flag, msg ) VALUES ( ?, ?, ?, ?, ? ) 32 | 2020-08-22 16:13:08.905 DEBUG [http-nio-8080-exec-1]com.chengzzz.stepservice.dao.UpstepsDao.insert.debug:143 -==> Parameters: 18267231101(String), ZM123456(String), 9550(String), 1(Integer), (String) 33 | 2020-08-22 16:13:08.907 DEBUG [http-nio-8080-exec-1]com.chengzzz.stepservice.dao.UpstepsDao.insert.debug:143 -<== Updates: 1 34 | 2020-08-22 16:18:48.754 DEBUG [http-nio-8080-exec-1]com.chengzzz.stepservice.dao.UpstepsDao.selectOne.debug:143 -==> Preparing: SELECT id,phone,password,steps,flag,msg FROM upsteps WHERE (phone = ?) 35 | 2020-08-22 16:18:48.769 DEBUG [http-nio-8080-exec-1]com.chengzzz.stepservice.dao.UpstepsDao.selectOne.debug:143 -==> Parameters: 18267231101(String) 36 | 2020-08-22 16:19:08.038 DEBUG [http-nio-8080-exec-1]com.chengzzz.stepservice.dao.UpstepsDao.selectOne.debug:143 -==> Preparing: SELECT id,phone,password,steps,flag,msg FROM upsteps WHERE (phone = ?) 37 | 2020-08-22 16:19:08.053 DEBUG [http-nio-8080-exec-1]com.chengzzz.stepservice.dao.UpstepsDao.selectOne.debug:143 -==> Parameters: 18267231101(String) 38 | 2020-08-22 16:19:08.068 DEBUG [http-nio-8080-exec-1]com.chengzzz.stepservice.dao.UpstepsDao.selectOne.debug:143 -<== Total: 1 39 | 2020-08-22 16:19:08.073 DEBUG [http-nio-8080-exec-1]com.chengzzz.stepservice.dao.UpstepsDao.updateById.debug:143 -==> Preparing: UPDATE upsteps SET phone=?, password=?, steps=?, flag=? WHERE id=? 40 | 2020-08-22 16:19:08.074 DEBUG [http-nio-8080-exec-1]com.chengzzz.stepservice.dao.UpstepsDao.updateById.debug:143 -==> Parameters: 18267231101(String), ZM123456(String), 9550(String), 0(Integer), 2(Integer) 41 | 2020-08-22 16:19:08.075 DEBUG [http-nio-8080-exec-1]com.chengzzz.stepservice.dao.UpstepsDao.updateById.debug:143 -<== Updates: 1 42 | 2020-08-22 16:22:26.601 DEBUG [http-nio-8080-exec-4]com.chengzzz.stepservice.dao.UpstepsDao.selectOne.debug:143 -==> Preparing: SELECT id,phone,password,steps,flag,msg FROM upsteps WHERE (phone = ?) 43 | 2020-08-22 16:22:26.616 DEBUG [http-nio-8080-exec-4]com.chengzzz.stepservice.dao.UpstepsDao.selectOne.debug:143 -==> Parameters: 18267231101(String) 44 | 2020-08-22 16:22:26.632 DEBUG [http-nio-8080-exec-4]com.chengzzz.stepservice.dao.UpstepsDao.selectOne.debug:143 -<== Total: 1 45 | 2020-08-22 16:22:26.637 DEBUG [http-nio-8080-exec-4]com.chengzzz.stepservice.dao.UpstepsDao.updateById.debug:143 -==> Preparing: UPDATE upsteps SET phone=?, password=?, steps=?, flag=? WHERE id=? 46 | 2020-08-22 16:22:26.637 DEBUG [http-nio-8080-exec-4]com.chengzzz.stepservice.dao.UpstepsDao.updateById.debug:143 -==> Parameters: 18267231101(String), ZMC123456(String), 6660(String), 0(Integer), 2(Integer) 47 | 2020-08-22 16:22:26.639 DEBUG [http-nio-8080-exec-4]com.chengzzz.stepservice.dao.UpstepsDao.updateById.debug:143 -<== Updates: 1 48 | -------------------------------------------------------------------------------- /logs/archive/blog-info-2020-08-22.0.log: -------------------------------------------------------------------------------- 1 | 2020-08-22 14:36:24.489 INFO [restartedMain]com.chengzzz.stepservice.StepserviceApplication.logStarting:55 -Starting StepserviceApplication on DESKTOP-9S7FNJU with PID 5992 (G:\stepservice\target\classes started by Yet in G:\stepservice) 2 | 2020-08-22 14:36:24.492 INFO [restartedMain]com.chengzzz.stepservice.StepserviceApplication.logStartupProfileInfo:651 -No active profile set, falling back to default profiles: default 3 | 2020-08-22 14:36:24.536 INFO [restartedMain]o.s.b.devtools.env.DevToolsPropertyDefaultsPostProcessor.logTo:225 -Devtools property defaults active! Set 'spring.devtools.add-properties' to 'false' to disable 4 | 2020-08-22 14:36:24.536 INFO [restartedMain]o.s.b.devtools.env.DevToolsPropertyDefaultsPostProcessor.logTo:225 -For additional web related logging consider setting the 'logging.level.web' property to 'DEBUG' 5 | 2020-08-22 14:36:25.297 INFO [restartedMain]o.s.boot.web.embedded.tomcat.TomcatWebServer.initialize:108 -Tomcat initialized with port(s): 8080 (http) 6 | 2020-08-22 14:36:25.304 INFO [restartedMain]org.apache.coyote.http11.Http11NioProtocol.log:173 -Initializing ProtocolHandler ["http-nio-8080"] 7 | 2020-08-22 14:36:25.304 INFO [restartedMain]org.apache.catalina.core.StandardService.log:173 -Starting service [Tomcat] 8 | 2020-08-22 14:36:25.304 INFO [restartedMain]org.apache.catalina.core.StandardEngine.log:173 -Starting Servlet engine: [Apache Tomcat/9.0.37] 9 | 2020-08-22 14:36:25.380 INFO [restartedMain]o.a.catalina.core.ContainerBase.[Tomcat].[localhost].[/].log:173 -Initializing Spring embedded WebApplicationContext 10 | 2020-08-22 14:36:25.380 INFO [restartedMain]o.s.b.w.s.context.ServletWebServerApplicationContext.prepareWebApplicationContext:285 -Root WebApplicationContext: initialization completed in 843 ms 11 | 2020-08-22 14:36:26.608 INFO [restartedMain]o.s.scheduling.concurrent.ThreadPoolTaskExecutor.initialize:181 -Initializing ExecutorService 'applicationTaskExecutor' 12 | 2020-08-22 14:36:26.781 INFO [restartedMain]o.s.scheduling.concurrent.ThreadPoolTaskScheduler.initialize:181 -Initializing ExecutorService 'taskScheduler' 13 | 2020-08-22 14:36:26.810 INFO [restartedMain]o.s.boot.devtools.autoconfigure.OptionalLiveReloadServer.startServer:58 -LiveReload server is running on port 35729 14 | 2020-08-22 14:36:26.826 INFO [restartedMain]org.apache.coyote.http11.Http11NioProtocol.log:173 -Starting ProtocolHandler ["http-nio-8080"] 15 | 2020-08-22 14:36:26.844 INFO [restartedMain]o.s.boot.web.embedded.tomcat.TomcatWebServer.start:220 -Tomcat started on port(s): 8080 (http) with context path '' 16 | 2020-08-22 14:36:26.857 INFO [restartedMain]com.chengzzz.stepservice.StepserviceApplication.logStarted:61 -Started StepserviceApplication in 2.622 seconds (JVM running for 3.908) 17 | 2020-08-22 14:36:44.567 INFO [http-nio-8080-exec-1]o.a.catalina.core.ContainerBase.[Tomcat].[localhost].[/].log:173 -Initializing Spring DispatcherServlet 'dispatcherServlet' 18 | 2020-08-22 14:36:44.568 INFO [http-nio-8080-exec-1]org.springframework.web.servlet.DispatcherServlet.initServletBean:525 -Initializing Servlet 'dispatcherServlet' 19 | 2020-08-22 14:36:44.573 INFO [http-nio-8080-exec-1]org.springframework.web.servlet.DispatcherServlet.initServletBean:547 -Completed initialization in 4 ms 20 | 2020-08-22 14:36:44.651 INFO [http-nio-8080-exec-1]com.zaxxer.hikari.HikariDataSource.getConnection:110 -HikariPool-1 - Starting... 21 | 2020-08-22 14:36:44.738 INFO [http-nio-8080-exec-1]com.zaxxer.hikari.HikariDataSource.getConnection:123 -HikariPool-1 - Start completed. 22 | 2020-08-22 14:39:36.559 INFO [restartedMain]com.chengzzz.stepservice.StepserviceApplication.logStarting:55 -Starting StepserviceApplication on DESKTOP-9S7FNJU with PID 7492 (G:\stepservice\target\classes started by Yet in G:\stepservice) 23 | 2020-08-22 14:39:36.561 INFO [restartedMain]com.chengzzz.stepservice.StepserviceApplication.logStartupProfileInfo:651 -No active profile set, falling back to default profiles: default 24 | 2020-08-22 14:39:36.603 INFO [restartedMain]o.s.b.devtools.env.DevToolsPropertyDefaultsPostProcessor.logTo:225 -Devtools property defaults active! Set 'spring.devtools.add-properties' to 'false' to disable 25 | 2020-08-22 14:39:36.603 INFO [restartedMain]o.s.b.devtools.env.DevToolsPropertyDefaultsPostProcessor.logTo:225 -For additional web related logging consider setting the 'logging.level.web' property to 'DEBUG' 26 | 2020-08-22 14:39:37.385 INFO [restartedMain]o.s.boot.web.embedded.tomcat.TomcatWebServer.initialize:108 -Tomcat initialized with port(s): 8080 (http) 27 | 2020-08-22 14:39:37.391 INFO [restartedMain]org.apache.coyote.http11.Http11NioProtocol.log:173 -Initializing ProtocolHandler ["http-nio-8080"] 28 | 2020-08-22 14:39:37.392 INFO [restartedMain]org.apache.catalina.core.StandardService.log:173 -Starting service [Tomcat] 29 | 2020-08-22 14:39:37.392 INFO [restartedMain]org.apache.catalina.core.StandardEngine.log:173 -Starting Servlet engine: [Apache Tomcat/9.0.37] 30 | 2020-08-22 14:39:37.466 INFO [restartedMain]o.a.catalina.core.ContainerBase.[Tomcat].[localhost].[/].log:173 -Initializing Spring embedded WebApplicationContext 31 | 2020-08-22 14:39:37.466 INFO [restartedMain]o.s.b.w.s.context.ServletWebServerApplicationContext.prepareWebApplicationContext:285 -Root WebApplicationContext: initialization completed in 863 ms 32 | 2020-08-22 14:39:38.591 INFO [restartedMain]o.s.scheduling.concurrent.ThreadPoolTaskExecutor.initialize:181 -Initializing ExecutorService 'applicationTaskExecutor' 33 | 2020-08-22 14:39:38.739 INFO [restartedMain]o.s.scheduling.concurrent.ThreadPoolTaskScheduler.initialize:181 -Initializing ExecutorService 'taskScheduler' 34 | 2020-08-22 14:39:38.771 INFO [restartedMain]o.s.boot.devtools.autoconfigure.OptionalLiveReloadServer.startServer:58 -LiveReload server is running on port 35729 35 | 2020-08-22 14:39:38.785 INFO [restartedMain]org.apache.coyote.http11.Http11NioProtocol.log:173 -Starting ProtocolHandler ["http-nio-8080"] 36 | 2020-08-22 14:39:38.801 INFO [restartedMain]o.s.boot.web.embedded.tomcat.TomcatWebServer.start:220 -Tomcat started on port(s): 8080 (http) with context path '' 37 | 2020-08-22 14:39:38.813 INFO [restartedMain]com.chengzzz.stepservice.StepserviceApplication.logStarted:61 -Started StepserviceApplication in 2.543 seconds (JVM running for 3.756) 38 | 2020-08-22 14:39:49.081 INFO [http-nio-8080-exec-1]o.a.catalina.core.ContainerBase.[Tomcat].[localhost].[/].log:173 -Initializing Spring DispatcherServlet 'dispatcherServlet' 39 | 2020-08-22 14:39:49.082 INFO [http-nio-8080-exec-1]org.springframework.web.servlet.DispatcherServlet.initServletBean:525 -Initializing Servlet 'dispatcherServlet' 40 | 2020-08-22 14:39:49.086 INFO [http-nio-8080-exec-1]org.springframework.web.servlet.DispatcherServlet.initServletBean:547 -Completed initialization in 4 ms 41 | 2020-08-22 14:39:49.163 INFO [http-nio-8080-exec-1]com.zaxxer.hikari.HikariDataSource.getConnection:110 -HikariPool-1 - Starting... 42 | 2020-08-22 14:39:49.249 INFO [http-nio-8080-exec-1]com.zaxxer.hikari.HikariDataSource.getConnection:123 -HikariPool-1 - Start completed. 43 | 2020-08-22 14:42:28.930 INFO [restartedMain]com.chengzzz.stepservice.StepserviceApplication.logStarting:55 -Starting StepserviceApplication on DESKTOP-9S7FNJU with PID 12812 (G:\stepservice\target\classes started by Yet in G:\stepservice) 44 | 2020-08-22 14:42:28.933 INFO [restartedMain]com.chengzzz.stepservice.StepserviceApplication.logStartupProfileInfo:651 -No active profile set, falling back to default profiles: default 45 | 2020-08-22 14:42:28.978 INFO [restartedMain]o.s.b.devtools.env.DevToolsPropertyDefaultsPostProcessor.logTo:225 -Devtools property defaults active! Set 'spring.devtools.add-properties' to 'false' to disable 46 | 2020-08-22 14:42:28.978 INFO [restartedMain]o.s.b.devtools.env.DevToolsPropertyDefaultsPostProcessor.logTo:225 -For additional web related logging consider setting the 'logging.level.web' property to 'DEBUG' 47 | 2020-08-22 14:42:29.743 INFO [restartedMain]o.s.boot.web.embedded.tomcat.TomcatWebServer.initialize:108 -Tomcat initialized with port(s): 8080 (http) 48 | 2020-08-22 14:42:29.748 INFO [restartedMain]org.apache.coyote.http11.Http11NioProtocol.log:173 -Initializing ProtocolHandler ["http-nio-8080"] 49 | 2020-08-22 14:42:29.749 INFO [restartedMain]org.apache.catalina.core.StandardService.log:173 -Starting service [Tomcat] 50 | 2020-08-22 14:42:29.749 INFO [restartedMain]org.apache.catalina.core.StandardEngine.log:173 -Starting Servlet engine: [Apache Tomcat/9.0.37] 51 | 2020-08-22 14:42:29.822 INFO [restartedMain]o.a.catalina.core.ContainerBase.[Tomcat].[localhost].[/].log:173 -Initializing Spring embedded WebApplicationContext 52 | 2020-08-22 14:42:29.822 INFO [restartedMain]o.s.b.w.s.context.ServletWebServerApplicationContext.prepareWebApplicationContext:285 -Root WebApplicationContext: initialization completed in 843 ms 53 | 2020-08-22 14:42:30.967 INFO [restartedMain]o.s.scheduling.concurrent.ThreadPoolTaskExecutor.initialize:181 -Initializing ExecutorService 'applicationTaskExecutor' 54 | 2020-08-22 14:42:31.127 INFO [restartedMain]o.s.scheduling.concurrent.ThreadPoolTaskScheduler.initialize:181 -Initializing ExecutorService 'taskScheduler' 55 | 2020-08-22 14:42:31.152 INFO [restartedMain]o.s.boot.devtools.autoconfigure.OptionalLiveReloadServer.startServer:58 -LiveReload server is running on port 35729 56 | 2020-08-22 14:42:31.165 INFO [restartedMain]org.apache.coyote.http11.Http11NioProtocol.log:173 -Starting ProtocolHandler ["http-nio-8080"] 57 | 2020-08-22 14:42:31.182 INFO [restartedMain]o.s.boot.web.embedded.tomcat.TomcatWebServer.start:220 -Tomcat started on port(s): 8080 (http) with context path '' 58 | 2020-08-22 14:42:31.195 INFO [restartedMain]com.chengzzz.stepservice.StepserviceApplication.logStarted:61 -Started StepserviceApplication in 2.539 seconds (JVM running for 3.806) 59 | 2020-08-22 14:42:40.019 INFO [http-nio-8080-exec-1]o.a.catalina.core.ContainerBase.[Tomcat].[localhost].[/].log:173 -Initializing Spring DispatcherServlet 'dispatcherServlet' 60 | 2020-08-22 14:42:40.020 INFO [http-nio-8080-exec-1]org.springframework.web.servlet.DispatcherServlet.initServletBean:525 -Initializing Servlet 'dispatcherServlet' 61 | 2020-08-22 14:42:40.024 INFO [http-nio-8080-exec-1]org.springframework.web.servlet.DispatcherServlet.initServletBean:547 -Completed initialization in 4 ms 62 | 2020-08-22 14:42:40.103 INFO [http-nio-8080-exec-1]com.zaxxer.hikari.HikariDataSource.getConnection:110 -HikariPool-1 - Starting... 63 | 2020-08-22 14:42:40.187 INFO [http-nio-8080-exec-1]com.zaxxer.hikari.HikariDataSource.getConnection:123 -HikariPool-1 - Start completed. 64 | 2020-08-22 14:42:40.685 INFO [OkHttp https://sports.lifesense.com/...]com.chengzzz.stepservice.service.impl.UpstepsServiceImpl.onResponse:239 -登录结果的响应: {"code":407,"msg":"密码错误"} 65 | 2020-08-22 14:42:40.688 INFO [OkHttp https://sports.lifesense.com/...]com.chengzzz.stepservice.service.impl.UpstepsServiceImpl.updateCallback:76 -Callback中的Msg{"code":407,"msg":"密码错误"} 66 | 2020-08-22 14:42:40.688 INFO [OkHttp https://sports.lifesense.com/...]com.chengzzz.stepservice.controller.ViewController.updateResult:56 -控制器返回的msg{"code":407,"msg":"密码错误"} 67 | 2020-08-22 14:44:18.635 INFO [Thread-5]o.s.scheduling.concurrent.ThreadPoolTaskScheduler.shutdown:218 -Shutting down ExecutorService 'taskScheduler' 68 | 2020-08-22 14:44:18.636 INFO [Thread-5]o.s.scheduling.concurrent.ThreadPoolTaskExecutor.shutdown:218 -Shutting down ExecutorService 'applicationTaskExecutor' 69 | 2020-08-22 14:44:18.636 INFO [Thread-5]com.zaxxer.hikari.HikariDataSource.close:350 -HikariPool-1 - Shutdown initiated... 70 | 2020-08-22 14:44:18.642 INFO [Thread-5]com.zaxxer.hikari.HikariDataSource.close:352 -HikariPool-1 - Shutdown completed. 71 | 2020-08-22 16:07:32.583 INFO [restartedMain]com.chengzzz.stepservice.StepserviceApplication.logStarting:55 -Starting StepserviceApplication on DESKTOP-9S7FNJU with PID 1472 (G:\stepservice\target\classes started by Yet in G:\stepservice) 72 | 2020-08-22 16:07:32.586 INFO [restartedMain]com.chengzzz.stepservice.StepserviceApplication.logStartupProfileInfo:651 -No active profile set, falling back to default profiles: default 73 | 2020-08-22 16:07:32.628 INFO [restartedMain]o.s.b.devtools.env.DevToolsPropertyDefaultsPostProcessor.logTo:225 -Devtools property defaults active! Set 'spring.devtools.add-properties' to 'false' to disable 74 | 2020-08-22 16:07:32.628 INFO [restartedMain]o.s.b.devtools.env.DevToolsPropertyDefaultsPostProcessor.logTo:225 -For additional web related logging consider setting the 'logging.level.web' property to 'DEBUG' 75 | 2020-08-22 16:07:33.427 INFO [restartedMain]o.s.boot.web.embedded.tomcat.TomcatWebServer.initialize:108 -Tomcat initialized with port(s): 8080 (http) 76 | 2020-08-22 16:07:33.433 INFO [restartedMain]org.apache.coyote.http11.Http11NioProtocol.log:173 -Initializing ProtocolHandler ["http-nio-8080"] 77 | 2020-08-22 16:07:33.434 INFO [restartedMain]org.apache.catalina.core.StandardService.log:173 -Starting service [Tomcat] 78 | 2020-08-22 16:07:33.434 INFO [restartedMain]org.apache.catalina.core.StandardEngine.log:173 -Starting Servlet engine: [Apache Tomcat/9.0.37] 79 | 2020-08-22 16:07:33.507 INFO [restartedMain]o.a.catalina.core.ContainerBase.[Tomcat].[localhost].[/].log:173 -Initializing Spring embedded WebApplicationContext 80 | 2020-08-22 16:07:33.508 INFO [restartedMain]o.s.b.w.s.context.ServletWebServerApplicationContext.prepareWebApplicationContext:285 -Root WebApplicationContext: initialization completed in 879 ms 81 | 2020-08-22 16:07:34.704 INFO [restartedMain]o.s.scheduling.concurrent.ThreadPoolTaskExecutor.initialize:181 -Initializing ExecutorService 'applicationTaskExecutor' 82 | 2020-08-22 16:07:34.863 INFO [restartedMain]o.s.scheduling.concurrent.ThreadPoolTaskScheduler.initialize:181 -Initializing ExecutorService 'taskScheduler' 83 | 2020-08-22 16:07:34.890 INFO [restartedMain]o.s.boot.devtools.autoconfigure.OptionalLiveReloadServer.startServer:58 -LiveReload server is running on port 35729 84 | 2020-08-22 16:07:34.904 INFO [restartedMain]org.apache.coyote.http11.Http11NioProtocol.log:173 -Starting ProtocolHandler ["http-nio-8080"] 85 | 2020-08-22 16:07:34.937 INFO [restartedMain]o.s.boot.web.embedded.tomcat.TomcatWebServer.start:220 -Tomcat started on port(s): 8080 (http) with context path '' 86 | 2020-08-22 16:07:34.956 INFO [restartedMain]com.chengzzz.stepservice.StepserviceApplication.logStarted:61 -Started StepserviceApplication in 2.659 seconds (JVM running for 3.873) 87 | 2020-08-22 16:07:42.709 INFO [restartedMain]com.chengzzz.stepservice.StepserviceApplication.logStarting:55 -Starting StepserviceApplication on DESKTOP-9S7FNJU with PID 1480 (G:\stepservice\target\classes started by Yet in G:\stepservice) 88 | 2020-08-22 16:07:42.712 INFO [restartedMain]com.chengzzz.stepservice.StepserviceApplication.logStartupProfileInfo:651 -No active profile set, falling back to default profiles: default 89 | 2020-08-22 16:07:42.755 INFO [restartedMain]o.s.b.devtools.env.DevToolsPropertyDefaultsPostProcessor.logTo:225 -Devtools property defaults active! Set 'spring.devtools.add-properties' to 'false' to disable 90 | 2020-08-22 16:07:42.755 INFO [restartedMain]o.s.b.devtools.env.DevToolsPropertyDefaultsPostProcessor.logTo:225 -For additional web related logging consider setting the 'logging.level.web' property to 'DEBUG' 91 | 2020-08-22 16:07:43.515 INFO [restartedMain]o.s.boot.web.embedded.tomcat.TomcatWebServer.initialize:108 -Tomcat initialized with port(s): 8080 (http) 92 | 2020-08-22 16:07:43.521 INFO [restartedMain]org.apache.coyote.http11.Http11NioProtocol.log:173 -Initializing ProtocolHandler ["http-nio-8080"] 93 | 2020-08-22 16:07:43.521 INFO [restartedMain]org.apache.catalina.core.StandardService.log:173 -Starting service [Tomcat] 94 | 2020-08-22 16:07:43.521 INFO [restartedMain]org.apache.catalina.core.StandardEngine.log:173 -Starting Servlet engine: [Apache Tomcat/9.0.37] 95 | 2020-08-22 16:07:43.594 INFO [restartedMain]o.a.catalina.core.ContainerBase.[Tomcat].[localhost].[/].log:173 -Initializing Spring embedded WebApplicationContext 96 | 2020-08-22 16:07:43.595 INFO [restartedMain]o.s.b.w.s.context.ServletWebServerApplicationContext.prepareWebApplicationContext:285 -Root WebApplicationContext: initialization completed in 839 ms 97 | 2020-08-22 16:07:44.749 INFO [restartedMain]o.s.scheduling.concurrent.ThreadPoolTaskExecutor.initialize:181 -Initializing ExecutorService 'applicationTaskExecutor' 98 | 2020-08-22 16:07:44.904 INFO [restartedMain]o.s.scheduling.concurrent.ThreadPoolTaskScheduler.initialize:181 -Initializing ExecutorService 'taskScheduler' 99 | 2020-08-22 16:07:44.931 INFO [restartedMain]o.s.boot.devtools.autoconfigure.OptionalLiveReloadServer.startServer:58 -LiveReload server is running on port 35729 100 | 2020-08-22 16:07:44.945 INFO [restartedMain]org.apache.coyote.http11.Http11NioProtocol.log:173 -Starting ProtocolHandler ["http-nio-8080"] 101 | 2020-08-22 16:07:44.963 INFO [restartedMain]o.s.boot.web.embedded.tomcat.TomcatWebServer.start:220 -Tomcat started on port(s): 8080 (http) with context path '' 102 | 2020-08-22 16:07:44.975 INFO [restartedMain]com.chengzzz.stepservice.StepserviceApplication.logStarted:61 -Started StepserviceApplication in 2.542 seconds (JVM running for 3.803) 103 | 2020-08-22 16:07:48.606 INFO [http-nio-8080-exec-1]o.a.catalina.core.ContainerBase.[Tomcat].[localhost].[/].log:173 -Initializing Spring DispatcherServlet 'dispatcherServlet' 104 | 2020-08-22 16:07:48.607 INFO [http-nio-8080-exec-1]org.springframework.web.servlet.DispatcherServlet.initServletBean:525 -Initializing Servlet 'dispatcherServlet' 105 | 2020-08-22 16:07:48.612 INFO [http-nio-8080-exec-1]org.springframework.web.servlet.DispatcherServlet.initServletBean:547 -Completed initialization in 5 ms 106 | 2020-08-22 16:08:02.272 INFO [http-nio-8080-exec-4]com.zaxxer.hikari.HikariDataSource.getConnection:110 -HikariPool-1 - Starting... 107 | 2020-08-22 16:08:23.133 INFO [restartedMain]com.chengzzz.stepservice.StepserviceApplication.logStarting:55 -Starting StepserviceApplication on DESKTOP-9S7FNJU with PID 16084 (G:\stepservice\target\classes started by Yet in G:\stepservice) 108 | 2020-08-22 16:08:23.136 INFO [restartedMain]com.chengzzz.stepservice.StepserviceApplication.logStartupProfileInfo:651 -No active profile set, falling back to default profiles: default 109 | 2020-08-22 16:08:23.174 INFO [restartedMain]o.s.b.devtools.env.DevToolsPropertyDefaultsPostProcessor.logTo:225 -Devtools property defaults active! Set 'spring.devtools.add-properties' to 'false' to disable 110 | 2020-08-22 16:08:23.175 INFO [restartedMain]o.s.b.devtools.env.DevToolsPropertyDefaultsPostProcessor.logTo:225 -For additional web related logging consider setting the 'logging.level.web' property to 'DEBUG' 111 | 2020-08-22 16:08:23.908 INFO [restartedMain]o.s.boot.web.embedded.tomcat.TomcatWebServer.initialize:108 -Tomcat initialized with port(s): 8080 (http) 112 | 2020-08-22 16:08:23.914 INFO [restartedMain]org.apache.coyote.http11.Http11NioProtocol.log:173 -Initializing ProtocolHandler ["http-nio-8080"] 113 | 2020-08-22 16:08:23.914 INFO [restartedMain]org.apache.catalina.core.StandardService.log:173 -Starting service [Tomcat] 114 | 2020-08-22 16:08:23.914 INFO [restartedMain]org.apache.catalina.core.StandardEngine.log:173 -Starting Servlet engine: [Apache Tomcat/9.0.37] 115 | 2020-08-22 16:08:23.986 INFO [restartedMain]o.a.catalina.core.ContainerBase.[Tomcat].[localhost].[/].log:173 -Initializing Spring embedded WebApplicationContext 116 | 2020-08-22 16:08:23.987 INFO [restartedMain]o.s.b.w.s.context.ServletWebServerApplicationContext.prepareWebApplicationContext:285 -Root WebApplicationContext: initialization completed in 812 ms 117 | 2020-08-22 16:08:25.106 INFO [restartedMain]o.s.scheduling.concurrent.ThreadPoolTaskExecutor.initialize:181 -Initializing ExecutorService 'applicationTaskExecutor' 118 | 2020-08-22 16:08:25.263 INFO [restartedMain]o.s.scheduling.concurrent.ThreadPoolTaskScheduler.initialize:181 -Initializing ExecutorService 'taskScheduler' 119 | 2020-08-22 16:08:25.289 INFO [restartedMain]o.s.boot.devtools.autoconfigure.OptionalLiveReloadServer.startServer:58 -LiveReload server is running on port 35729 120 | 2020-08-22 16:08:25.303 INFO [restartedMain]org.apache.coyote.http11.Http11NioProtocol.log:173 -Starting ProtocolHandler ["http-nio-8080"] 121 | 2020-08-22 16:08:25.327 INFO [restartedMain]o.s.boot.web.embedded.tomcat.TomcatWebServer.start:220 -Tomcat started on port(s): 8080 (http) with context path '' 122 | 2020-08-22 16:08:25.339 INFO [restartedMain]com.chengzzz.stepservice.StepserviceApplication.logStarted:61 -Started StepserviceApplication in 2.497 seconds (JVM running for 3.708) 123 | 2020-08-22 16:08:29.041 INFO [http-nio-8080-exec-1]o.a.catalina.core.ContainerBase.[Tomcat].[localhost].[/].log:173 -Initializing Spring DispatcherServlet 'dispatcherServlet' 124 | 2020-08-22 16:08:29.042 INFO [http-nio-8080-exec-1]org.springframework.web.servlet.DispatcherServlet.initServletBean:525 -Initializing Servlet 'dispatcherServlet' 125 | 2020-08-22 16:08:29.046 INFO [http-nio-8080-exec-1]org.springframework.web.servlet.DispatcherServlet.initServletBean:547 -Completed initialization in 4 ms 126 | 2020-08-22 16:08:29.121 INFO [http-nio-8080-exec-1]com.zaxxer.hikari.HikariDataSource.getConnection:110 -HikariPool-1 - Starting... 127 | 2020-08-22 16:08:29.209 INFO [http-nio-8080-exec-1]com.zaxxer.hikari.HikariDataSource.getConnection:123 -HikariPool-1 - Start completed. 128 | 2020-08-22 16:09:33.677 INFO [restartedMain]com.chengzzz.stepservice.StepserviceApplication.logStarting:55 -Starting StepserviceApplication on DESKTOP-9S7FNJU with PID 6768 (G:\stepservice\target\classes started by Yet in G:\stepservice) 129 | 2020-08-22 16:09:33.681 INFO [restartedMain]com.chengzzz.stepservice.StepserviceApplication.logStartupProfileInfo:651 -No active profile set, falling back to default profiles: default 130 | 2020-08-22 16:09:33.726 INFO [restartedMain]o.s.b.devtools.env.DevToolsPropertyDefaultsPostProcessor.logTo:225 -Devtools property defaults active! Set 'spring.devtools.add-properties' to 'false' to disable 131 | 2020-08-22 16:09:33.727 INFO [restartedMain]o.s.b.devtools.env.DevToolsPropertyDefaultsPostProcessor.logTo:225 -For additional web related logging consider setting the 'logging.level.web' property to 'DEBUG' 132 | 2020-08-22 16:09:34.478 INFO [restartedMain]o.s.boot.web.embedded.tomcat.TomcatWebServer.initialize:108 -Tomcat initialized with port(s): 8080 (http) 133 | 2020-08-22 16:09:34.485 INFO [restartedMain]org.apache.coyote.http11.Http11NioProtocol.log:173 -Initializing ProtocolHandler ["http-nio-8080"] 134 | 2020-08-22 16:09:34.485 INFO [restartedMain]org.apache.catalina.core.StandardService.log:173 -Starting service [Tomcat] 135 | 2020-08-22 16:09:34.485 INFO [restartedMain]org.apache.catalina.core.StandardEngine.log:173 -Starting Servlet engine: [Apache Tomcat/9.0.37] 136 | 2020-08-22 16:09:34.562 INFO [restartedMain]o.a.catalina.core.ContainerBase.[Tomcat].[localhost].[/].log:173 -Initializing Spring embedded WebApplicationContext 137 | 2020-08-22 16:09:34.563 INFO [restartedMain]o.s.b.w.s.context.ServletWebServerApplicationContext.prepareWebApplicationContext:285 -Root WebApplicationContext: initialization completed in 836 ms 138 | 2020-08-22 16:09:35.776 INFO [restartedMain]o.s.scheduling.concurrent.ThreadPoolTaskExecutor.initialize:181 -Initializing ExecutorService 'applicationTaskExecutor' 139 | 2020-08-22 16:09:35.929 INFO [restartedMain]o.s.scheduling.concurrent.ThreadPoolTaskScheduler.initialize:181 -Initializing ExecutorService 'taskScheduler' 140 | 2020-08-22 16:09:35.954 INFO [restartedMain]o.s.boot.devtools.autoconfigure.OptionalLiveReloadServer.startServer:58 -LiveReload server is running on port 35729 141 | 2020-08-22 16:09:35.967 INFO [restartedMain]org.apache.coyote.http11.Http11NioProtocol.log:173 -Starting ProtocolHandler ["http-nio-8080"] 142 | 2020-08-22 16:09:35.984 INFO [restartedMain]o.s.boot.web.embedded.tomcat.TomcatWebServer.start:220 -Tomcat started on port(s): 8080 (http) with context path '' 143 | 2020-08-22 16:09:35.995 INFO [restartedMain]com.chengzzz.stepservice.StepserviceApplication.logStarted:61 -Started StepserviceApplication in 2.593 seconds (JVM running for 3.826) 144 | 2020-08-22 16:09:40.649 INFO [http-nio-8080-exec-1]o.a.catalina.core.ContainerBase.[Tomcat].[localhost].[/].log:173 -Initializing Spring DispatcherServlet 'dispatcherServlet' 145 | 2020-08-22 16:09:40.649 INFO [http-nio-8080-exec-1]org.springframework.web.servlet.DispatcherServlet.initServletBean:525 -Initializing Servlet 'dispatcherServlet' 146 | 2020-08-22 16:09:40.653 INFO [http-nio-8080-exec-1]org.springframework.web.servlet.DispatcherServlet.initServletBean:547 -Completed initialization in 3 ms 147 | 2020-08-22 16:09:40.732 INFO [http-nio-8080-exec-1]com.zaxxer.hikari.HikariDataSource.getConnection:110 -HikariPool-1 - Starting... 148 | 2020-08-22 16:09:40.822 INFO [http-nio-8080-exec-1]com.zaxxer.hikari.HikariDataSource.getConnection:123 -HikariPool-1 - Start completed. 149 | 2020-08-22 16:12:56.619 INFO [restartedMain]com.chengzzz.stepservice.StepserviceApplication.logStarting:55 -Starting StepserviceApplication on DESKTOP-9S7FNJU with PID 15748 (G:\stepservice\target\classes started by Yet in G:\stepservice) 150 | 2020-08-22 16:12:56.622 INFO [restartedMain]com.chengzzz.stepservice.StepserviceApplication.logStartupProfileInfo:651 -No active profile set, falling back to default profiles: default 151 | 2020-08-22 16:12:56.666 INFO [restartedMain]o.s.b.devtools.env.DevToolsPropertyDefaultsPostProcessor.logTo:225 -Devtools property defaults active! Set 'spring.devtools.add-properties' to 'false' to disable 152 | 2020-08-22 16:12:56.666 INFO [restartedMain]o.s.b.devtools.env.DevToolsPropertyDefaultsPostProcessor.logTo:225 -For additional web related logging consider setting the 'logging.level.web' property to 'DEBUG' 153 | 2020-08-22 16:12:57.443 INFO [restartedMain]o.s.boot.web.embedded.tomcat.TomcatWebServer.initialize:108 -Tomcat initialized with port(s): 8080 (http) 154 | 2020-08-22 16:12:57.450 INFO [restartedMain]org.apache.coyote.http11.Http11NioProtocol.log:173 -Initializing ProtocolHandler ["http-nio-8080"] 155 | 2020-08-22 16:12:57.451 INFO [restartedMain]org.apache.catalina.core.StandardService.log:173 -Starting service [Tomcat] 156 | 2020-08-22 16:12:57.451 INFO [restartedMain]org.apache.catalina.core.StandardEngine.log:173 -Starting Servlet engine: [Apache Tomcat/9.0.37] 157 | 2020-08-22 16:12:57.526 INFO [restartedMain]o.a.catalina.core.ContainerBase.[Tomcat].[localhost].[/].log:173 -Initializing Spring embedded WebApplicationContext 158 | 2020-08-22 16:12:57.526 INFO [restartedMain]o.s.b.w.s.context.ServletWebServerApplicationContext.prepareWebApplicationContext:285 -Root WebApplicationContext: initialization completed in 860 ms 159 | 2020-08-22 16:12:58.680 INFO [restartedMain]o.s.scheduling.concurrent.ThreadPoolTaskExecutor.initialize:181 -Initializing ExecutorService 'applicationTaskExecutor' 160 | 2020-08-22 16:12:58.825 INFO [restartedMain]o.s.scheduling.concurrent.ThreadPoolTaskScheduler.initialize:181 -Initializing ExecutorService 'taskScheduler' 161 | 2020-08-22 16:12:58.851 INFO [restartedMain]o.s.boot.devtools.autoconfigure.OptionalLiveReloadServer.startServer:58 -LiveReload server is running on port 35729 162 | 2020-08-22 16:12:58.865 INFO [restartedMain]org.apache.coyote.http11.Http11NioProtocol.log:173 -Starting ProtocolHandler ["http-nio-8080"] 163 | 2020-08-22 16:12:58.881 INFO [restartedMain]o.s.boot.web.embedded.tomcat.TomcatWebServer.start:220 -Tomcat started on port(s): 8080 (http) with context path '' 164 | 2020-08-22 16:12:58.893 INFO [restartedMain]com.chengzzz.stepservice.StepserviceApplication.logStarted:61 -Started StepserviceApplication in 2.563 seconds (JVM running for 3.85) 165 | 2020-08-22 16:13:08.686 INFO [http-nio-8080-exec-1]o.a.catalina.core.ContainerBase.[Tomcat].[localhost].[/].log:173 -Initializing Spring DispatcherServlet 'dispatcherServlet' 166 | 2020-08-22 16:13:08.687 INFO [http-nio-8080-exec-1]org.springframework.web.servlet.DispatcherServlet.initServletBean:525 -Initializing Servlet 'dispatcherServlet' 167 | 2020-08-22 16:13:08.691 INFO [http-nio-8080-exec-1]org.springframework.web.servlet.DispatcherServlet.initServletBean:547 -Completed initialization in 4 ms 168 | 2020-08-22 16:13:08.777 INFO [http-nio-8080-exec-1]com.zaxxer.hikari.HikariDataSource.getConnection:110 -HikariPool-1 - Starting... 169 | 2020-08-22 16:13:08.865 INFO [http-nio-8080-exec-1]com.zaxxer.hikari.HikariDataSource.getConnection:123 -HikariPool-1 - Start completed. 170 | 2020-08-22 16:13:49.017 INFO [Thread-5]o.s.scheduling.concurrent.ThreadPoolTaskScheduler.shutdown:218 -Shutting down ExecutorService 'taskScheduler' 171 | 2020-08-22 16:13:49.018 INFO [Thread-5]o.s.scheduling.concurrent.ThreadPoolTaskExecutor.shutdown:218 -Shutting down ExecutorService 'applicationTaskExecutor' 172 | 2020-08-22 16:13:49.018 INFO [Thread-5]com.zaxxer.hikari.HikariDataSource.close:350 -HikariPool-1 - Shutdown initiated... 173 | 2020-08-22 16:13:49.026 INFO [Thread-5]com.zaxxer.hikari.HikariDataSource.close:352 -HikariPool-1 - Shutdown completed. 174 | 2020-08-22 16:17:47.969 INFO [restartedMain]com.chengzzz.stepservice.StepserviceApplication.logStarting:55 -Starting StepserviceApplication on DESKTOP-9S7FNJU with PID 6348 (G:\stepservice\target\classes started by Yet in G:\stepservice) 175 | 2020-08-22 16:17:47.972 INFO [restartedMain]com.chengzzz.stepservice.StepserviceApplication.logStartupProfileInfo:651 -No active profile set, falling back to default profiles: default 176 | 2020-08-22 16:17:48.017 INFO [restartedMain]o.s.b.devtools.env.DevToolsPropertyDefaultsPostProcessor.logTo:225 -Devtools property defaults active! Set 'spring.devtools.add-properties' to 'false' to disable 177 | 2020-08-22 16:17:48.017 INFO [restartedMain]o.s.b.devtools.env.DevToolsPropertyDefaultsPostProcessor.logTo:225 -For additional web related logging consider setting the 'logging.level.web' property to 'DEBUG' 178 | 2020-08-22 16:17:48.775 INFO [restartedMain]o.s.boot.web.embedded.tomcat.TomcatWebServer.initialize:108 -Tomcat initialized with port(s): 8080 (http) 179 | 2020-08-22 16:17:48.781 INFO [restartedMain]org.apache.coyote.http11.Http11NioProtocol.log:173 -Initializing ProtocolHandler ["http-nio-8080"] 180 | 2020-08-22 16:17:48.781 INFO [restartedMain]org.apache.catalina.core.StandardService.log:173 -Starting service [Tomcat] 181 | 2020-08-22 16:17:48.781 INFO [restartedMain]org.apache.catalina.core.StandardEngine.log:173 -Starting Servlet engine: [Apache Tomcat/9.0.37] 182 | 2020-08-22 16:17:48.858 INFO [restartedMain]o.a.catalina.core.ContainerBase.[Tomcat].[localhost].[/].log:173 -Initializing Spring embedded WebApplicationContext 183 | 2020-08-22 16:17:48.858 INFO [restartedMain]o.s.b.w.s.context.ServletWebServerApplicationContext.prepareWebApplicationContext:285 -Root WebApplicationContext: initialization completed in 841 ms 184 | 2020-08-22 16:17:50.073 INFO [restartedMain]o.s.scheduling.concurrent.ThreadPoolTaskExecutor.initialize:181 -Initializing ExecutorService 'applicationTaskExecutor' 185 | 2020-08-22 16:17:50.223 INFO [restartedMain]o.s.scheduling.concurrent.ThreadPoolTaskScheduler.initialize:181 -Initializing ExecutorService 'taskScheduler' 186 | 2020-08-22 16:17:50.250 INFO [restartedMain]o.s.boot.devtools.autoconfigure.OptionalLiveReloadServer.startServer:58 -LiveReload server is running on port 35729 187 | 2020-08-22 16:17:50.264 INFO [restartedMain]org.apache.coyote.http11.Http11NioProtocol.log:173 -Starting ProtocolHandler ["http-nio-8080"] 188 | 2020-08-22 16:17:50.281 INFO [restartedMain]o.s.boot.web.embedded.tomcat.TomcatWebServer.start:220 -Tomcat started on port(s): 8080 (http) with context path '' 189 | 2020-08-22 16:17:50.294 INFO [restartedMain]com.chengzzz.stepservice.StepserviceApplication.logStarted:61 -Started StepserviceApplication in 2.627 seconds (JVM running for 3.944) 190 | 2020-08-22 16:18:48.576 INFO [http-nio-8080-exec-1]o.a.catalina.core.ContainerBase.[Tomcat].[localhost].[/].log:173 -Initializing Spring DispatcherServlet 'dispatcherServlet' 191 | 2020-08-22 16:18:48.577 INFO [http-nio-8080-exec-1]org.springframework.web.servlet.DispatcherServlet.initServletBean:525 -Initializing Servlet 'dispatcherServlet' 192 | 2020-08-22 16:18:48.581 INFO [http-nio-8080-exec-1]org.springframework.web.servlet.DispatcherServlet.initServletBean:547 -Completed initialization in 4 ms 193 | 2020-08-22 16:18:48.661 INFO [http-nio-8080-exec-1]com.zaxxer.hikari.HikariDataSource.getConnection:110 -HikariPool-1 - Starting... 194 | 2020-08-22 16:18:48.749 INFO [http-nio-8080-exec-1]com.zaxxer.hikari.HikariDataSource.getConnection:123 -HikariPool-1 - Start completed. 195 | 2020-08-22 16:18:58.405 INFO [restartedMain]com.chengzzz.stepservice.StepserviceApplication.logStarting:55 -Starting StepserviceApplication on DESKTOP-9S7FNJU with PID 3868 (G:\stepservice\target\classes started by Yet in G:\stepservice) 196 | 2020-08-22 16:18:58.408 INFO [restartedMain]com.chengzzz.stepservice.StepserviceApplication.logStartupProfileInfo:651 -No active profile set, falling back to default profiles: default 197 | 2020-08-22 16:18:58.450 INFO [restartedMain]o.s.b.devtools.env.DevToolsPropertyDefaultsPostProcessor.logTo:225 -Devtools property defaults active! Set 'spring.devtools.add-properties' to 'false' to disable 198 | 2020-08-22 16:18:58.450 INFO [restartedMain]o.s.b.devtools.env.DevToolsPropertyDefaultsPostProcessor.logTo:225 -For additional web related logging consider setting the 'logging.level.web' property to 'DEBUG' 199 | 2020-08-22 16:18:59.213 INFO [restartedMain]o.s.boot.web.embedded.tomcat.TomcatWebServer.initialize:108 -Tomcat initialized with port(s): 8080 (http) 200 | 2020-08-22 16:18:59.219 INFO [restartedMain]org.apache.coyote.http11.Http11NioProtocol.log:173 -Initializing ProtocolHandler ["http-nio-8080"] 201 | 2020-08-22 16:18:59.219 INFO [restartedMain]org.apache.catalina.core.StandardService.log:173 -Starting service [Tomcat] 202 | 2020-08-22 16:18:59.220 INFO [restartedMain]org.apache.catalina.core.StandardEngine.log:173 -Starting Servlet engine: [Apache Tomcat/9.0.37] 203 | 2020-08-22 16:18:59.294 INFO [restartedMain]o.a.catalina.core.ContainerBase.[Tomcat].[localhost].[/].log:173 -Initializing Spring embedded WebApplicationContext 204 | 2020-08-22 16:18:59.294 INFO [restartedMain]o.s.b.w.s.context.ServletWebServerApplicationContext.prepareWebApplicationContext:285 -Root WebApplicationContext: initialization completed in 844 ms 205 | 2020-08-22 16:19:00.449 INFO [restartedMain]o.s.scheduling.concurrent.ThreadPoolTaskExecutor.initialize:181 -Initializing ExecutorService 'applicationTaskExecutor' 206 | 2020-08-22 16:19:00.596 INFO [restartedMain]o.s.scheduling.concurrent.ThreadPoolTaskScheduler.initialize:181 -Initializing ExecutorService 'taskScheduler' 207 | 2020-08-22 16:19:00.620 INFO [restartedMain]o.s.boot.devtools.autoconfigure.OptionalLiveReloadServer.startServer:58 -LiveReload server is running on port 35729 208 | 2020-08-22 16:19:00.634 INFO [restartedMain]org.apache.coyote.http11.Http11NioProtocol.log:173 -Starting ProtocolHandler ["http-nio-8080"] 209 | 2020-08-22 16:19:00.650 INFO [restartedMain]o.s.boot.web.embedded.tomcat.TomcatWebServer.start:220 -Tomcat started on port(s): 8080 (http) with context path '' 210 | 2020-08-22 16:19:00.662 INFO [restartedMain]com.chengzzz.stepservice.StepserviceApplication.logStarted:61 -Started StepserviceApplication in 2.537 seconds (JVM running for 3.853) 211 | 2020-08-22 16:19:07.862 INFO [http-nio-8080-exec-1]o.a.catalina.core.ContainerBase.[Tomcat].[localhost].[/].log:173 -Initializing Spring DispatcherServlet 'dispatcherServlet' 212 | 2020-08-22 16:19:07.863 INFO [http-nio-8080-exec-1]org.springframework.web.servlet.DispatcherServlet.initServletBean:525 -Initializing Servlet 'dispatcherServlet' 213 | 2020-08-22 16:19:07.867 INFO [http-nio-8080-exec-1]org.springframework.web.servlet.DispatcherServlet.initServletBean:547 -Completed initialization in 4 ms 214 | 2020-08-22 16:19:07.945 INFO [http-nio-8080-exec-1]com.zaxxer.hikari.HikariDataSource.getConnection:110 -HikariPool-1 - Starting... 215 | 2020-08-22 16:19:08.033 INFO [http-nio-8080-exec-1]com.zaxxer.hikari.HikariDataSource.getConnection:123 -HikariPool-1 - Start completed. 216 | 2020-08-22 16:19:08.550 INFO [OkHttp https://sports.lifesense.com/...]com.chengzzz.stepservice.service.impl.UpstepsServiceImpl.onResponse:239 -登录结果的响应: {"code":407,"msg":"密码错误"} 217 | 2020-08-22 16:19:08.553 INFO [OkHttp https://sports.lifesense.com/...]com.chengzzz.stepservice.service.impl.UpstepsServiceImpl.updateCallback:76 -Callback中的Msg{"code":407,"msg":"密码错误"} 218 | 2020-08-22 16:19:08.553 INFO [OkHttp https://sports.lifesense.com/...]com.chengzzz.stepservice.controller.ViewController.updateResult:57 -控制器返回的msg{"code":407,"msg":"密码错误"} 219 | 2020-08-22 16:20:47.892 INFO [restartedMain]com.chengzzz.stepservice.StepserviceApplication.logStarting:55 -Starting StepserviceApplication on DESKTOP-9S7FNJU with PID 13580 (G:\stepservice\target\classes started by Yet in G:\stepservice) 220 | 2020-08-22 16:20:47.895 INFO [restartedMain]com.chengzzz.stepservice.StepserviceApplication.logStartupProfileInfo:651 -No active profile set, falling back to default profiles: default 221 | 2020-08-22 16:20:47.939 INFO [restartedMain]o.s.b.devtools.env.DevToolsPropertyDefaultsPostProcessor.logTo:225 -Devtools property defaults active! Set 'spring.devtools.add-properties' to 'false' to disable 222 | 2020-08-22 16:20:47.939 INFO [restartedMain]o.s.b.devtools.env.DevToolsPropertyDefaultsPostProcessor.logTo:225 -For additional web related logging consider setting the 'logging.level.web' property to 'DEBUG' 223 | 2020-08-22 16:20:48.755 INFO [restartedMain]o.s.boot.web.embedded.tomcat.TomcatWebServer.initialize:108 -Tomcat initialized with port(s): 8080 (http) 224 | 2020-08-22 16:20:48.762 INFO [restartedMain]org.apache.coyote.http11.Http11NioProtocol.log:173 -Initializing ProtocolHandler ["http-nio-8080"] 225 | 2020-08-22 16:20:48.762 INFO [restartedMain]org.apache.catalina.core.StandardService.log:173 -Starting service [Tomcat] 226 | 2020-08-22 16:20:48.763 INFO [restartedMain]org.apache.catalina.core.StandardEngine.log:173 -Starting Servlet engine: [Apache Tomcat/9.0.37] 227 | 2020-08-22 16:20:48.845 INFO [restartedMain]o.a.catalina.core.ContainerBase.[Tomcat].[localhost].[/].log:173 -Initializing Spring embedded WebApplicationContext 228 | 2020-08-22 16:20:48.846 INFO [restartedMain]o.s.b.w.s.context.ServletWebServerApplicationContext.prepareWebApplicationContext:285 -Root WebApplicationContext: initialization completed in 907 ms 229 | 2020-08-22 16:20:50.251 INFO [restartedMain]o.s.scheduling.concurrent.ThreadPoolTaskExecutor.initialize:181 -Initializing ExecutorService 'applicationTaskExecutor' 230 | 2020-08-22 16:20:50.437 INFO [restartedMain]o.s.scheduling.concurrent.ThreadPoolTaskScheduler.initialize:181 -Initializing ExecutorService 'taskScheduler' 231 | 2020-08-22 16:20:50.464 INFO [restartedMain]o.s.boot.devtools.autoconfigure.OptionalLiveReloadServer.startServer:58 -LiveReload server is running on port 35729 232 | 2020-08-22 16:20:50.480 INFO [restartedMain]org.apache.coyote.http11.Http11NioProtocol.log:173 -Starting ProtocolHandler ["http-nio-8080"] 233 | 2020-08-22 16:20:50.499 INFO [restartedMain]o.s.boot.web.embedded.tomcat.TomcatWebServer.start:220 -Tomcat started on port(s): 8080 (http) with context path '' 234 | 2020-08-22 16:20:50.512 INFO [restartedMain]com.chengzzz.stepservice.StepserviceApplication.logStarted:61 -Started StepserviceApplication in 2.917 seconds (JVM running for 4.237) 235 | 2020-08-22 16:20:52.778 INFO [http-nio-8080-exec-1]o.a.catalina.core.ContainerBase.[Tomcat].[localhost].[/].log:173 -Initializing Spring DispatcherServlet 'dispatcherServlet' 236 | 2020-08-22 16:20:52.779 INFO [http-nio-8080-exec-1]org.springframework.web.servlet.DispatcherServlet.initServletBean:525 -Initializing Servlet 'dispatcherServlet' 237 | 2020-08-22 16:20:52.783 INFO [http-nio-8080-exec-1]org.springframework.web.servlet.DispatcherServlet.initServletBean:547 -Completed initialization in 4 ms 238 | 2020-08-22 16:22:05.372 INFO [restartedMain]com.chengzzz.stepservice.StepserviceApplication.logStarting:55 -Starting StepserviceApplication on DESKTOP-9S7FNJU with PID 15456 (G:\stepservice\target\classes started by Yet in G:\stepservice) 239 | 2020-08-22 16:22:05.375 INFO [restartedMain]com.chengzzz.stepservice.StepserviceApplication.logStartupProfileInfo:651 -No active profile set, falling back to default profiles: default 240 | 2020-08-22 16:22:05.422 INFO [restartedMain]o.s.b.devtools.env.DevToolsPropertyDefaultsPostProcessor.logTo:225 -Devtools property defaults active! Set 'spring.devtools.add-properties' to 'false' to disable 241 | 2020-08-22 16:22:05.422 INFO [restartedMain]o.s.b.devtools.env.DevToolsPropertyDefaultsPostProcessor.logTo:225 -For additional web related logging consider setting the 'logging.level.web' property to 'DEBUG' 242 | 2020-08-22 16:22:06.188 INFO [restartedMain]o.s.boot.web.embedded.tomcat.TomcatWebServer.initialize:108 -Tomcat initialized with port(s): 8080 (http) 243 | 2020-08-22 16:22:06.194 INFO [restartedMain]org.apache.coyote.http11.Http11NioProtocol.log:173 -Initializing ProtocolHandler ["http-nio-8080"] 244 | 2020-08-22 16:22:06.194 INFO [restartedMain]org.apache.catalina.core.StandardService.log:173 -Starting service [Tomcat] 245 | 2020-08-22 16:22:06.194 INFO [restartedMain]org.apache.catalina.core.StandardEngine.log:173 -Starting Servlet engine: [Apache Tomcat/9.0.37] 246 | 2020-08-22 16:22:06.269 INFO [restartedMain]o.a.catalina.core.ContainerBase.[Tomcat].[localhost].[/].log:173 -Initializing Spring embedded WebApplicationContext 247 | 2020-08-22 16:22:06.269 INFO [restartedMain]o.s.b.w.s.context.ServletWebServerApplicationContext.prepareWebApplicationContext:285 -Root WebApplicationContext: initialization completed in 847 ms 248 | 2020-08-22 16:22:07.433 INFO [restartedMain]o.s.scheduling.concurrent.ThreadPoolTaskExecutor.initialize:181 -Initializing ExecutorService 'applicationTaskExecutor' 249 | 2020-08-22 16:22:07.583 INFO [restartedMain]o.s.scheduling.concurrent.ThreadPoolTaskScheduler.initialize:181 -Initializing ExecutorService 'taskScheduler' 250 | 2020-08-22 16:22:07.608 INFO [restartedMain]o.s.boot.devtools.autoconfigure.OptionalLiveReloadServer.startServer:58 -LiveReload server is running on port 35729 251 | 2020-08-22 16:22:07.623 INFO [restartedMain]org.apache.coyote.http11.Http11NioProtocol.log:173 -Starting ProtocolHandler ["http-nio-8080"] 252 | 2020-08-22 16:22:07.643 INFO [restartedMain]o.s.boot.web.embedded.tomcat.TomcatWebServer.start:220 -Tomcat started on port(s): 8080 (http) with context path '' 253 | 2020-08-22 16:22:07.657 INFO [restartedMain]com.chengzzz.stepservice.StepserviceApplication.logStarted:61 -Started StepserviceApplication in 2.587 seconds (JVM running for 3.883) 254 | 2020-08-22 16:22:11.667 INFO [http-nio-8080-exec-1]o.a.catalina.core.ContainerBase.[Tomcat].[localhost].[/].log:173 -Initializing Spring DispatcherServlet 'dispatcherServlet' 255 | 2020-08-22 16:22:11.668 INFO [http-nio-8080-exec-1]org.springframework.web.servlet.DispatcherServlet.initServletBean:525 -Initializing Servlet 'dispatcherServlet' 256 | 2020-08-22 16:22:11.672 INFO [http-nio-8080-exec-1]org.springframework.web.servlet.DispatcherServlet.initServletBean:547 -Completed initialization in 4 ms 257 | 2020-08-22 16:22:26.508 INFO [http-nio-8080-exec-4]com.zaxxer.hikari.HikariDataSource.getConnection:110 -HikariPool-1 - Starting... 258 | 2020-08-22 16:22:26.596 INFO [http-nio-8080-exec-4]com.zaxxer.hikari.HikariDataSource.getConnection:123 -HikariPool-1 - Start completed. 259 | 2020-08-22 16:22:27.124 INFO [OkHttp https://sports.lifesense.com/...]com.chengzzz.stepservice.service.impl.UpstepsServiceImpl.onResponse:239 -登录结果的响应: {"code":200,"msg":"成功","data":{"exist":false,"hasMobile":false,"userId":"26993431","accessToken":"D2A6AFB93531605DBE56DC2EEE74C4C920C12BEB70905E231679F9C8BAE8F59D9570FDDA78A75FBDF3C6E9C8E1D724BB84D680707D0881CC75EF7760B82CD6D58FA0A46011ACA6016D250C10EC3C87E921D6F013B563987AF01A43785EA391F5.A003ADDB1381937B98D5CD48BFC7919C2C3F69DCD9DDC94E767BE2C6F589AD31","expireAt":1600676547816,"userType":99,"needInfo":false}} 260 | 2020-08-22 16:22:27.127 INFO [OkHttp https://sports.lifesense.com/...]com.chengzzz.stepservice.service.impl.UpstepsServiceImpl.updateCallback:76 -Callback中的MsgaccessToken=D2A6AFB93531605DBE56DC2EEE74C4C920C12BEB70905E231679F9C8BAE8F59D9570FDDA78A75FBDF3C6E9C8E1D724BB84D680707D0881CC75EF7760B82CD6D58FA0A46011ACA6016D250C10EC3C87E921D6F013B563987AF01A43785EA391F5.A003ADDB1381937B98D5CD48BFC7919C2C3F69DCD9DDC94E767BE2C6F589AD31; Domain=.lifesense.com; Expires=Mon, 21-Sep-2020 08:22:27 GMT; Path=/ 261 | 2020-08-22 16:22:27.128 INFO [OkHttp https://sports.lifesense.com/...]com.chengzzz.stepservice.controller.ViewController.updateResult:57 -控制器返回的msgaccessToken=D2A6AFB93531605DBE56DC2EEE74C4C920C12BEB70905E231679F9C8BAE8F59D9570FDDA78A75FBDF3C6E9C8E1D724BB84D680707D0881CC75EF7760B82CD6D58FA0A46011ACA6016D250C10EC3C87E921D6F013B563987AF01A43785EA391F5.A003ADDB1381937B98D5CD48BFC7919C2C3F69DCD9DDC94E767BE2C6F589AD31; Domain=.lifesense.com; Expires=Mon, 21-Sep-2020 08:22:27 GMT; Path=/ 262 | 2020-08-22 16:22:27.133 INFO [OkHttp https://sports.lifesense.com/...]com.chengzzz.stepservice.service.impl.UpstepsServiceImpl.postAsynModifyStepsHttp:144 -这是修改的测试时间: 2020-08-22 16:22:27 263 | 2020-08-22 16:22:27.133 INFO [OkHttp https://sports.lifesense.com/...]com.chengzzz.stepservice.service.impl.UpstepsServiceImpl.postAsynModifyStepsHttp:145 -这是修改的测试时间戳: 1598084547133 264 | 2020-08-22 16:22:27.134 INFO [OkHttp https://sports.lifesense.com/...]com.chengzzz.stepservice.service.impl.UpstepsServiceImpl.postAsynModifyStepsHttp:146 -这是修改的距离: 2220 265 | 2020-08-22 16:22:27.402 INFO [OkHttp https://sports.lifesense.com/...]com.chengzzz.stepservice.service.impl.UpstepsServiceImpl.onResponse:184 -提交更改步数后的响应 onResponse: {"code":200,"msg":"成功","data":{"pedometerRecordHourlyList":[{"id":"08be237515884a4bbca0638bc8780973","userId":26993431,"deviceId":"M_NULL","measurementTime":"2020-08-22 00:00:00","step":"9950,9950,0,0,0,0,0,0,0,0,0,0,4550,5650,0,0,6660,0,0,0,0,0,0,0","calories":"2487.00,2487.00,0,0,0,0,0,0,0,0,0,0,1137.00,1412.00,0,0,1665.00,0,0,0,0,0,0,0","distance":"3316.00,3316.00,0,0,0,0,0,0,0,0,0,0,1516.00,1883.00,0,0,2220.00,0,0,0,0,0,0,0","dataSource":2,"created":"2020-08-22 00:17:42","active":0,"updated":1598084548077}]}} 266 | 2020-08-22 16:22:27.404 INFO [OkHttp https://sports.lifesense.com/...]com.chengzzz.stepservice.service.impl.UpstepsServiceImpl.updateCallback:76 -Callback中的Msg{"code":200,"msg":"成功","data":{"pedometerRecordHourlyList":[{"id":"08be237515884a4bbca0638bc8780973","userId":26993431,"deviceId":"M_NULL","measurementTime":"2020-08-22 00:00:00","step":"9950,9950,0,0,0,0,0,0,0,0,0,0,4550,5650,0,0,6660,0,0,0,0,0,0,0","calories":"2487.00,2487.00,0,0,0,0,0,0,0,0,0,0,1137.00,1412.00,0,0,1665.00,0,0,0,0,0,0,0","distance":"3316.00,3316.00,0,0,0,0,0,0,0,0,0,0,1516.00,1883.00,0,0,2220.00,0,0,0,0,0,0,0","dataSource":2,"created":"2020-08-22 00:17:42","active":0,"updated":1598084548077}]}} 267 | 2020-08-22 16:22:27.404 INFO [OkHttp https://sports.lifesense.com/...]com.chengzzz.stepservice.controller.ViewController.updateResult:57 -控制器返回的msg{"code":200,"msg":"成功","data":{"pedometerRecordHourlyList":[{"id":"08be237515884a4bbca0638bc8780973","userId":26993431,"deviceId":"M_NULL","measurementTime":"2020-08-22 00:00:00","step":"9950,9950,0,0,0,0,0,0,0,0,0,0,4550,5650,0,0,6660,0,0,0,0,0,0,0","calories":"2487.00,2487.00,0,0,0,0,0,0,0,0,0,0,1137.00,1412.00,0,0,1665.00,0,0,0,0,0,0,0","distance":"3316.00,3316.00,0,0,0,0,0,0,0,0,0,0,1516.00,1883.00,0,0,2220.00,0,0,0,0,0,0,0","dataSource":2,"created":"2020-08-22 00:17:42","active":0,"updated":1598084548077}]}} 268 | 2020-08-22 16:23:38.103 INFO [Thread-5]o.s.scheduling.concurrent.ThreadPoolTaskScheduler.shutdown:218 -Shutting down ExecutorService 'taskScheduler' 269 | 2020-08-22 16:23:38.105 INFO [Thread-5]o.s.scheduling.concurrent.ThreadPoolTaskExecutor.shutdown:218 -Shutting down ExecutorService 'applicationTaskExecutor' 270 | 2020-08-22 16:23:38.105 INFO [Thread-5]com.zaxxer.hikari.HikariDataSource.close:350 -HikariPool-1 - Shutdown initiated... 271 | 2020-08-22 16:23:38.114 INFO [Thread-5]com.zaxxer.hikari.HikariDataSource.close:352 -HikariPool-1 - Shutdown completed. 272 | 2020-08-22 16:23:38.218 INFO [restartedMain]com.chengzzz.stepservice.StepserviceApplication.logStarting:55 -Starting StepserviceApplication on DESKTOP-9S7FNJU with PID 15456 (G:\stepservice\target\classes started by Yet in G:\stepservice) 273 | 2020-08-22 16:23:38.219 INFO [restartedMain]com.chengzzz.stepservice.StepserviceApplication.logStartupProfileInfo:651 -No active profile set, falling back to default profiles: default 274 | 2020-08-22 16:23:38.500 INFO [restartedMain]o.s.boot.web.embedded.tomcat.TomcatWebServer.initialize:108 -Tomcat initialized with port(s): 8080 (http) 275 | 2020-08-22 16:23:38.501 INFO [restartedMain]org.apache.coyote.http11.Http11NioProtocol.log:173 -Initializing ProtocolHandler ["http-nio-8080"] 276 | 2020-08-22 16:23:38.501 INFO [restartedMain]org.apache.catalina.core.StandardService.log:173 -Starting service [Tomcat] 277 | 2020-08-22 16:23:38.501 INFO [restartedMain]org.apache.catalina.core.StandardEngine.log:173 -Starting Servlet engine: [Apache Tomcat/9.0.37] 278 | 2020-08-22 16:23:38.534 INFO [restartedMain]o.a.catalina.core.ContainerBase.[Tomcat].[localhost].[/].log:173 -Initializing Spring embedded WebApplicationContext 279 | 2020-08-22 16:23:38.534 INFO [restartedMain]o.s.b.w.s.context.ServletWebServerApplicationContext.prepareWebApplicationContext:285 -Root WebApplicationContext: initialization completed in 312 ms 280 | 2020-08-22 16:23:39.130 INFO [restartedMain]o.s.scheduling.concurrent.ThreadPoolTaskExecutor.initialize:181 -Initializing ExecutorService 'applicationTaskExecutor' 281 | 2020-08-22 16:23:39.197 INFO [restartedMain]o.s.scheduling.concurrent.ThreadPoolTaskScheduler.initialize:181 -Initializing ExecutorService 'taskScheduler' 282 | 2020-08-22 16:23:39.215 INFO [restartedMain]o.s.boot.devtools.autoconfigure.OptionalLiveReloadServer.startServer:58 -LiveReload server is running on port 35729 283 | 2020-08-22 16:23:39.228 INFO [restartedMain]org.apache.coyote.http11.Http11NioProtocol.log:173 -Starting ProtocolHandler ["http-nio-8080"] 284 | 2020-08-22 16:23:39.231 INFO [restartedMain]o.s.boot.web.embedded.tomcat.TomcatWebServer.start:220 -Tomcat started on port(s): 8080 (http) with context path '' 285 | 2020-08-22 16:23:39.236 INFO [restartedMain]com.chengzzz.stepservice.StepserviceApplication.logStarted:61 -Started StepserviceApplication in 1.073 seconds (JVM running for 95.462) 286 | 2020-08-22 16:23:39.237 INFO [restartedMain]o.s.b.d.a.ConditionEvaluationDeltaLoggingListener.onApplicationEvent:63 -Condition evaluation unchanged 287 | 2020-08-22 16:23:49.217 INFO [Thread-8]o.s.scheduling.concurrent.ThreadPoolTaskScheduler.shutdown:218 -Shutting down ExecutorService 'taskScheduler' 288 | 2020-08-22 16:23:49.219 INFO [Thread-8]o.s.scheduling.concurrent.ThreadPoolTaskExecutor.shutdown:218 -Shutting down ExecutorService 'applicationTaskExecutor' 289 | 2020-08-22 16:23:49.293 INFO [restartedMain]com.chengzzz.stepservice.StepserviceApplication.logStarting:55 -Starting StepserviceApplication on DESKTOP-9S7FNJU with PID 15456 (G:\stepservice\target\classes started by Yet in G:\stepservice) 290 | 2020-08-22 16:23:49.293 INFO [restartedMain]com.chengzzz.stepservice.StepserviceApplication.logStartupProfileInfo:651 -No active profile set, falling back to default profiles: default 291 | 2020-08-22 16:23:49.471 INFO [restartedMain]o.s.boot.web.embedded.tomcat.TomcatWebServer.initialize:108 -Tomcat initialized with port(s): 8080 (http) 292 | 2020-08-22 16:23:49.471 INFO [restartedMain]org.apache.coyote.http11.Http11NioProtocol.log:173 -Initializing ProtocolHandler ["http-nio-8080"] 293 | 2020-08-22 16:23:49.472 INFO [restartedMain]org.apache.catalina.core.StandardService.log:173 -Starting service [Tomcat] 294 | 2020-08-22 16:23:49.472 INFO [restartedMain]org.apache.catalina.core.StandardEngine.log:173 -Starting Servlet engine: [Apache Tomcat/9.0.37] 295 | 2020-08-22 16:23:49.502 INFO [restartedMain]o.a.catalina.core.ContainerBase.[Tomcat].[localhost].[/].log:173 -Initializing Spring embedded WebApplicationContext 296 | 2020-08-22 16:23:49.502 INFO [restartedMain]o.s.b.w.s.context.ServletWebServerApplicationContext.prepareWebApplicationContext:285 -Root WebApplicationContext: initialization completed in 206 ms 297 | 2020-08-22 16:23:50.046 INFO [restartedMain]o.s.scheduling.concurrent.ThreadPoolTaskExecutor.initialize:181 -Initializing ExecutorService 'applicationTaskExecutor' 298 | 2020-08-22 16:23:50.092 INFO [restartedMain]o.s.scheduling.concurrent.ThreadPoolTaskScheduler.initialize:181 -Initializing ExecutorService 'taskScheduler' 299 | 2020-08-22 16:23:50.105 INFO [restartedMain]o.s.boot.devtools.autoconfigure.OptionalLiveReloadServer.startServer:58 -LiveReload server is running on port 35729 300 | 2020-08-22 16:23:50.112 INFO [restartedMain]org.apache.coyote.http11.Http11NioProtocol.log:173 -Starting ProtocolHandler ["http-nio-8080"] 301 | 2020-08-22 16:23:50.114 INFO [restartedMain]o.s.boot.web.embedded.tomcat.TomcatWebServer.start:220 -Tomcat started on port(s): 8080 (http) with context path '' 302 | 2020-08-22 16:23:50.118 INFO [restartedMain]com.chengzzz.stepservice.StepserviceApplication.logStarted:61 -Started StepserviceApplication in 0.863 seconds (JVM running for 106.344) 303 | 2020-08-22 16:23:50.119 INFO [restartedMain]o.s.b.d.a.ConditionEvaluationDeltaLoggingListener.onApplicationEvent:63 -Condition evaluation unchanged 304 | 2020-08-22 16:31:08.000 INFO [http-nio-8080-exec-1]o.a.catalina.core.ContainerBase.[Tomcat].[localhost].[/].log:173 -Initializing Spring DispatcherServlet 'dispatcherServlet' 305 | 2020-08-22 16:31:08.000 INFO [http-nio-8080-exec-1]org.springframework.web.servlet.DispatcherServlet.initServletBean:525 -Initializing Servlet 'dispatcherServlet' 306 | 2020-08-22 16:31:08.002 INFO [http-nio-8080-exec-1]org.springframework.web.servlet.DispatcherServlet.initServletBean:547 -Completed initialization in 1 ms 307 | 2020-08-22 16:31:16.103 INFO [http-nio-8080-exec-2]com.zaxxer.hikari.HikariDataSource.getConnection:110 -HikariPool-2 - Starting... 308 | 2020-08-22 16:31:33.239 INFO [http-nio-8080-exec-4]com.zaxxer.hikari.HikariDataSource.getConnection:110 -HikariPool-2 - Starting... 309 | -------------------------------------------------------------------------------- /logs/archive/blog-warn-2020-08-22.0.log: -------------------------------------------------------------------------------- 1 | 2020-08-22 14:36:26.702 WARN [restartedMain]o.s.b.a.t.ThymeleafAutoConfiguration$DefaultTemplateResolverConfiguration.checkTemplateLocationExists:106 -Cannot find template location: classpath:/templates/ (please add some templates or check your Thymeleaf configuration) 2 | 2020-08-22 14:39:38.673 WARN [restartedMain]o.s.b.a.t.ThymeleafAutoConfiguration$DefaultTemplateResolverConfiguration.checkTemplateLocationExists:106 -Cannot find template location: classpath:/templates/ (please add some templates or check your Thymeleaf configuration) 3 | 2020-08-22 14:42:31.051 WARN [restartedMain]o.s.b.a.t.ThymeleafAutoConfiguration$DefaultTemplateResolverConfiguration.checkTemplateLocationExists:106 -Cannot find template location: classpath:/templates/ (please add some templates or check your Thymeleaf configuration) 4 | 2020-08-22 16:07:34.788 WARN [restartedMain]o.s.b.a.t.ThymeleafAutoConfiguration$DefaultTemplateResolverConfiguration.checkTemplateLocationExists:106 -Cannot find template location: classpath:/templates/ (please add some templates or check your Thymeleaf configuration) 5 | 2020-08-22 16:07:44.835 WARN [restartedMain]o.s.b.a.t.ThymeleafAutoConfiguration$DefaultTemplateResolverConfiguration.checkTemplateLocationExists:106 -Cannot find template location: classpath:/templates/ (please add some templates or check your Thymeleaf configuration) 6 | 2020-08-22 16:08:25.190 WARN [restartedMain]o.s.b.a.t.ThymeleafAutoConfiguration$DefaultTemplateResolverConfiguration.checkTemplateLocationExists:106 -Cannot find template location: classpath:/templates/ (please add some templates or check your Thymeleaf configuration) 7 | 2020-08-22 16:09:35.865 WARN [restartedMain]o.s.b.a.t.ThymeleafAutoConfiguration$DefaultTemplateResolverConfiguration.checkTemplateLocationExists:106 -Cannot find template location: classpath:/templates/ (please add some templates or check your Thymeleaf configuration) 8 | 2020-08-22 16:12:58.760 WARN [restartedMain]o.s.b.a.t.ThymeleafAutoConfiguration$DefaultTemplateResolverConfiguration.checkTemplateLocationExists:106 -Cannot find template location: classpath:/templates/ (please add some templates or check your Thymeleaf configuration) 9 | 2020-08-22 16:17:50.157 WARN [restartedMain]o.s.b.a.t.ThymeleafAutoConfiguration$DefaultTemplateResolverConfiguration.checkTemplateLocationExists:106 -Cannot find template location: classpath:/templates/ (please add some templates or check your Thymeleaf configuration) 10 | 2020-08-22 16:19:00.531 WARN [restartedMain]o.s.b.a.t.ThymeleafAutoConfiguration$DefaultTemplateResolverConfiguration.checkTemplateLocationExists:106 -Cannot find template location: classpath:/templates/ (please add some templates or check your Thymeleaf configuration) 11 | 2020-08-22 16:20:50.355 WARN [restartedMain]o.s.b.a.t.ThymeleafAutoConfiguration$DefaultTemplateResolverConfiguration.checkTemplateLocationExists:106 -Cannot find template location: classpath:/templates/ (please add some templates or check your Thymeleaf configuration) 12 | 2020-08-22 16:22:07.517 WARN [restartedMain]o.s.b.a.t.ThymeleafAutoConfiguration$DefaultTemplateResolverConfiguration.checkTemplateLocationExists:106 -Cannot find template location: classpath:/templates/ (please add some templates or check your Thymeleaf configuration) 13 | 2020-08-22 16:23:39.172 WARN [restartedMain]o.s.b.a.t.ThymeleafAutoConfiguration$DefaultTemplateResolverConfiguration.checkTemplateLocationExists:106 -Cannot find template location: classpath:/templates/ (please add some templates or check your Thymeleaf configuration) 14 | 2020-08-22 16:23:50.072 WARN [restartedMain]o.s.b.a.t.ThymeleafAutoConfiguration$DefaultTemplateResolverConfiguration.checkTemplateLocationExists:106 -Cannot find template location: classpath:/templates/ (please add some templates or check your Thymeleaf configuration) 15 | -------------------------------------------------------------------------------- /logs/blog-all.log: -------------------------------------------------------------------------------- 1 | 2020-08-23 12:13:43.195 INFO [restartedMain]com.chengzzz.stepservice.StepserviceApplication.logStarting:55 -Starting StepserviceApplication on DESKTOP-9S7FNJU with PID 9844 (G:\stepservice\target\classes started by Yet in G:\stepservice) 2 | 2020-08-23 12:13:43.211 INFO [restartedMain]com.chengzzz.stepservice.StepserviceApplication.logStartupProfileInfo:651 -No active profile set, falling back to default profiles: default 3 | 2020-08-23 12:13:43.255 INFO [restartedMain]o.s.b.devtools.env.DevToolsPropertyDefaultsPostProcessor.logTo:225 -Devtools property defaults active! Set 'spring.devtools.add-properties' to 'false' to disable 4 | 2020-08-23 12:13:43.256 INFO [restartedMain]o.s.b.devtools.env.DevToolsPropertyDefaultsPostProcessor.logTo:225 -For additional web related logging consider setting the 'logging.level.web' property to 'DEBUG' 5 | 2020-08-23 12:13:44.595 INFO [restartedMain]o.s.boot.web.embedded.tomcat.TomcatWebServer.initialize:108 -Tomcat initialized with port(s): 8080 (http) 6 | 2020-08-23 12:13:44.602 INFO [restartedMain]org.apache.coyote.http11.Http11NioProtocol.log:173 -Initializing ProtocolHandler ["http-nio-8080"] 7 | 2020-08-23 12:13:44.603 INFO [restartedMain]org.apache.catalina.core.StandardService.log:173 -Starting service [Tomcat] 8 | 2020-08-23 12:13:44.603 INFO [restartedMain]org.apache.catalina.core.StandardEngine.log:173 -Starting Servlet engine: [Apache Tomcat/9.0.37] 9 | 2020-08-23 12:13:44.681 INFO [restartedMain]o.a.catalina.core.ContainerBase.[Tomcat].[localhost].[/].log:173 -Initializing Spring embedded WebApplicationContext 10 | 2020-08-23 12:13:44.681 INFO [restartedMain]o.s.b.w.s.context.ServletWebServerApplicationContext.prepareWebApplicationContext:285 -Root WebApplicationContext: initialization completed in 1424 ms 11 | 2020-08-23 12:13:46.224 INFO [restartedMain]o.s.scheduling.concurrent.ThreadPoolTaskExecutor.initialize:181 -Initializing ExecutorService 'applicationTaskExecutor' 12 | 2020-08-23 12:13:46.308 WARN [restartedMain]o.s.b.a.t.ThymeleafAutoConfiguration$DefaultTemplateResolverConfiguration.checkTemplateLocationExists:106 -Cannot find template location: classpath:/templates/ (please add some templates or check your Thymeleaf configuration) 13 | 2020-08-23 12:13:46.428 INFO [restartedMain]o.s.scheduling.concurrent.ThreadPoolTaskScheduler.initialize:181 -Initializing ExecutorService 'taskScheduler' 14 | 2020-08-23 12:13:46.452 INFO [restartedMain]o.s.boot.devtools.autoconfigure.OptionalLiveReloadServer.startServer:58 -LiveReload server is running on port 35729 15 | 2020-08-23 12:13:46.465 INFO [restartedMain]org.apache.coyote.http11.Http11NioProtocol.log:173 -Starting ProtocolHandler ["http-nio-8080"] 16 | 2020-08-23 12:13:46.482 INFO [restartedMain]o.s.boot.web.embedded.tomcat.TomcatWebServer.start:220 -Tomcat started on port(s): 8080 (http) with context path '' 17 | 2020-08-23 12:13:46.494 INFO [restartedMain]com.chengzzz.stepservice.StepserviceApplication.logStarted:61 -Started StepserviceApplication in 3.626 seconds (JVM running for 6.911) 18 | 2020-08-23 12:15:44.366 INFO [restartedMain]com.chengzzz.stepservice.StepserviceApplication.logStarting:55 -Starting StepserviceApplication on DESKTOP-9S7FNJU with PID 2928 (G:\stepservice\target\classes started by Yet in G:\stepservice) 19 | 2020-08-23 12:15:44.369 INFO [restartedMain]com.chengzzz.stepservice.StepserviceApplication.logStartupProfileInfo:651 -No active profile set, falling back to default profiles: default 20 | 2020-08-23 12:15:44.411 INFO [restartedMain]o.s.b.devtools.env.DevToolsPropertyDefaultsPostProcessor.logTo:225 -Devtools property defaults active! Set 'spring.devtools.add-properties' to 'false' to disable 21 | 2020-08-23 12:15:44.411 INFO [restartedMain]o.s.b.devtools.env.DevToolsPropertyDefaultsPostProcessor.logTo:225 -For additional web related logging consider setting the 'logging.level.web' property to 'DEBUG' 22 | 2020-08-23 12:15:45.141 INFO [restartedMain]o.s.boot.web.embedded.tomcat.TomcatWebServer.initialize:108 -Tomcat initialized with port(s): 8080 (http) 23 | 2020-08-23 12:15:45.147 INFO [restartedMain]org.apache.coyote.http11.Http11NioProtocol.log:173 -Initializing ProtocolHandler ["http-nio-8080"] 24 | 2020-08-23 12:15:45.147 INFO [restartedMain]org.apache.catalina.core.StandardService.log:173 -Starting service [Tomcat] 25 | 2020-08-23 12:15:45.147 INFO [restartedMain]org.apache.catalina.core.StandardEngine.log:173 -Starting Servlet engine: [Apache Tomcat/9.0.37] 26 | 2020-08-23 12:15:45.221 INFO [restartedMain]o.a.catalina.core.ContainerBase.[Tomcat].[localhost].[/].log:173 -Initializing Spring embedded WebApplicationContext 27 | 2020-08-23 12:15:45.221 INFO [restartedMain]o.s.b.w.s.context.ServletWebServerApplicationContext.prepareWebApplicationContext:285 -Root WebApplicationContext: initialization completed in 810 ms 28 | 2020-08-23 12:15:46.352 INFO [restartedMain]o.s.scheduling.concurrent.ThreadPoolTaskExecutor.initialize:181 -Initializing ExecutorService 'applicationTaskExecutor' 29 | 2020-08-23 12:15:46.432 WARN [restartedMain]o.s.b.a.t.ThymeleafAutoConfiguration$DefaultTemplateResolverConfiguration.checkTemplateLocationExists:106 -Cannot find template location: classpath:/templates/ (please add some templates or check your Thymeleaf configuration) 30 | 2020-08-23 12:15:46.495 INFO [restartedMain]o.s.scheduling.concurrent.ThreadPoolTaskScheduler.initialize:181 -Initializing ExecutorService 'taskScheduler' 31 | 2020-08-23 12:15:46.519 INFO [restartedMain]o.s.boot.devtools.autoconfigure.OptionalLiveReloadServer.startServer:58 -LiveReload server is running on port 35729 32 | 2020-08-23 12:15:46.533 INFO [restartedMain]org.apache.coyote.http11.Http11NioProtocol.log:173 -Starting ProtocolHandler ["http-nio-8080"] 33 | 2020-08-23 12:15:46.549 INFO [restartedMain]o.s.boot.web.embedded.tomcat.TomcatWebServer.start:220 -Tomcat started on port(s): 8080 (http) with context path '' 34 | 2020-08-23 12:15:46.561 INFO [restartedMain]com.chengzzz.stepservice.StepserviceApplication.logStarted:61 -Started StepserviceApplication in 2.483 seconds (JVM running for 3.662) 35 | 2020-08-23 12:16:08.530 INFO [restartedMain]com.chengzzz.stepservice.StepserviceApplication.logStarting:55 -Starting StepserviceApplication on DESKTOP-9S7FNJU with PID 12528 (G:\stepservice\target\classes started by Yet in G:\stepservice) 36 | 2020-08-23 12:16:08.532 INFO [restartedMain]com.chengzzz.stepservice.StepserviceApplication.logStartupProfileInfo:651 -No active profile set, falling back to default profiles: default 37 | 2020-08-23 12:16:08.571 INFO [restartedMain]o.s.b.devtools.env.DevToolsPropertyDefaultsPostProcessor.logTo:225 -Devtools property defaults active! Set 'spring.devtools.add-properties' to 'false' to disable 38 | 2020-08-23 12:16:08.571 INFO [restartedMain]o.s.b.devtools.env.DevToolsPropertyDefaultsPostProcessor.logTo:225 -For additional web related logging consider setting the 'logging.level.web' property to 'DEBUG' 39 | 2020-08-23 12:16:09.346 INFO [restartedMain]o.s.boot.web.embedded.tomcat.TomcatWebServer.initialize:108 -Tomcat initialized with port(s): 8080 (http) 40 | 2020-08-23 12:16:09.352 INFO [restartedMain]org.apache.coyote.http11.Http11NioProtocol.log:173 -Initializing ProtocolHandler ["http-nio-8080"] 41 | 2020-08-23 12:16:09.352 INFO [restartedMain]org.apache.catalina.core.StandardService.log:173 -Starting service [Tomcat] 42 | 2020-08-23 12:16:09.352 INFO [restartedMain]org.apache.catalina.core.StandardEngine.log:173 -Starting Servlet engine: [Apache Tomcat/9.0.37] 43 | 2020-08-23 12:16:09.425 INFO [restartedMain]o.a.catalina.core.ContainerBase.[Tomcat].[localhost].[/].log:173 -Initializing Spring embedded WebApplicationContext 44 | 2020-08-23 12:16:09.425 INFO [restartedMain]o.s.b.w.s.context.ServletWebServerApplicationContext.prepareWebApplicationContext:285 -Root WebApplicationContext: initialization completed in 854 ms 45 | 2020-08-23 12:16:10.559 INFO [restartedMain]o.s.scheduling.concurrent.ThreadPoolTaskExecutor.initialize:181 -Initializing ExecutorService 'applicationTaskExecutor' 46 | 2020-08-23 12:16:10.646 WARN [restartedMain]o.s.b.a.t.ThymeleafAutoConfiguration$DefaultTemplateResolverConfiguration.checkTemplateLocationExists:106 -Cannot find template location: classpath:/templates/ (please add some templates or check your Thymeleaf configuration) 47 | 2020-08-23 12:16:10.709 INFO [restartedMain]o.s.scheduling.concurrent.ThreadPoolTaskScheduler.initialize:181 -Initializing ExecutorService 'taskScheduler' 48 | 2020-08-23 12:16:10.733 INFO [restartedMain]o.s.boot.devtools.autoconfigure.OptionalLiveReloadServer.startServer:58 -LiveReload server is running on port 35729 49 | 2020-08-23 12:16:10.747 INFO [restartedMain]org.apache.coyote.http11.Http11NioProtocol.log:173 -Starting ProtocolHandler ["http-nio-8080"] 50 | 2020-08-23 12:16:10.762 INFO [restartedMain]o.s.boot.web.embedded.tomcat.TomcatWebServer.start:220 -Tomcat started on port(s): 8080 (http) with context path '' 51 | 2020-08-23 12:16:10.774 INFO [restartedMain]com.chengzzz.stepservice.StepserviceApplication.logStarted:61 -Started StepserviceApplication in 2.53 seconds (JVM running for 3.815) 52 | 2020-08-23 12:17:00.044 INFO [scheduling-1]com.zaxxer.hikari.HikariDataSource.getConnection:110 -HikariPool-1 - Starting... 53 | 2020-08-23 12:17:01.223 ERROR [scheduling-1]com.zaxxer.hikari.pool.HikariPool.throwPoolInitializationException:593 -HikariPool-1 - Exception during pool initialization. 54 | java.sql.SQLException: Access denied for user 'mystep'@'localhost' (using password: YES) 55 | at com.mysql.cj.jdbc.exceptions.SQLError.createSQLException(SQLError.java:129) 56 | at com.mysql.cj.jdbc.exceptions.SQLError.createSQLException(SQLError.java:97) 57 | at com.mysql.cj.jdbc.exceptions.SQLExceptionsMapping.translateException(SQLExceptionsMapping.java:122) 58 | at com.mysql.cj.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:836) 59 | at com.mysql.cj.jdbc.ConnectionImpl.(ConnectionImpl.java:456) 60 | at com.mysql.cj.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:246) 61 | at com.mysql.cj.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:197) 62 | at com.zaxxer.hikari.util.DriverDataSource.getConnection(DriverDataSource.java:138) 63 | at com.zaxxer.hikari.pool.PoolBase.newConnection(PoolBase.java:358) 64 | at com.zaxxer.hikari.pool.PoolBase.newPoolEntry(PoolBase.java:206) 65 | at com.zaxxer.hikari.pool.HikariPool.createPoolEntry(HikariPool.java:477) 66 | at com.zaxxer.hikari.pool.HikariPool.checkFailFast(HikariPool.java:560) 67 | at com.zaxxer.hikari.pool.HikariPool.(HikariPool.java:115) 68 | at com.zaxxer.hikari.HikariDataSource.getConnection(HikariDataSource.java:112) 69 | at org.springframework.jdbc.datasource.DataSourceUtils.fetchConnection(DataSourceUtils.java:158) 70 | at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:116) 71 | at org.springframework.jdbc.datasource.DataSourceUtils.getConnection(DataSourceUtils.java:79) 72 | at org.mybatis.spring.transaction.SpringManagedTransaction.openConnection(SpringManagedTransaction.java:80) 73 | at org.mybatis.spring.transaction.SpringManagedTransaction.getConnection(SpringManagedTransaction.java:67) 74 | at org.apache.ibatis.executor.BaseExecutor.getConnection(BaseExecutor.java:336) 75 | at com.baomidou.mybatisplus.core.executor.MybatisSimpleExecutor.prepareStatement(MybatisSimpleExecutor.java:91) 76 | at com.baomidou.mybatisplus.core.executor.MybatisSimpleExecutor.doQuery(MybatisSimpleExecutor.java:66) 77 | at org.apache.ibatis.executor.BaseExecutor.queryFromDatabase(BaseExecutor.java:324) 78 | at org.apache.ibatis.executor.BaseExecutor.query(BaseExecutor.java:156) 79 | at com.baomidou.mybatisplus.core.executor.MybatisCachingExecutor.query(MybatisCachingExecutor.java:163) 80 | at com.baomidou.mybatisplus.core.executor.MybatisCachingExecutor.query(MybatisCachingExecutor.java:90) 81 | at org.apache.ibatis.session.defaults.DefaultSqlSession.selectList(DefaultSqlSession.java:147) 82 | at org.apache.ibatis.session.defaults.DefaultSqlSession.selectList(DefaultSqlSession.java:140) 83 | at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 84 | at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) 85 | at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) 86 | at java.base/java.lang.reflect.Method.invoke(Method.java:566) 87 | at org.mybatis.spring.SqlSessionTemplate$SqlSessionInterceptor.invoke(SqlSessionTemplate.java:426) 88 | at com.sun.proxy.$Proxy61.selectList(Unknown Source) 89 | at org.mybatis.spring.SqlSessionTemplate.selectList(SqlSessionTemplate.java:223) 90 | at com.baomidou.mybatisplus.core.override.MybatisMapperMethod.executeForMany(MybatisMapperMethod.java:177) 91 | at com.baomidou.mybatisplus.core.override.MybatisMapperMethod.execute(MybatisMapperMethod.java:78) 92 | at com.baomidou.mybatisplus.core.override.MybatisMapperProxy.invoke(MybatisMapperProxy.java:96) 93 | at com.sun.proxy.$Proxy65.selectList(Unknown Source) 94 | at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 95 | at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) 96 | at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) 97 | at java.base/java.lang.reflect.Method.invoke(Method.java:566) 98 | at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:344) 99 | at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:198) 100 | at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:163) 101 | at org.springframework.dao.support.PersistenceExceptionTranslationInterceptor.invoke(PersistenceExceptionTranslationInterceptor.java:139) 102 | at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186) 103 | at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:212) 104 | at com.sun.proxy.$Proxy66.selectList(Unknown Source) 105 | at com.chengzzz.stepservice.schedu.UpdateSchedu.schedu(UpdateSchedu.java:38) 106 | at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 107 | at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) 108 | at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) 109 | at java.base/java.lang.reflect.Method.invoke(Method.java:566) 110 | at org.springframework.scheduling.support.ScheduledMethodRunnable.run(ScheduledMethodRunnable.java:84) 111 | at org.springframework.scheduling.support.DelegatingErrorHandlingRunnable.run(DelegatingErrorHandlingRunnable.java:54) 112 | at org.springframework.scheduling.concurrent.ReschedulingRunnable.run(ReschedulingRunnable.java:93) 113 | at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515) 114 | at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264) 115 | at java.base/java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:304) 116 | at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) 117 | at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) 118 | at java.base/java.lang.Thread.run(Thread.java:834) 119 | 2020-08-23 12:17:01.257 ERROR [scheduling-1]o.s.scheduling.support.TaskUtils$LoggingErrorHandler.handleError:95 -Unexpected error occurred in scheduled task 120 | org.mybatis.spring.MyBatisSystemException: nested exception is org.apache.ibatis.exceptions.PersistenceException: 121 | ### Error querying database. Cause: org.springframework.jdbc.CannotGetJdbcConnectionException: Failed to obtain JDBC Connection; nested exception is java.sql.SQLException: Access denied for user 'mystep'@'localhost' (using password: YES) 122 | ### The error may exist in com/chengzzz/stepservice/dao/UpstepsDao.java (best guess) 123 | ### The error may involve com.chengzzz.stepservice.dao.UpstepsDao.selectList 124 | ### The error occurred while executing a query 125 | ### Cause: org.springframework.jdbc.CannotGetJdbcConnectionException: Failed to obtain JDBC Connection; nested exception is java.sql.SQLException: Access denied for user 'mystep'@'localhost' (using password: YES) 126 | at org.mybatis.spring.MyBatisExceptionTranslator.translateExceptionIfPossible(MyBatisExceptionTranslator.java:92) 127 | at org.mybatis.spring.SqlSessionTemplate$SqlSessionInterceptor.invoke(SqlSessionTemplate.java:440) 128 | at com.sun.proxy.$Proxy61.selectList(Unknown Source) 129 | at org.mybatis.spring.SqlSessionTemplate.selectList(SqlSessionTemplate.java:223) 130 | at com.baomidou.mybatisplus.core.override.MybatisMapperMethod.executeForMany(MybatisMapperMethod.java:177) 131 | at com.baomidou.mybatisplus.core.override.MybatisMapperMethod.execute(MybatisMapperMethod.java:78) 132 | at com.baomidou.mybatisplus.core.override.MybatisMapperProxy.invoke(MybatisMapperProxy.java:96) 133 | at com.sun.proxy.$Proxy65.selectList(Unknown Source) 134 | at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 135 | at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) 136 | at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) 137 | at java.base/java.lang.reflect.Method.invoke(Method.java:566) 138 | at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:344) 139 | at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:198) 140 | at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:163) 141 | at org.springframework.dao.support.PersistenceExceptionTranslationInterceptor.invoke(PersistenceExceptionTranslationInterceptor.java:139) 142 | at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186) 143 | at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:212) 144 | at com.sun.proxy.$Proxy66.selectList(Unknown Source) 145 | at com.chengzzz.stepservice.schedu.UpdateSchedu.schedu(UpdateSchedu.java:38) 146 | at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 147 | at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) 148 | at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) 149 | at java.base/java.lang.reflect.Method.invoke(Method.java:566) 150 | at org.springframework.scheduling.support.ScheduledMethodRunnable.run(ScheduledMethodRunnable.java:84) 151 | at org.springframework.scheduling.support.DelegatingErrorHandlingRunnable.run(DelegatingErrorHandlingRunnable.java:54) 152 | at org.springframework.scheduling.concurrent.ReschedulingRunnable.run(ReschedulingRunnable.java:93) 153 | at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515) 154 | at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264) 155 | at java.base/java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:304) 156 | at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) 157 | at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) 158 | at java.base/java.lang.Thread.run(Thread.java:834) 159 | Caused by: org.apache.ibatis.exceptions.PersistenceException: 160 | ### Error querying database. Cause: org.springframework.jdbc.CannotGetJdbcConnectionException: Failed to obtain JDBC Connection; nested exception is java.sql.SQLException: Access denied for user 'mystep'@'localhost' (using password: YES) 161 | ### The error may exist in com/chengzzz/stepservice/dao/UpstepsDao.java (best guess) 162 | ### The error may involve com.chengzzz.stepservice.dao.UpstepsDao.selectList 163 | ### The error occurred while executing a query 164 | ### Cause: org.springframework.jdbc.CannotGetJdbcConnectionException: Failed to obtain JDBC Connection; nested exception is java.sql.SQLException: Access denied for user 'mystep'@'localhost' (using password: YES) 165 | at org.apache.ibatis.exceptions.ExceptionFactory.wrapException(ExceptionFactory.java:30) 166 | at org.apache.ibatis.session.defaults.DefaultSqlSession.selectList(DefaultSqlSession.java:149) 167 | at org.apache.ibatis.session.defaults.DefaultSqlSession.selectList(DefaultSqlSession.java:140) 168 | at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 169 | at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) 170 | at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) 171 | at java.base/java.lang.reflect.Method.invoke(Method.java:566) 172 | at org.mybatis.spring.SqlSessionTemplate$SqlSessionInterceptor.invoke(SqlSessionTemplate.java:426) 173 | ... 31 common frames omitted 174 | Caused by: org.springframework.jdbc.CannotGetJdbcConnectionException: Failed to obtain JDBC Connection; nested exception is java.sql.SQLException: Access denied for user 'mystep'@'localhost' (using password: YES) 175 | at org.springframework.jdbc.datasource.DataSourceUtils.getConnection(DataSourceUtils.java:82) 176 | at org.mybatis.spring.transaction.SpringManagedTransaction.openConnection(SpringManagedTransaction.java:80) 177 | at org.mybatis.spring.transaction.SpringManagedTransaction.getConnection(SpringManagedTransaction.java:67) 178 | at org.apache.ibatis.executor.BaseExecutor.getConnection(BaseExecutor.java:336) 179 | at com.baomidou.mybatisplus.core.executor.MybatisSimpleExecutor.prepareStatement(MybatisSimpleExecutor.java:91) 180 | at com.baomidou.mybatisplus.core.executor.MybatisSimpleExecutor.doQuery(MybatisSimpleExecutor.java:66) 181 | at org.apache.ibatis.executor.BaseExecutor.queryFromDatabase(BaseExecutor.java:324) 182 | at org.apache.ibatis.executor.BaseExecutor.query(BaseExecutor.java:156) 183 | at com.baomidou.mybatisplus.core.executor.MybatisCachingExecutor.query(MybatisCachingExecutor.java:163) 184 | at com.baomidou.mybatisplus.core.executor.MybatisCachingExecutor.query(MybatisCachingExecutor.java:90) 185 | at org.apache.ibatis.session.defaults.DefaultSqlSession.selectList(DefaultSqlSession.java:147) 186 | ... 37 common frames omitted 187 | Caused by: java.sql.SQLException: Access denied for user 'mystep'@'localhost' (using password: YES) 188 | at com.mysql.cj.jdbc.exceptions.SQLError.createSQLException(SQLError.java:129) 189 | at com.mysql.cj.jdbc.exceptions.SQLError.createSQLException(SQLError.java:97) 190 | at com.mysql.cj.jdbc.exceptions.SQLExceptionsMapping.translateException(SQLExceptionsMapping.java:122) 191 | at com.mysql.cj.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:836) 192 | at com.mysql.cj.jdbc.ConnectionImpl.(ConnectionImpl.java:456) 193 | at com.mysql.cj.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:246) 194 | at com.mysql.cj.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:197) 195 | at com.zaxxer.hikari.util.DriverDataSource.getConnection(DriverDataSource.java:138) 196 | at com.zaxxer.hikari.pool.PoolBase.newConnection(PoolBase.java:358) 197 | at com.zaxxer.hikari.pool.PoolBase.newPoolEntry(PoolBase.java:206) 198 | at com.zaxxer.hikari.pool.HikariPool.createPoolEntry(HikariPool.java:477) 199 | at com.zaxxer.hikari.pool.HikariPool.checkFailFast(HikariPool.java:560) 200 | at com.zaxxer.hikari.pool.HikariPool.(HikariPool.java:115) 201 | at com.zaxxer.hikari.HikariDataSource.getConnection(HikariDataSource.java:112) 202 | at org.springframework.jdbc.datasource.DataSourceUtils.fetchConnection(DataSourceUtils.java:158) 203 | at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:116) 204 | at org.springframework.jdbc.datasource.DataSourceUtils.getConnection(DataSourceUtils.java:79) 205 | ... 47 common frames omitted 206 | 2020-08-23 12:17:36.035 INFO [restartedMain]com.chengzzz.stepservice.StepserviceApplication.logStarting:55 -Starting StepserviceApplication on DESKTOP-9S7FNJU with PID 3428 (G:\stepservice\target\classes started by Yet in G:\stepservice) 207 | 2020-08-23 12:17:36.037 INFO [restartedMain]com.chengzzz.stepservice.StepserviceApplication.logStartupProfileInfo:651 -No active profile set, falling back to default profiles: default 208 | 2020-08-23 12:17:36.072 INFO [restartedMain]o.s.b.devtools.env.DevToolsPropertyDefaultsPostProcessor.logTo:225 -Devtools property defaults active! Set 'spring.devtools.add-properties' to 'false' to disable 209 | 2020-08-23 12:17:36.072 INFO [restartedMain]o.s.b.devtools.env.DevToolsPropertyDefaultsPostProcessor.logTo:225 -For additional web related logging consider setting the 'logging.level.web' property to 'DEBUG' 210 | 2020-08-23 12:17:36.835 INFO [restartedMain]o.s.boot.web.embedded.tomcat.TomcatWebServer.initialize:108 -Tomcat initialized with port(s): 8080 (http) 211 | 2020-08-23 12:17:36.841 INFO [restartedMain]org.apache.coyote.http11.Http11NioProtocol.log:173 -Initializing ProtocolHandler ["http-nio-8080"] 212 | 2020-08-23 12:17:36.841 INFO [restartedMain]org.apache.catalina.core.StandardService.log:173 -Starting service [Tomcat] 213 | 2020-08-23 12:17:36.841 INFO [restartedMain]org.apache.catalina.core.StandardEngine.log:173 -Starting Servlet engine: [Apache Tomcat/9.0.37] 214 | 2020-08-23 12:17:36.917 INFO [restartedMain]o.a.catalina.core.ContainerBase.[Tomcat].[localhost].[/].log:173 -Initializing Spring embedded WebApplicationContext 215 | 2020-08-23 12:17:36.917 INFO [restartedMain]o.s.b.w.s.context.ServletWebServerApplicationContext.prepareWebApplicationContext:285 -Root WebApplicationContext: initialization completed in 845 ms 216 | 2020-08-23 12:17:38.495 INFO [restartedMain]o.s.scheduling.concurrent.ThreadPoolTaskExecutor.initialize:181 -Initializing ExecutorService 'applicationTaskExecutor' 217 | 2020-08-23 12:17:38.578 WARN [restartedMain]o.s.b.a.t.ThymeleafAutoConfiguration$DefaultTemplateResolverConfiguration.checkTemplateLocationExists:106 -Cannot find template location: classpath:/templates/ (please add some templates or check your Thymeleaf configuration) 218 | 2020-08-23 12:17:38.647 INFO [restartedMain]o.s.scheduling.concurrent.ThreadPoolTaskScheduler.initialize:181 -Initializing ExecutorService 'taskScheduler' 219 | 2020-08-23 12:17:38.673 INFO [restartedMain]o.s.boot.devtools.autoconfigure.OptionalLiveReloadServer.startServer:58 -LiveReload server is running on port 35729 220 | 2020-08-23 12:17:38.688 INFO [restartedMain]org.apache.coyote.http11.Http11NioProtocol.log:173 -Starting ProtocolHandler ["http-nio-8080"] 221 | 2020-08-23 12:17:38.705 INFO [restartedMain]o.s.boot.web.embedded.tomcat.TomcatWebServer.start:220 -Tomcat started on port(s): 8080 (http) with context path '' 222 | 2020-08-23 12:17:38.718 INFO [restartedMain]com.chengzzz.stepservice.StepserviceApplication.logStarted:61 -Started StepserviceApplication in 2.917 seconds (JVM running for 4.137) 223 | 2020-08-23 12:19:00.041 INFO [scheduling-1]com.zaxxer.hikari.HikariDataSource.getConnection:110 -HikariPool-1 - Starting... 224 | 2020-08-23 12:19:00.145 INFO [scheduling-1]com.zaxxer.hikari.HikariDataSource.getConnection:123 -HikariPool-1 - Start completed. 225 | 2020-08-23 12:19:00.151 DEBUG [scheduling-1]com.chengzzz.stepservice.dao.UpstepsDao.selectList.debug:143 -==> Preparing: SELECT id,phone,password,steps,flag,msg FROM upsteps WHERE (flag = ?) 226 | 2020-08-23 12:19:00.167 DEBUG [scheduling-1]com.chengzzz.stepservice.dao.UpstepsDao.selectList.debug:143 -==> Parameters: 1(Integer) 227 | 2020-08-23 12:19:00.182 DEBUG [scheduling-1]com.chengzzz.stepservice.dao.UpstepsDao.selectList.debug:143 -<== Total: 0 228 | 2020-08-23 12:21:26.207 INFO [restartedMain]com.chengzzz.stepservice.StepserviceApplication.logStarting:55 -Starting StepserviceApplication on DESKTOP-9S7FNJU with PID 3396 (G:\stepservice\target\classes started by Yet in G:\stepservice) 229 | 2020-08-23 12:21:26.210 INFO [restartedMain]com.chengzzz.stepservice.StepserviceApplication.logStartupProfileInfo:651 -No active profile set, falling back to default profiles: default 230 | 2020-08-23 12:21:26.250 INFO [restartedMain]o.s.b.devtools.env.DevToolsPropertyDefaultsPostProcessor.logTo:225 -Devtools property defaults active! Set 'spring.devtools.add-properties' to 'false' to disable 231 | 2020-08-23 12:21:26.251 INFO [restartedMain]o.s.b.devtools.env.DevToolsPropertyDefaultsPostProcessor.logTo:225 -For additional web related logging consider setting the 'logging.level.web' property to 'DEBUG' 232 | 2020-08-23 12:21:26.969 INFO [restartedMain]o.s.boot.web.embedded.tomcat.TomcatWebServer.initialize:108 -Tomcat initialized with port(s): 8080 (http) 233 | 2020-08-23 12:21:26.975 INFO [restartedMain]org.apache.coyote.http11.Http11NioProtocol.log:173 -Initializing ProtocolHandler ["http-nio-8080"] 234 | 2020-08-23 12:21:26.975 INFO [restartedMain]org.apache.catalina.core.StandardService.log:173 -Starting service [Tomcat] 235 | 2020-08-23 12:21:26.976 INFO [restartedMain]org.apache.catalina.core.StandardEngine.log:173 -Starting Servlet engine: [Apache Tomcat/9.0.37] 236 | 2020-08-23 12:21:27.046 INFO [restartedMain]o.a.catalina.core.ContainerBase.[Tomcat].[localhost].[/].log:173 -Initializing Spring embedded WebApplicationContext 237 | 2020-08-23 12:21:27.047 INFO [restartedMain]o.s.b.w.s.context.ServletWebServerApplicationContext.prepareWebApplicationContext:285 -Root WebApplicationContext: initialization completed in 796 ms 238 | 2020-08-23 12:21:28.172 INFO [restartedMain]o.s.scheduling.concurrent.ThreadPoolTaskExecutor.initialize:181 -Initializing ExecutorService 'applicationTaskExecutor' 239 | 2020-08-23 12:21:28.255 WARN [restartedMain]o.s.b.a.t.ThymeleafAutoConfiguration$DefaultTemplateResolverConfiguration.checkTemplateLocationExists:106 -Cannot find template location: classpath:/templates/ (please add some templates or check your Thymeleaf configuration) 240 | 2020-08-23 12:21:28.328 INFO [restartedMain]o.s.scheduling.concurrent.ThreadPoolTaskScheduler.initialize:181 -Initializing ExecutorService 'taskScheduler' 241 | 2020-08-23 12:21:28.353 INFO [restartedMain]o.s.boot.devtools.autoconfigure.OptionalLiveReloadServer.startServer:58 -LiveReload server is running on port 35729 242 | 2020-08-23 12:21:28.367 INFO [restartedMain]org.apache.coyote.http11.Http11NioProtocol.log:173 -Starting ProtocolHandler ["http-nio-8080"] 243 | 2020-08-23 12:21:28.384 INFO [restartedMain]o.s.boot.web.embedded.tomcat.TomcatWebServer.start:220 -Tomcat started on port(s): 8080 (http) with context path '' 244 | 2020-08-23 12:21:28.396 INFO [restartedMain]com.chengzzz.stepservice.StepserviceApplication.logStarted:61 -Started StepserviceApplication in 2.453 seconds (JVM running for 3.654) 245 | 2020-08-23 12:22:00.038 INFO [scheduling-1]com.zaxxer.hikari.HikariDataSource.getConnection:110 -HikariPool-1 - Starting... 246 | 2020-08-23 12:22:00.134 INFO [scheduling-1]com.zaxxer.hikari.HikariDataSource.getConnection:123 -HikariPool-1 - Start completed. 247 | 2020-08-23 12:22:00.139 DEBUG [scheduling-1]com.chengzzz.stepservice.dao.UpstepsDao.selectList.debug:143 -==> Preparing: SELECT id,phone,password,steps,flag,msg FROM upsteps WHERE (flag = ?) 248 | 2020-08-23 12:22:00.153 DEBUG [scheduling-1]com.chengzzz.stepservice.dao.UpstepsDao.selectList.debug:143 -==> Parameters: 1(Integer) 249 | 2020-08-23 12:22:00.169 DEBUG [scheduling-1]com.chengzzz.stepservice.dao.UpstepsDao.selectList.debug:143 -<== Total: 0 250 | 2020-08-23 12:22:38.063 INFO [restartedMain]com.chengzzz.stepservice.StepserviceApplication.logStarting:55 -Starting StepserviceApplication on DESKTOP-9S7FNJU with PID 7164 (G:\stepservice\target\classes started by Yet in G:\stepservice) 251 | 2020-08-23 12:22:38.066 INFO [restartedMain]com.chengzzz.stepservice.StepserviceApplication.logStartupProfileInfo:651 -No active profile set, falling back to default profiles: default 252 | 2020-08-23 12:22:38.110 INFO [restartedMain]o.s.b.devtools.env.DevToolsPropertyDefaultsPostProcessor.logTo:225 -Devtools property defaults active! Set 'spring.devtools.add-properties' to 'false' to disable 253 | 2020-08-23 12:22:38.111 INFO [restartedMain]o.s.b.devtools.env.DevToolsPropertyDefaultsPostProcessor.logTo:225 -For additional web related logging consider setting the 'logging.level.web' property to 'DEBUG' 254 | 2020-08-23 12:22:38.852 INFO [restartedMain]o.s.boot.web.embedded.tomcat.TomcatWebServer.initialize:108 -Tomcat initialized with port(s): 8080 (http) 255 | 2020-08-23 12:22:38.858 INFO [restartedMain]org.apache.coyote.http11.Http11NioProtocol.log:173 -Initializing ProtocolHandler ["http-nio-8080"] 256 | 2020-08-23 12:22:38.859 INFO [restartedMain]org.apache.catalina.core.StandardService.log:173 -Starting service [Tomcat] 257 | 2020-08-23 12:22:38.859 INFO [restartedMain]org.apache.catalina.core.StandardEngine.log:173 -Starting Servlet engine: [Apache Tomcat/9.0.37] 258 | 2020-08-23 12:22:38.934 INFO [restartedMain]o.a.catalina.core.ContainerBase.[Tomcat].[localhost].[/].log:173 -Initializing Spring embedded WebApplicationContext 259 | 2020-08-23 12:22:38.935 INFO [restartedMain]o.s.b.w.s.context.ServletWebServerApplicationContext.prepareWebApplicationContext:285 -Root WebApplicationContext: initialization completed in 824 ms 260 | 2020-08-23 12:22:40.085 INFO [restartedMain]o.s.scheduling.concurrent.ThreadPoolTaskExecutor.initialize:181 -Initializing ExecutorService 'applicationTaskExecutor' 261 | 2020-08-23 12:22:40.174 WARN [restartedMain]o.s.b.a.t.ThymeleafAutoConfiguration$DefaultTemplateResolverConfiguration.checkTemplateLocationExists:106 -Cannot find template location: classpath:/templates/ (please add some templates or check your Thymeleaf configuration) 262 | 2020-08-23 12:22:40.244 INFO [restartedMain]o.s.scheduling.concurrent.ThreadPoolTaskScheduler.initialize:181 -Initializing ExecutorService 'taskScheduler' 263 | 2020-08-23 12:22:40.271 INFO [restartedMain]o.s.boot.devtools.autoconfigure.OptionalLiveReloadServer.startServer:58 -LiveReload server is running on port 35729 264 | 2020-08-23 12:22:40.285 INFO [restartedMain]org.apache.coyote.http11.Http11NioProtocol.log:173 -Starting ProtocolHandler ["http-nio-8080"] 265 | 2020-08-23 12:22:40.301 INFO [restartedMain]o.s.boot.web.embedded.tomcat.TomcatWebServer.start:220 -Tomcat started on port(s): 8080 (http) with context path '' 266 | 2020-08-23 12:22:40.313 INFO [restartedMain]com.chengzzz.stepservice.StepserviceApplication.logStarted:61 -Started StepserviceApplication in 2.529 seconds (JVM running for 3.754) 267 | 2020-08-23 12:23:00.038 INFO [scheduling-1]com.zaxxer.hikari.HikariDataSource.getConnection:110 -HikariPool-1 - Starting... 268 | 2020-08-23 12:23:00.135 INFO [scheduling-1]com.zaxxer.hikari.HikariDataSource.getConnection:123 -HikariPool-1 - Start completed. 269 | 2020-08-23 12:23:00.140 DEBUG [scheduling-1]com.chengzzz.stepservice.dao.UpstepsDao.selectList.debug:143 -==> Preparing: SELECT id,phone,password,steps,flag,msg FROM upsteps WHERE (flag = ?) 270 | 2020-08-23 12:23:00.154 DEBUG [scheduling-1]com.chengzzz.stepservice.dao.UpstepsDao.selectList.debug:143 -==> Parameters: 1(Integer) 271 | 2020-08-23 12:23:00.169 DEBUG [scheduling-1]com.chengzzz.stepservice.dao.UpstepsDao.selectList.debug:143 -<== Total: 1 272 | 2020-08-23 12:23:00.181 DEBUG [scheduling-1]com.chengzzz.stepservice.dao.UpstepsDao.selectOne.debug:143 -==> Preparing: SELECT id,phone,password,steps,flag,msg FROM upsteps WHERE (phone = ?) 273 | 2020-08-23 12:23:00.182 DEBUG [scheduling-1]com.chengzzz.stepservice.dao.UpstepsDao.selectOne.debug:143 -==> Parameters: 18267231101(String) 274 | 2020-08-23 12:23:00.183 DEBUG [scheduling-1]com.chengzzz.stepservice.dao.UpstepsDao.selectOne.debug:143 -<== Total: 1 275 | 2020-08-23 12:23:00.184 DEBUG [scheduling-1]com.chengzzz.stepservice.dao.UpstepsDao.updateById.debug:143 -==> Preparing: UPDATE upsteps SET phone=?, password=?, steps=?, flag=? WHERE id=? 276 | 2020-08-23 12:23:00.185 DEBUG [scheduling-1]com.chengzzz.stepservice.dao.UpstepsDao.updateById.debug:143 -==> Parameters: 18267231101(String), ZMC123456(String), 1888(String), 1(Integer), 2(Integer) 277 | 2020-08-23 12:23:00.186 DEBUG [scheduling-1]com.chengzzz.stepservice.dao.UpstepsDao.updateById.debug:143 -<== Updates: 1 278 | 2020-08-23 12:23:00.720 INFO [OkHttp https://sports.lifesense.com/...]com.chengzzz.stepservice.service.impl.UpstepsServiceImpl.onResponse:234 -登录响应的cookie: accessToken=D2A6AFB93531605DBE56DC2EEE74C4C920C12BEB70905E231679F9C8BAE8F59DA1EED76ABF42E4A68B2C5AF8300778C1AEBE4FD717650D09F6A12F1CE78D6FDAEC61A23D25C1CEEC15F495A68A6B7725BC7309D6AA895BD8B6B93A54EF703F3E.8AC66C30EE994B368C49EA79F8A398372F3500E8EE4EEAF5353E163B9F86744F; Domain=.lifesense.com; Expires=Tue, 22-Sep-2020 04:23:01 GMT; Path=/ 279 | 2020-08-23 12:23:00.721 INFO [OkHttp https://sports.lifesense.com/...]com.chengzzz.stepservice.service.impl.UpstepsServiceImpl.onResponse:239 -登录结果的响应: {"code":200,"msg":"成功","data":{"exist":false,"hasMobile":false,"userId":"26993431","accessToken":"D2A6AFB93531605DBE56DC2EEE74C4C920C12BEB70905E231679F9C8BAE8F59DA1EED76ABF42E4A68B2C5AF8300778C1AEBE4FD717650D09F6A12F1CE78D6FDAEC61A23D25C1CEEC15F495A68A6B7725BC7309D6AA895BD8B6B93A54EF703F3E.8AC66C30EE994B368C49EA79F8A398372F3500E8EE4EEAF5353E163B9F86744F","expireAt":1600748581759,"userType":99,"needInfo":false}} 280 | 2020-08-23 12:23:00.724 INFO [OkHttp https://sports.lifesense.com/...]com.chengzzz.stepservice.service.impl.UpstepsServiceImpl.updateCallback:76 -Callback中的MsgaccessToken=D2A6AFB93531605DBE56DC2EEE74C4C920C12BEB70905E231679F9C8BAE8F59DA1EED76ABF42E4A68B2C5AF8300778C1AEBE4FD717650D09F6A12F1CE78D6FDAEC61A23D25C1CEEC15F495A68A6B7725BC7309D6AA895BD8B6B93A54EF703F3E.8AC66C30EE994B368C49EA79F8A398372F3500E8EE4EEAF5353E163B9F86744F; Domain=.lifesense.com; Expires=Tue, 22-Sep-2020 04:23:01 GMT; Path=/ 281 | 2020-08-23 12:23:00.730 INFO [OkHttp https://sports.lifesense.com/...]com.chengzzz.stepservice.schedu.UpdateSchedu.updateResult:46 -用户:18267231101 步数:1888 返回:accessToken=D2A6AFB93531605DBE56DC2EEE74C4C920C12BEB70905E231679F9C8BAE8F59DA1EED76ABF42E4A68B2C5AF8300778C1AEBE4FD717650D09F6A12F1CE78D6FDAEC61A23D25C1CEEC15F495A68A6B7725BC7309D6AA895BD8B6B93A54EF703F3E.8AC66C30EE994B368C49EA79F8A398372F3500E8EE4EEAF5353E163B9F86744F; Domain=.lifesense.com; Expires=Tue, 22-Sep-2020 04:23:01 GMT; Path=/ 282 | 2020-08-23 12:23:00.731 INFO [OkHttp https://sports.lifesense.com/...]com.chengzzz.stepservice.service.impl.UpstepsServiceImpl.postAsynModifyStepsHttp:118 -下面开始修改 283 | 2020-08-23 12:23:00.735 INFO [OkHttp https://sports.lifesense.com/...]com.chengzzz.stepservice.service.impl.UpstepsServiceImpl.postAsynModifyStepsHttp:144 -这是修改的测试时间: 2020-08-23 12:23:00 284 | 2020-08-23 12:23:00.735 INFO [OkHttp https://sports.lifesense.com/...]com.chengzzz.stepservice.service.impl.UpstepsServiceImpl.postAsynModifyStepsHttp:145 -这是修改的测试时间戳: 1598156580735 285 | 2020-08-23 12:23:00.735 INFO [OkHttp https://sports.lifesense.com/...]com.chengzzz.stepservice.service.impl.UpstepsServiceImpl.postAsynModifyStepsHttp:146 -这是修改的距离: 629 286 | 2020-08-23 12:23:00.737 INFO [OkHttp https://sports.lifesense.com/...]com.chengzzz.stepservice.service.impl.UpstepsServiceImpl.postAsynModifyStepsHttp:152 -这是修改的json请求体: {"list":[{"active":1,"calories":472,"dataSource":2,"deviceId":"M_NULL","distance":629,"isUpload":0,"measurementTime":"2020-08-23 12:23:00","priority":0,"step":1888,"type":2,"updated":1598156580735,"userId":26993431,"DataSource":2,"exerciseTime":0}]} 287 | 2020-08-23 12:23:01.007 INFO [OkHttp https://sports.lifesense.com/...]com.chengzzz.stepservice.service.impl.UpstepsServiceImpl.onResponse:184 -提交更改步数后的响应 onResponse: {"code":200,"msg":"成功","data":{"pedometerRecordHourlyList":[{"id":"33e9bd46c95541c686745fa91cffdc57","userId":26993431,"deviceId":"M_NULL","measurementTime":"2020-08-23 00:00:00","step":"0,0,0,0,0,0,0,0,0,0,0,0,1888,0,0,0,0,0,0,0,0,0,0,0","calories":"0,0,0,0,0,0,0,0,0,0,0,0,472.00,0,0,0,0,0,0,0,0,0,0,0","distance":"0,0,0,0,0,0,0,0,0,0,0,0,629.00,0,0,0,0,0,0,0,0,0,0,0","dataSource":2,"created":"2020-08-23 12:23:02","active":0,"updated":1598156582041}]}} 288 | 2020-08-23 12:23:01.009 INFO [OkHttp https://sports.lifesense.com/...]com.chengzzz.stepservice.service.impl.UpstepsServiceImpl.updateCallback:76 -Callback中的Msg{"code":200,"msg":"成功","data":{"pedometerRecordHourlyList":[{"id":"33e9bd46c95541c686745fa91cffdc57","userId":26993431,"deviceId":"M_NULL","measurementTime":"2020-08-23 00:00:00","step":"0,0,0,0,0,0,0,0,0,0,0,0,1888,0,0,0,0,0,0,0,0,0,0,0","calories":"0,0,0,0,0,0,0,0,0,0,0,0,472.00,0,0,0,0,0,0,0,0,0,0,0","distance":"0,0,0,0,0,0,0,0,0,0,0,0,629.00,0,0,0,0,0,0,0,0,0,0,0","dataSource":2,"created":"2020-08-23 12:23:02","active":0,"updated":1598156582041}]}} 289 | 2020-08-23 12:23:01.009 INFO [OkHttp https://sports.lifesense.com/...]com.chengzzz.stepservice.schedu.UpdateSchedu.updateResult:46 -用户:18267231101 步数:1888 返回:{"code":200,"msg":"成功","data":{"pedometerRecordHourlyList":[{"id":"33e9bd46c95541c686745fa91cffdc57","userId":26993431,"deviceId":"M_NULL","measurementTime":"2020-08-23 00:00:00","step":"0,0,0,0,0,0,0,0,0,0,0,0,1888,0,0,0,0,0,0,0,0,0,0,0","calories":"0,0,0,0,0,0,0,0,0,0,0,0,472.00,0,0,0,0,0,0,0,0,0,0,0","distance":"0,0,0,0,0,0,0,0,0,0,0,0,629.00,0,0,0,0,0,0,0,0,0,0,0","dataSource":2,"created":"2020-08-23 12:23:02","active":0,"updated":1598156582041}]}} 290 | -------------------------------------------------------------------------------- /logs/blog-debug.log: -------------------------------------------------------------------------------- 1 | 2020-08-23 12:19:00.151 DEBUG [scheduling-1]com.chengzzz.stepservice.dao.UpstepsDao.selectList.debug:143 -==> Preparing: SELECT id,phone,password,steps,flag,msg FROM upsteps WHERE (flag = ?) 2 | 2020-08-23 12:19:00.167 DEBUG [scheduling-1]com.chengzzz.stepservice.dao.UpstepsDao.selectList.debug:143 -==> Parameters: 1(Integer) 3 | 2020-08-23 12:19:00.182 DEBUG [scheduling-1]com.chengzzz.stepservice.dao.UpstepsDao.selectList.debug:143 -<== Total: 0 4 | 2020-08-23 12:22:00.139 DEBUG [scheduling-1]com.chengzzz.stepservice.dao.UpstepsDao.selectList.debug:143 -==> Preparing: SELECT id,phone,password,steps,flag,msg FROM upsteps WHERE (flag = ?) 5 | 2020-08-23 12:22:00.153 DEBUG [scheduling-1]com.chengzzz.stepservice.dao.UpstepsDao.selectList.debug:143 -==> Parameters: 1(Integer) 6 | 2020-08-23 12:22:00.169 DEBUG [scheduling-1]com.chengzzz.stepservice.dao.UpstepsDao.selectList.debug:143 -<== Total: 0 7 | 2020-08-23 12:23:00.140 DEBUG [scheduling-1]com.chengzzz.stepservice.dao.UpstepsDao.selectList.debug:143 -==> Preparing: SELECT id,phone,password,steps,flag,msg FROM upsteps WHERE (flag = ?) 8 | 2020-08-23 12:23:00.154 DEBUG [scheduling-1]com.chengzzz.stepservice.dao.UpstepsDao.selectList.debug:143 -==> Parameters: 1(Integer) 9 | 2020-08-23 12:23:00.169 DEBUG [scheduling-1]com.chengzzz.stepservice.dao.UpstepsDao.selectList.debug:143 -<== Total: 1 10 | 2020-08-23 12:23:00.181 DEBUG [scheduling-1]com.chengzzz.stepservice.dao.UpstepsDao.selectOne.debug:143 -==> Preparing: SELECT id,phone,password,steps,flag,msg FROM upsteps WHERE (phone = ?) 11 | 2020-08-23 12:23:00.182 DEBUG [scheduling-1]com.chengzzz.stepservice.dao.UpstepsDao.selectOne.debug:143 -==> Parameters: 18267231101(String) 12 | 2020-08-23 12:23:00.183 DEBUG [scheduling-1]com.chengzzz.stepservice.dao.UpstepsDao.selectOne.debug:143 -<== Total: 1 13 | 2020-08-23 12:23:00.184 DEBUG [scheduling-1]com.chengzzz.stepservice.dao.UpstepsDao.updateById.debug:143 -==> Preparing: UPDATE upsteps SET phone=?, password=?, steps=?, flag=? WHERE id=? 14 | 2020-08-23 12:23:00.185 DEBUG [scheduling-1]com.chengzzz.stepservice.dao.UpstepsDao.updateById.debug:143 -==> Parameters: 18267231101(String), ZMC123456(String), 1888(String), 1(Integer), 2(Integer) 15 | 2020-08-23 12:23:00.186 DEBUG [scheduling-1]com.chengzzz.stepservice.dao.UpstepsDao.updateById.debug:143 -<== Updates: 1 16 | -------------------------------------------------------------------------------- /logs/blog-error.log: -------------------------------------------------------------------------------- 1 | 2020-08-23 12:17:01.223 ERROR [scheduling-1]com.zaxxer.hikari.pool.HikariPool.throwPoolInitializationException:593 -HikariPool-1 - Exception during pool initialization. 2 | java.sql.SQLException: Access denied for user 'mystep'@'localhost' (using password: YES) 3 | at com.mysql.cj.jdbc.exceptions.SQLError.createSQLException(SQLError.java:129) 4 | at com.mysql.cj.jdbc.exceptions.SQLError.createSQLException(SQLError.java:97) 5 | at com.mysql.cj.jdbc.exceptions.SQLExceptionsMapping.translateException(SQLExceptionsMapping.java:122) 6 | at com.mysql.cj.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:836) 7 | at com.mysql.cj.jdbc.ConnectionImpl.(ConnectionImpl.java:456) 8 | at com.mysql.cj.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:246) 9 | at com.mysql.cj.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:197) 10 | at com.zaxxer.hikari.util.DriverDataSource.getConnection(DriverDataSource.java:138) 11 | at com.zaxxer.hikari.pool.PoolBase.newConnection(PoolBase.java:358) 12 | at com.zaxxer.hikari.pool.PoolBase.newPoolEntry(PoolBase.java:206) 13 | at com.zaxxer.hikari.pool.HikariPool.createPoolEntry(HikariPool.java:477) 14 | at com.zaxxer.hikari.pool.HikariPool.checkFailFast(HikariPool.java:560) 15 | at com.zaxxer.hikari.pool.HikariPool.(HikariPool.java:115) 16 | at com.zaxxer.hikari.HikariDataSource.getConnection(HikariDataSource.java:112) 17 | at org.springframework.jdbc.datasource.DataSourceUtils.fetchConnection(DataSourceUtils.java:158) 18 | at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:116) 19 | at org.springframework.jdbc.datasource.DataSourceUtils.getConnection(DataSourceUtils.java:79) 20 | at org.mybatis.spring.transaction.SpringManagedTransaction.openConnection(SpringManagedTransaction.java:80) 21 | at org.mybatis.spring.transaction.SpringManagedTransaction.getConnection(SpringManagedTransaction.java:67) 22 | at org.apache.ibatis.executor.BaseExecutor.getConnection(BaseExecutor.java:336) 23 | at com.baomidou.mybatisplus.core.executor.MybatisSimpleExecutor.prepareStatement(MybatisSimpleExecutor.java:91) 24 | at com.baomidou.mybatisplus.core.executor.MybatisSimpleExecutor.doQuery(MybatisSimpleExecutor.java:66) 25 | at org.apache.ibatis.executor.BaseExecutor.queryFromDatabase(BaseExecutor.java:324) 26 | at org.apache.ibatis.executor.BaseExecutor.query(BaseExecutor.java:156) 27 | at com.baomidou.mybatisplus.core.executor.MybatisCachingExecutor.query(MybatisCachingExecutor.java:163) 28 | at com.baomidou.mybatisplus.core.executor.MybatisCachingExecutor.query(MybatisCachingExecutor.java:90) 29 | at org.apache.ibatis.session.defaults.DefaultSqlSession.selectList(DefaultSqlSession.java:147) 30 | at org.apache.ibatis.session.defaults.DefaultSqlSession.selectList(DefaultSqlSession.java:140) 31 | at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 32 | at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) 33 | at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) 34 | at java.base/java.lang.reflect.Method.invoke(Method.java:566) 35 | at org.mybatis.spring.SqlSessionTemplate$SqlSessionInterceptor.invoke(SqlSessionTemplate.java:426) 36 | at com.sun.proxy.$Proxy61.selectList(Unknown Source) 37 | at org.mybatis.spring.SqlSessionTemplate.selectList(SqlSessionTemplate.java:223) 38 | at com.baomidou.mybatisplus.core.override.MybatisMapperMethod.executeForMany(MybatisMapperMethod.java:177) 39 | at com.baomidou.mybatisplus.core.override.MybatisMapperMethod.execute(MybatisMapperMethod.java:78) 40 | at com.baomidou.mybatisplus.core.override.MybatisMapperProxy.invoke(MybatisMapperProxy.java:96) 41 | at com.sun.proxy.$Proxy65.selectList(Unknown Source) 42 | at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 43 | at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) 44 | at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) 45 | at java.base/java.lang.reflect.Method.invoke(Method.java:566) 46 | at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:344) 47 | at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:198) 48 | at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:163) 49 | at org.springframework.dao.support.PersistenceExceptionTranslationInterceptor.invoke(PersistenceExceptionTranslationInterceptor.java:139) 50 | at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186) 51 | at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:212) 52 | at com.sun.proxy.$Proxy66.selectList(Unknown Source) 53 | at com.chengzzz.stepservice.schedu.UpdateSchedu.schedu(UpdateSchedu.java:38) 54 | at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 55 | at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) 56 | at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) 57 | at java.base/java.lang.reflect.Method.invoke(Method.java:566) 58 | at org.springframework.scheduling.support.ScheduledMethodRunnable.run(ScheduledMethodRunnable.java:84) 59 | at org.springframework.scheduling.support.DelegatingErrorHandlingRunnable.run(DelegatingErrorHandlingRunnable.java:54) 60 | at org.springframework.scheduling.concurrent.ReschedulingRunnable.run(ReschedulingRunnable.java:93) 61 | at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515) 62 | at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264) 63 | at java.base/java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:304) 64 | at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) 65 | at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) 66 | at java.base/java.lang.Thread.run(Thread.java:834) 67 | 2020-08-23 12:17:01.257 ERROR [scheduling-1]o.s.scheduling.support.TaskUtils$LoggingErrorHandler.handleError:95 -Unexpected error occurred in scheduled task 68 | org.mybatis.spring.MyBatisSystemException: nested exception is org.apache.ibatis.exceptions.PersistenceException: 69 | ### Error querying database. Cause: org.springframework.jdbc.CannotGetJdbcConnectionException: Failed to obtain JDBC Connection; nested exception is java.sql.SQLException: Access denied for user 'mystep'@'localhost' (using password: YES) 70 | ### The error may exist in com/chengzzz/stepservice/dao/UpstepsDao.java (best guess) 71 | ### The error may involve com.chengzzz.stepservice.dao.UpstepsDao.selectList 72 | ### The error occurred while executing a query 73 | ### Cause: org.springframework.jdbc.CannotGetJdbcConnectionException: Failed to obtain JDBC Connection; nested exception is java.sql.SQLException: Access denied for user 'mystep'@'localhost' (using password: YES) 74 | at org.mybatis.spring.MyBatisExceptionTranslator.translateExceptionIfPossible(MyBatisExceptionTranslator.java:92) 75 | at org.mybatis.spring.SqlSessionTemplate$SqlSessionInterceptor.invoke(SqlSessionTemplate.java:440) 76 | at com.sun.proxy.$Proxy61.selectList(Unknown Source) 77 | at org.mybatis.spring.SqlSessionTemplate.selectList(SqlSessionTemplate.java:223) 78 | at com.baomidou.mybatisplus.core.override.MybatisMapperMethod.executeForMany(MybatisMapperMethod.java:177) 79 | at com.baomidou.mybatisplus.core.override.MybatisMapperMethod.execute(MybatisMapperMethod.java:78) 80 | at com.baomidou.mybatisplus.core.override.MybatisMapperProxy.invoke(MybatisMapperProxy.java:96) 81 | at com.sun.proxy.$Proxy65.selectList(Unknown Source) 82 | at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 83 | at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) 84 | at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) 85 | at java.base/java.lang.reflect.Method.invoke(Method.java:566) 86 | at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:344) 87 | at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:198) 88 | at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:163) 89 | at org.springframework.dao.support.PersistenceExceptionTranslationInterceptor.invoke(PersistenceExceptionTranslationInterceptor.java:139) 90 | at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186) 91 | at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:212) 92 | at com.sun.proxy.$Proxy66.selectList(Unknown Source) 93 | at com.chengzzz.stepservice.schedu.UpdateSchedu.schedu(UpdateSchedu.java:38) 94 | at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 95 | at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) 96 | at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) 97 | at java.base/java.lang.reflect.Method.invoke(Method.java:566) 98 | at org.springframework.scheduling.support.ScheduledMethodRunnable.run(ScheduledMethodRunnable.java:84) 99 | at org.springframework.scheduling.support.DelegatingErrorHandlingRunnable.run(DelegatingErrorHandlingRunnable.java:54) 100 | at org.springframework.scheduling.concurrent.ReschedulingRunnable.run(ReschedulingRunnable.java:93) 101 | at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515) 102 | at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264) 103 | at java.base/java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:304) 104 | at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) 105 | at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) 106 | at java.base/java.lang.Thread.run(Thread.java:834) 107 | Caused by: org.apache.ibatis.exceptions.PersistenceException: 108 | ### Error querying database. Cause: org.springframework.jdbc.CannotGetJdbcConnectionException: Failed to obtain JDBC Connection; nested exception is java.sql.SQLException: Access denied for user 'mystep'@'localhost' (using password: YES) 109 | ### The error may exist in com/chengzzz/stepservice/dao/UpstepsDao.java (best guess) 110 | ### The error may involve com.chengzzz.stepservice.dao.UpstepsDao.selectList 111 | ### The error occurred while executing a query 112 | ### Cause: org.springframework.jdbc.CannotGetJdbcConnectionException: Failed to obtain JDBC Connection; nested exception is java.sql.SQLException: Access denied for user 'mystep'@'localhost' (using password: YES) 113 | at org.apache.ibatis.exceptions.ExceptionFactory.wrapException(ExceptionFactory.java:30) 114 | at org.apache.ibatis.session.defaults.DefaultSqlSession.selectList(DefaultSqlSession.java:149) 115 | at org.apache.ibatis.session.defaults.DefaultSqlSession.selectList(DefaultSqlSession.java:140) 116 | at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 117 | at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) 118 | at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) 119 | at java.base/java.lang.reflect.Method.invoke(Method.java:566) 120 | at org.mybatis.spring.SqlSessionTemplate$SqlSessionInterceptor.invoke(SqlSessionTemplate.java:426) 121 | ... 31 common frames omitted 122 | Caused by: org.springframework.jdbc.CannotGetJdbcConnectionException: Failed to obtain JDBC Connection; nested exception is java.sql.SQLException: Access denied for user 'mystep'@'localhost' (using password: YES) 123 | at org.springframework.jdbc.datasource.DataSourceUtils.getConnection(DataSourceUtils.java:82) 124 | at org.mybatis.spring.transaction.SpringManagedTransaction.openConnection(SpringManagedTransaction.java:80) 125 | at org.mybatis.spring.transaction.SpringManagedTransaction.getConnection(SpringManagedTransaction.java:67) 126 | at org.apache.ibatis.executor.BaseExecutor.getConnection(BaseExecutor.java:336) 127 | at com.baomidou.mybatisplus.core.executor.MybatisSimpleExecutor.prepareStatement(MybatisSimpleExecutor.java:91) 128 | at com.baomidou.mybatisplus.core.executor.MybatisSimpleExecutor.doQuery(MybatisSimpleExecutor.java:66) 129 | at org.apache.ibatis.executor.BaseExecutor.queryFromDatabase(BaseExecutor.java:324) 130 | at org.apache.ibatis.executor.BaseExecutor.query(BaseExecutor.java:156) 131 | at com.baomidou.mybatisplus.core.executor.MybatisCachingExecutor.query(MybatisCachingExecutor.java:163) 132 | at com.baomidou.mybatisplus.core.executor.MybatisCachingExecutor.query(MybatisCachingExecutor.java:90) 133 | at org.apache.ibatis.session.defaults.DefaultSqlSession.selectList(DefaultSqlSession.java:147) 134 | ... 37 common frames omitted 135 | Caused by: java.sql.SQLException: Access denied for user 'mystep'@'localhost' (using password: YES) 136 | at com.mysql.cj.jdbc.exceptions.SQLError.createSQLException(SQLError.java:129) 137 | at com.mysql.cj.jdbc.exceptions.SQLError.createSQLException(SQLError.java:97) 138 | at com.mysql.cj.jdbc.exceptions.SQLExceptionsMapping.translateException(SQLExceptionsMapping.java:122) 139 | at com.mysql.cj.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:836) 140 | at com.mysql.cj.jdbc.ConnectionImpl.(ConnectionImpl.java:456) 141 | at com.mysql.cj.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:246) 142 | at com.mysql.cj.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:197) 143 | at com.zaxxer.hikari.util.DriverDataSource.getConnection(DriverDataSource.java:138) 144 | at com.zaxxer.hikari.pool.PoolBase.newConnection(PoolBase.java:358) 145 | at com.zaxxer.hikari.pool.PoolBase.newPoolEntry(PoolBase.java:206) 146 | at com.zaxxer.hikari.pool.HikariPool.createPoolEntry(HikariPool.java:477) 147 | at com.zaxxer.hikari.pool.HikariPool.checkFailFast(HikariPool.java:560) 148 | at com.zaxxer.hikari.pool.HikariPool.(HikariPool.java:115) 149 | at com.zaxxer.hikari.HikariDataSource.getConnection(HikariDataSource.java:112) 150 | at org.springframework.jdbc.datasource.DataSourceUtils.fetchConnection(DataSourceUtils.java:158) 151 | at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:116) 152 | at org.springframework.jdbc.datasource.DataSourceUtils.getConnection(DataSourceUtils.java:79) 153 | ... 47 common frames omitted 154 | -------------------------------------------------------------------------------- /logs/blog-info.log: -------------------------------------------------------------------------------- 1 | 2020-08-23 12:13:43.195 INFO [restartedMain]com.chengzzz.stepservice.StepserviceApplication.logStarting:55 -Starting StepserviceApplication on DESKTOP-9S7FNJU with PID 9844 (G:\stepservice\target\classes started by Yet in G:\stepservice) 2 | 2020-08-23 12:13:43.211 INFO [restartedMain]com.chengzzz.stepservice.StepserviceApplication.logStartupProfileInfo:651 -No active profile set, falling back to default profiles: default 3 | 2020-08-23 12:13:43.255 INFO [restartedMain]o.s.b.devtools.env.DevToolsPropertyDefaultsPostProcessor.logTo:225 -Devtools property defaults active! Set 'spring.devtools.add-properties' to 'false' to disable 4 | 2020-08-23 12:13:43.256 INFO [restartedMain]o.s.b.devtools.env.DevToolsPropertyDefaultsPostProcessor.logTo:225 -For additional web related logging consider setting the 'logging.level.web' property to 'DEBUG' 5 | 2020-08-23 12:13:44.595 INFO [restartedMain]o.s.boot.web.embedded.tomcat.TomcatWebServer.initialize:108 -Tomcat initialized with port(s): 8080 (http) 6 | 2020-08-23 12:13:44.602 INFO [restartedMain]org.apache.coyote.http11.Http11NioProtocol.log:173 -Initializing ProtocolHandler ["http-nio-8080"] 7 | 2020-08-23 12:13:44.603 INFO [restartedMain]org.apache.catalina.core.StandardService.log:173 -Starting service [Tomcat] 8 | 2020-08-23 12:13:44.603 INFO [restartedMain]org.apache.catalina.core.StandardEngine.log:173 -Starting Servlet engine: [Apache Tomcat/9.0.37] 9 | 2020-08-23 12:13:44.681 INFO [restartedMain]o.a.catalina.core.ContainerBase.[Tomcat].[localhost].[/].log:173 -Initializing Spring embedded WebApplicationContext 10 | 2020-08-23 12:13:44.681 INFO [restartedMain]o.s.b.w.s.context.ServletWebServerApplicationContext.prepareWebApplicationContext:285 -Root WebApplicationContext: initialization completed in 1424 ms 11 | 2020-08-23 12:13:46.224 INFO [restartedMain]o.s.scheduling.concurrent.ThreadPoolTaskExecutor.initialize:181 -Initializing ExecutorService 'applicationTaskExecutor' 12 | 2020-08-23 12:13:46.428 INFO [restartedMain]o.s.scheduling.concurrent.ThreadPoolTaskScheduler.initialize:181 -Initializing ExecutorService 'taskScheduler' 13 | 2020-08-23 12:13:46.452 INFO [restartedMain]o.s.boot.devtools.autoconfigure.OptionalLiveReloadServer.startServer:58 -LiveReload server is running on port 35729 14 | 2020-08-23 12:13:46.465 INFO [restartedMain]org.apache.coyote.http11.Http11NioProtocol.log:173 -Starting ProtocolHandler ["http-nio-8080"] 15 | 2020-08-23 12:13:46.482 INFO [restartedMain]o.s.boot.web.embedded.tomcat.TomcatWebServer.start:220 -Tomcat started on port(s): 8080 (http) with context path '' 16 | 2020-08-23 12:13:46.494 INFO [restartedMain]com.chengzzz.stepservice.StepserviceApplication.logStarted:61 -Started StepserviceApplication in 3.626 seconds (JVM running for 6.911) 17 | 2020-08-23 12:15:44.366 INFO [restartedMain]com.chengzzz.stepservice.StepserviceApplication.logStarting:55 -Starting StepserviceApplication on DESKTOP-9S7FNJU with PID 2928 (G:\stepservice\target\classes started by Yet in G:\stepservice) 18 | 2020-08-23 12:15:44.369 INFO [restartedMain]com.chengzzz.stepservice.StepserviceApplication.logStartupProfileInfo:651 -No active profile set, falling back to default profiles: default 19 | 2020-08-23 12:15:44.411 INFO [restartedMain]o.s.b.devtools.env.DevToolsPropertyDefaultsPostProcessor.logTo:225 -Devtools property defaults active! Set 'spring.devtools.add-properties' to 'false' to disable 20 | 2020-08-23 12:15:44.411 INFO [restartedMain]o.s.b.devtools.env.DevToolsPropertyDefaultsPostProcessor.logTo:225 -For additional web related logging consider setting the 'logging.level.web' property to 'DEBUG' 21 | 2020-08-23 12:15:45.141 INFO [restartedMain]o.s.boot.web.embedded.tomcat.TomcatWebServer.initialize:108 -Tomcat initialized with port(s): 8080 (http) 22 | 2020-08-23 12:15:45.147 INFO [restartedMain]org.apache.coyote.http11.Http11NioProtocol.log:173 -Initializing ProtocolHandler ["http-nio-8080"] 23 | 2020-08-23 12:15:45.147 INFO [restartedMain]org.apache.catalina.core.StandardService.log:173 -Starting service [Tomcat] 24 | 2020-08-23 12:15:45.147 INFO [restartedMain]org.apache.catalina.core.StandardEngine.log:173 -Starting Servlet engine: [Apache Tomcat/9.0.37] 25 | 2020-08-23 12:15:45.221 INFO [restartedMain]o.a.catalina.core.ContainerBase.[Tomcat].[localhost].[/].log:173 -Initializing Spring embedded WebApplicationContext 26 | 2020-08-23 12:15:45.221 INFO [restartedMain]o.s.b.w.s.context.ServletWebServerApplicationContext.prepareWebApplicationContext:285 -Root WebApplicationContext: initialization completed in 810 ms 27 | 2020-08-23 12:15:46.352 INFO [restartedMain]o.s.scheduling.concurrent.ThreadPoolTaskExecutor.initialize:181 -Initializing ExecutorService 'applicationTaskExecutor' 28 | 2020-08-23 12:15:46.495 INFO [restartedMain]o.s.scheduling.concurrent.ThreadPoolTaskScheduler.initialize:181 -Initializing ExecutorService 'taskScheduler' 29 | 2020-08-23 12:15:46.519 INFO [restartedMain]o.s.boot.devtools.autoconfigure.OptionalLiveReloadServer.startServer:58 -LiveReload server is running on port 35729 30 | 2020-08-23 12:15:46.533 INFO [restartedMain]org.apache.coyote.http11.Http11NioProtocol.log:173 -Starting ProtocolHandler ["http-nio-8080"] 31 | 2020-08-23 12:15:46.549 INFO [restartedMain]o.s.boot.web.embedded.tomcat.TomcatWebServer.start:220 -Tomcat started on port(s): 8080 (http) with context path '' 32 | 2020-08-23 12:15:46.561 INFO [restartedMain]com.chengzzz.stepservice.StepserviceApplication.logStarted:61 -Started StepserviceApplication in 2.483 seconds (JVM running for 3.662) 33 | 2020-08-23 12:16:08.530 INFO [restartedMain]com.chengzzz.stepservice.StepserviceApplication.logStarting:55 -Starting StepserviceApplication on DESKTOP-9S7FNJU with PID 12528 (G:\stepservice\target\classes started by Yet in G:\stepservice) 34 | 2020-08-23 12:16:08.532 INFO [restartedMain]com.chengzzz.stepservice.StepserviceApplication.logStartupProfileInfo:651 -No active profile set, falling back to default profiles: default 35 | 2020-08-23 12:16:08.571 INFO [restartedMain]o.s.b.devtools.env.DevToolsPropertyDefaultsPostProcessor.logTo:225 -Devtools property defaults active! Set 'spring.devtools.add-properties' to 'false' to disable 36 | 2020-08-23 12:16:08.571 INFO [restartedMain]o.s.b.devtools.env.DevToolsPropertyDefaultsPostProcessor.logTo:225 -For additional web related logging consider setting the 'logging.level.web' property to 'DEBUG' 37 | 2020-08-23 12:16:09.346 INFO [restartedMain]o.s.boot.web.embedded.tomcat.TomcatWebServer.initialize:108 -Tomcat initialized with port(s): 8080 (http) 38 | 2020-08-23 12:16:09.352 INFO [restartedMain]org.apache.coyote.http11.Http11NioProtocol.log:173 -Initializing ProtocolHandler ["http-nio-8080"] 39 | 2020-08-23 12:16:09.352 INFO [restartedMain]org.apache.catalina.core.StandardService.log:173 -Starting service [Tomcat] 40 | 2020-08-23 12:16:09.352 INFO [restartedMain]org.apache.catalina.core.StandardEngine.log:173 -Starting Servlet engine: [Apache Tomcat/9.0.37] 41 | 2020-08-23 12:16:09.425 INFO [restartedMain]o.a.catalina.core.ContainerBase.[Tomcat].[localhost].[/].log:173 -Initializing Spring embedded WebApplicationContext 42 | 2020-08-23 12:16:09.425 INFO [restartedMain]o.s.b.w.s.context.ServletWebServerApplicationContext.prepareWebApplicationContext:285 -Root WebApplicationContext: initialization completed in 854 ms 43 | 2020-08-23 12:16:10.559 INFO [restartedMain]o.s.scheduling.concurrent.ThreadPoolTaskExecutor.initialize:181 -Initializing ExecutorService 'applicationTaskExecutor' 44 | 2020-08-23 12:16:10.709 INFO [restartedMain]o.s.scheduling.concurrent.ThreadPoolTaskScheduler.initialize:181 -Initializing ExecutorService 'taskScheduler' 45 | 2020-08-23 12:16:10.733 INFO [restartedMain]o.s.boot.devtools.autoconfigure.OptionalLiveReloadServer.startServer:58 -LiveReload server is running on port 35729 46 | 2020-08-23 12:16:10.747 INFO [restartedMain]org.apache.coyote.http11.Http11NioProtocol.log:173 -Starting ProtocolHandler ["http-nio-8080"] 47 | 2020-08-23 12:16:10.762 INFO [restartedMain]o.s.boot.web.embedded.tomcat.TomcatWebServer.start:220 -Tomcat started on port(s): 8080 (http) with context path '' 48 | 2020-08-23 12:16:10.774 INFO [restartedMain]com.chengzzz.stepservice.StepserviceApplication.logStarted:61 -Started StepserviceApplication in 2.53 seconds (JVM running for 3.815) 49 | 2020-08-23 12:17:00.044 INFO [scheduling-1]com.zaxxer.hikari.HikariDataSource.getConnection:110 -HikariPool-1 - Starting... 50 | 2020-08-23 12:17:36.035 INFO [restartedMain]com.chengzzz.stepservice.StepserviceApplication.logStarting:55 -Starting StepserviceApplication on DESKTOP-9S7FNJU with PID 3428 (G:\stepservice\target\classes started by Yet in G:\stepservice) 51 | 2020-08-23 12:17:36.037 INFO [restartedMain]com.chengzzz.stepservice.StepserviceApplication.logStartupProfileInfo:651 -No active profile set, falling back to default profiles: default 52 | 2020-08-23 12:17:36.072 INFO [restartedMain]o.s.b.devtools.env.DevToolsPropertyDefaultsPostProcessor.logTo:225 -Devtools property defaults active! Set 'spring.devtools.add-properties' to 'false' to disable 53 | 2020-08-23 12:17:36.072 INFO [restartedMain]o.s.b.devtools.env.DevToolsPropertyDefaultsPostProcessor.logTo:225 -For additional web related logging consider setting the 'logging.level.web' property to 'DEBUG' 54 | 2020-08-23 12:17:36.835 INFO [restartedMain]o.s.boot.web.embedded.tomcat.TomcatWebServer.initialize:108 -Tomcat initialized with port(s): 8080 (http) 55 | 2020-08-23 12:17:36.841 INFO [restartedMain]org.apache.coyote.http11.Http11NioProtocol.log:173 -Initializing ProtocolHandler ["http-nio-8080"] 56 | 2020-08-23 12:17:36.841 INFO [restartedMain]org.apache.catalina.core.StandardService.log:173 -Starting service [Tomcat] 57 | 2020-08-23 12:17:36.841 INFO [restartedMain]org.apache.catalina.core.StandardEngine.log:173 -Starting Servlet engine: [Apache Tomcat/9.0.37] 58 | 2020-08-23 12:17:36.917 INFO [restartedMain]o.a.catalina.core.ContainerBase.[Tomcat].[localhost].[/].log:173 -Initializing Spring embedded WebApplicationContext 59 | 2020-08-23 12:17:36.917 INFO [restartedMain]o.s.b.w.s.context.ServletWebServerApplicationContext.prepareWebApplicationContext:285 -Root WebApplicationContext: initialization completed in 845 ms 60 | 2020-08-23 12:17:38.495 INFO [restartedMain]o.s.scheduling.concurrent.ThreadPoolTaskExecutor.initialize:181 -Initializing ExecutorService 'applicationTaskExecutor' 61 | 2020-08-23 12:17:38.647 INFO [restartedMain]o.s.scheduling.concurrent.ThreadPoolTaskScheduler.initialize:181 -Initializing ExecutorService 'taskScheduler' 62 | 2020-08-23 12:17:38.673 INFO [restartedMain]o.s.boot.devtools.autoconfigure.OptionalLiveReloadServer.startServer:58 -LiveReload server is running on port 35729 63 | 2020-08-23 12:17:38.688 INFO [restartedMain]org.apache.coyote.http11.Http11NioProtocol.log:173 -Starting ProtocolHandler ["http-nio-8080"] 64 | 2020-08-23 12:17:38.705 INFO [restartedMain]o.s.boot.web.embedded.tomcat.TomcatWebServer.start:220 -Tomcat started on port(s): 8080 (http) with context path '' 65 | 2020-08-23 12:17:38.718 INFO [restartedMain]com.chengzzz.stepservice.StepserviceApplication.logStarted:61 -Started StepserviceApplication in 2.917 seconds (JVM running for 4.137) 66 | 2020-08-23 12:19:00.041 INFO [scheduling-1]com.zaxxer.hikari.HikariDataSource.getConnection:110 -HikariPool-1 - Starting... 67 | 2020-08-23 12:19:00.145 INFO [scheduling-1]com.zaxxer.hikari.HikariDataSource.getConnection:123 -HikariPool-1 - Start completed. 68 | 2020-08-23 12:21:26.207 INFO [restartedMain]com.chengzzz.stepservice.StepserviceApplication.logStarting:55 -Starting StepserviceApplication on DESKTOP-9S7FNJU with PID 3396 (G:\stepservice\target\classes started by Yet in G:\stepservice) 69 | 2020-08-23 12:21:26.210 INFO [restartedMain]com.chengzzz.stepservice.StepserviceApplication.logStartupProfileInfo:651 -No active profile set, falling back to default profiles: default 70 | 2020-08-23 12:21:26.250 INFO [restartedMain]o.s.b.devtools.env.DevToolsPropertyDefaultsPostProcessor.logTo:225 -Devtools property defaults active! Set 'spring.devtools.add-properties' to 'false' to disable 71 | 2020-08-23 12:21:26.251 INFO [restartedMain]o.s.b.devtools.env.DevToolsPropertyDefaultsPostProcessor.logTo:225 -For additional web related logging consider setting the 'logging.level.web' property to 'DEBUG' 72 | 2020-08-23 12:21:26.969 INFO [restartedMain]o.s.boot.web.embedded.tomcat.TomcatWebServer.initialize:108 -Tomcat initialized with port(s): 8080 (http) 73 | 2020-08-23 12:21:26.975 INFO [restartedMain]org.apache.coyote.http11.Http11NioProtocol.log:173 -Initializing ProtocolHandler ["http-nio-8080"] 74 | 2020-08-23 12:21:26.975 INFO [restartedMain]org.apache.catalina.core.StandardService.log:173 -Starting service [Tomcat] 75 | 2020-08-23 12:21:26.976 INFO [restartedMain]org.apache.catalina.core.StandardEngine.log:173 -Starting Servlet engine: [Apache Tomcat/9.0.37] 76 | 2020-08-23 12:21:27.046 INFO [restartedMain]o.a.catalina.core.ContainerBase.[Tomcat].[localhost].[/].log:173 -Initializing Spring embedded WebApplicationContext 77 | 2020-08-23 12:21:27.047 INFO [restartedMain]o.s.b.w.s.context.ServletWebServerApplicationContext.prepareWebApplicationContext:285 -Root WebApplicationContext: initialization completed in 796 ms 78 | 2020-08-23 12:21:28.172 INFO [restartedMain]o.s.scheduling.concurrent.ThreadPoolTaskExecutor.initialize:181 -Initializing ExecutorService 'applicationTaskExecutor' 79 | 2020-08-23 12:21:28.328 INFO [restartedMain]o.s.scheduling.concurrent.ThreadPoolTaskScheduler.initialize:181 -Initializing ExecutorService 'taskScheduler' 80 | 2020-08-23 12:21:28.353 INFO [restartedMain]o.s.boot.devtools.autoconfigure.OptionalLiveReloadServer.startServer:58 -LiveReload server is running on port 35729 81 | 2020-08-23 12:21:28.367 INFO [restartedMain]org.apache.coyote.http11.Http11NioProtocol.log:173 -Starting ProtocolHandler ["http-nio-8080"] 82 | 2020-08-23 12:21:28.384 INFO [restartedMain]o.s.boot.web.embedded.tomcat.TomcatWebServer.start:220 -Tomcat started on port(s): 8080 (http) with context path '' 83 | 2020-08-23 12:21:28.396 INFO [restartedMain]com.chengzzz.stepservice.StepserviceApplication.logStarted:61 -Started StepserviceApplication in 2.453 seconds (JVM running for 3.654) 84 | 2020-08-23 12:22:00.038 INFO [scheduling-1]com.zaxxer.hikari.HikariDataSource.getConnection:110 -HikariPool-1 - Starting... 85 | 2020-08-23 12:22:00.134 INFO [scheduling-1]com.zaxxer.hikari.HikariDataSource.getConnection:123 -HikariPool-1 - Start completed. 86 | 2020-08-23 12:22:38.063 INFO [restartedMain]com.chengzzz.stepservice.StepserviceApplication.logStarting:55 -Starting StepserviceApplication on DESKTOP-9S7FNJU with PID 7164 (G:\stepservice\target\classes started by Yet in G:\stepservice) 87 | 2020-08-23 12:22:38.066 INFO [restartedMain]com.chengzzz.stepservice.StepserviceApplication.logStartupProfileInfo:651 -No active profile set, falling back to default profiles: default 88 | 2020-08-23 12:22:38.110 INFO [restartedMain]o.s.b.devtools.env.DevToolsPropertyDefaultsPostProcessor.logTo:225 -Devtools property defaults active! Set 'spring.devtools.add-properties' to 'false' to disable 89 | 2020-08-23 12:22:38.111 INFO [restartedMain]o.s.b.devtools.env.DevToolsPropertyDefaultsPostProcessor.logTo:225 -For additional web related logging consider setting the 'logging.level.web' property to 'DEBUG' 90 | 2020-08-23 12:22:38.852 INFO [restartedMain]o.s.boot.web.embedded.tomcat.TomcatWebServer.initialize:108 -Tomcat initialized with port(s): 8080 (http) 91 | 2020-08-23 12:22:38.858 INFO [restartedMain]org.apache.coyote.http11.Http11NioProtocol.log:173 -Initializing ProtocolHandler ["http-nio-8080"] 92 | 2020-08-23 12:22:38.859 INFO [restartedMain]org.apache.catalina.core.StandardService.log:173 -Starting service [Tomcat] 93 | 2020-08-23 12:22:38.859 INFO [restartedMain]org.apache.catalina.core.StandardEngine.log:173 -Starting Servlet engine: [Apache Tomcat/9.0.37] 94 | 2020-08-23 12:22:38.934 INFO [restartedMain]o.a.catalina.core.ContainerBase.[Tomcat].[localhost].[/].log:173 -Initializing Spring embedded WebApplicationContext 95 | 2020-08-23 12:22:38.935 INFO [restartedMain]o.s.b.w.s.context.ServletWebServerApplicationContext.prepareWebApplicationContext:285 -Root WebApplicationContext: initialization completed in 824 ms 96 | 2020-08-23 12:22:40.085 INFO [restartedMain]o.s.scheduling.concurrent.ThreadPoolTaskExecutor.initialize:181 -Initializing ExecutorService 'applicationTaskExecutor' 97 | 2020-08-23 12:22:40.244 INFO [restartedMain]o.s.scheduling.concurrent.ThreadPoolTaskScheduler.initialize:181 -Initializing ExecutorService 'taskScheduler' 98 | 2020-08-23 12:22:40.271 INFO [restartedMain]o.s.boot.devtools.autoconfigure.OptionalLiveReloadServer.startServer:58 -LiveReload server is running on port 35729 99 | 2020-08-23 12:22:40.285 INFO [restartedMain]org.apache.coyote.http11.Http11NioProtocol.log:173 -Starting ProtocolHandler ["http-nio-8080"] 100 | 2020-08-23 12:22:40.301 INFO [restartedMain]o.s.boot.web.embedded.tomcat.TomcatWebServer.start:220 -Tomcat started on port(s): 8080 (http) with context path '' 101 | 2020-08-23 12:22:40.313 INFO [restartedMain]com.chengzzz.stepservice.StepserviceApplication.logStarted:61 -Started StepserviceApplication in 2.529 seconds (JVM running for 3.754) 102 | 2020-08-23 12:23:00.038 INFO [scheduling-1]com.zaxxer.hikari.HikariDataSource.getConnection:110 -HikariPool-1 - Starting... 103 | 2020-08-23 12:23:00.135 INFO [scheduling-1]com.zaxxer.hikari.HikariDataSource.getConnection:123 -HikariPool-1 - Start completed. 104 | 2020-08-23 12:23:00.720 INFO [OkHttp https://sports.lifesense.com/...]com.chengzzz.stepservice.service.impl.UpstepsServiceImpl.onResponse:234 -登录响应的cookie: accessToken=D2A6AFB93531605DBE56DC2EEE74C4C920C12BEB70905E231679F9C8BAE8F59DA1EED76ABF42E4A68B2C5AF8300778C1AEBE4FD717650D09F6A12F1CE78D6FDAEC61A23D25C1CEEC15F495A68A6B7725BC7309D6AA895BD8B6B93A54EF703F3E.8AC66C30EE994B368C49EA79F8A398372F3500E8EE4EEAF5353E163B9F86744F; Domain=.lifesense.com; Expires=Tue, 22-Sep-2020 04:23:01 GMT; Path=/ 105 | 2020-08-23 12:23:00.721 INFO [OkHttp https://sports.lifesense.com/...]com.chengzzz.stepservice.service.impl.UpstepsServiceImpl.onResponse:239 -登录结果的响应: {"code":200,"msg":"成功","data":{"exist":false,"hasMobile":false,"userId":"26993431","accessToken":"D2A6AFB93531605DBE56DC2EEE74C4C920C12BEB70905E231679F9C8BAE8F59DA1EED76ABF42E4A68B2C5AF8300778C1AEBE4FD717650D09F6A12F1CE78D6FDAEC61A23D25C1CEEC15F495A68A6B7725BC7309D6AA895BD8B6B93A54EF703F3E.8AC66C30EE994B368C49EA79F8A398372F3500E8EE4EEAF5353E163B9F86744F","expireAt":1600748581759,"userType":99,"needInfo":false}} 106 | 2020-08-23 12:23:00.724 INFO [OkHttp https://sports.lifesense.com/...]com.chengzzz.stepservice.service.impl.UpstepsServiceImpl.updateCallback:76 -Callback中的MsgaccessToken=D2A6AFB93531605DBE56DC2EEE74C4C920C12BEB70905E231679F9C8BAE8F59DA1EED76ABF42E4A68B2C5AF8300778C1AEBE4FD717650D09F6A12F1CE78D6FDAEC61A23D25C1CEEC15F495A68A6B7725BC7309D6AA895BD8B6B93A54EF703F3E.8AC66C30EE994B368C49EA79F8A398372F3500E8EE4EEAF5353E163B9F86744F; Domain=.lifesense.com; Expires=Tue, 22-Sep-2020 04:23:01 GMT; Path=/ 107 | 2020-08-23 12:23:00.730 INFO [OkHttp https://sports.lifesense.com/...]com.chengzzz.stepservice.schedu.UpdateSchedu.updateResult:46 -用户:18267231101 步数:1888 返回:accessToken=D2A6AFB93531605DBE56DC2EEE74C4C920C12BEB70905E231679F9C8BAE8F59DA1EED76ABF42E4A68B2C5AF8300778C1AEBE4FD717650D09F6A12F1CE78D6FDAEC61A23D25C1CEEC15F495A68A6B7725BC7309D6AA895BD8B6B93A54EF703F3E.8AC66C30EE994B368C49EA79F8A398372F3500E8EE4EEAF5353E163B9F86744F; Domain=.lifesense.com; Expires=Tue, 22-Sep-2020 04:23:01 GMT; Path=/ 108 | 2020-08-23 12:23:00.731 INFO [OkHttp https://sports.lifesense.com/...]com.chengzzz.stepservice.service.impl.UpstepsServiceImpl.postAsynModifyStepsHttp:118 -下面开始修改 109 | 2020-08-23 12:23:00.735 INFO [OkHttp https://sports.lifesense.com/...]com.chengzzz.stepservice.service.impl.UpstepsServiceImpl.postAsynModifyStepsHttp:144 -这是修改的测试时间: 2020-08-23 12:23:00 110 | 2020-08-23 12:23:00.735 INFO [OkHttp https://sports.lifesense.com/...]com.chengzzz.stepservice.service.impl.UpstepsServiceImpl.postAsynModifyStepsHttp:145 -这是修改的测试时间戳: 1598156580735 111 | 2020-08-23 12:23:00.735 INFO [OkHttp https://sports.lifesense.com/...]com.chengzzz.stepservice.service.impl.UpstepsServiceImpl.postAsynModifyStepsHttp:146 -这是修改的距离: 629 112 | 2020-08-23 12:23:00.737 INFO [OkHttp https://sports.lifesense.com/...]com.chengzzz.stepservice.service.impl.UpstepsServiceImpl.postAsynModifyStepsHttp:152 -这是修改的json请求体: {"list":[{"active":1,"calories":472,"dataSource":2,"deviceId":"M_NULL","distance":629,"isUpload":0,"measurementTime":"2020-08-23 12:23:00","priority":0,"step":1888,"type":2,"updated":1598156580735,"userId":26993431,"DataSource":2,"exerciseTime":0}]} 113 | 2020-08-23 12:23:01.007 INFO [OkHttp https://sports.lifesense.com/...]com.chengzzz.stepservice.service.impl.UpstepsServiceImpl.onResponse:184 -提交更改步数后的响应 onResponse: {"code":200,"msg":"成功","data":{"pedometerRecordHourlyList":[{"id":"33e9bd46c95541c686745fa91cffdc57","userId":26993431,"deviceId":"M_NULL","measurementTime":"2020-08-23 00:00:00","step":"0,0,0,0,0,0,0,0,0,0,0,0,1888,0,0,0,0,0,0,0,0,0,0,0","calories":"0,0,0,0,0,0,0,0,0,0,0,0,472.00,0,0,0,0,0,0,0,0,0,0,0","distance":"0,0,0,0,0,0,0,0,0,0,0,0,629.00,0,0,0,0,0,0,0,0,0,0,0","dataSource":2,"created":"2020-08-23 12:23:02","active":0,"updated":1598156582041}]}} 114 | 2020-08-23 12:23:01.009 INFO [OkHttp https://sports.lifesense.com/...]com.chengzzz.stepservice.service.impl.UpstepsServiceImpl.updateCallback:76 -Callback中的Msg{"code":200,"msg":"成功","data":{"pedometerRecordHourlyList":[{"id":"33e9bd46c95541c686745fa91cffdc57","userId":26993431,"deviceId":"M_NULL","measurementTime":"2020-08-23 00:00:00","step":"0,0,0,0,0,0,0,0,0,0,0,0,1888,0,0,0,0,0,0,0,0,0,0,0","calories":"0,0,0,0,0,0,0,0,0,0,0,0,472.00,0,0,0,0,0,0,0,0,0,0,0","distance":"0,0,0,0,0,0,0,0,0,0,0,0,629.00,0,0,0,0,0,0,0,0,0,0,0","dataSource":2,"created":"2020-08-23 12:23:02","active":0,"updated":1598156582041}]}} 115 | 2020-08-23 12:23:01.009 INFO [OkHttp https://sports.lifesense.com/...]com.chengzzz.stepservice.schedu.UpdateSchedu.updateResult:46 -用户:18267231101 步数:1888 返回:{"code":200,"msg":"成功","data":{"pedometerRecordHourlyList":[{"id":"33e9bd46c95541c686745fa91cffdc57","userId":26993431,"deviceId":"M_NULL","measurementTime":"2020-08-23 00:00:00","step":"0,0,0,0,0,0,0,0,0,0,0,0,1888,0,0,0,0,0,0,0,0,0,0,0","calories":"0,0,0,0,0,0,0,0,0,0,0,0,472.00,0,0,0,0,0,0,0,0,0,0,0","distance":"0,0,0,0,0,0,0,0,0,0,0,0,629.00,0,0,0,0,0,0,0,0,0,0,0","dataSource":2,"created":"2020-08-23 12:23:02","active":0,"updated":1598156582041}]}} 116 | -------------------------------------------------------------------------------- /logs/blog-warn.log: -------------------------------------------------------------------------------- 1 | 2020-08-23 12:13:46.308 WARN [restartedMain]o.s.b.a.t.ThymeleafAutoConfiguration$DefaultTemplateResolverConfiguration.checkTemplateLocationExists:106 -Cannot find template location: classpath:/templates/ (please add some templates or check your Thymeleaf configuration) 2 | 2020-08-23 12:15:46.432 WARN [restartedMain]o.s.b.a.t.ThymeleafAutoConfiguration$DefaultTemplateResolverConfiguration.checkTemplateLocationExists:106 -Cannot find template location: classpath:/templates/ (please add some templates or check your Thymeleaf configuration) 3 | 2020-08-23 12:16:10.646 WARN [restartedMain]o.s.b.a.t.ThymeleafAutoConfiguration$DefaultTemplateResolverConfiguration.checkTemplateLocationExists:106 -Cannot find template location: classpath:/templates/ (please add some templates or check your Thymeleaf configuration) 4 | 2020-08-23 12:17:38.578 WARN [restartedMain]o.s.b.a.t.ThymeleafAutoConfiguration$DefaultTemplateResolverConfiguration.checkTemplateLocationExists:106 -Cannot find template location: classpath:/templates/ (please add some templates or check your Thymeleaf configuration) 5 | 2020-08-23 12:21:28.255 WARN [restartedMain]o.s.b.a.t.ThymeleafAutoConfiguration$DefaultTemplateResolverConfiguration.checkTemplateLocationExists:106 -Cannot find template location: classpath:/templates/ (please add some templates or check your Thymeleaf configuration) 6 | 2020-08-23 12:22:40.174 WARN [restartedMain]o.s.b.a.t.ThymeleafAutoConfiguration$DefaultTemplateResolverConfiguration.checkTemplateLocationExists:106 -Cannot find template location: classpath:/templates/ (please add some templates or check your Thymeleaf configuration) 7 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /pom.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 4.0.0 5 | 6 | org.springframework.boot 7 | spring-boot-starter-parent 8 | 2.3.3.RELEASE 9 | 10 | 11 | com.chengzzz 12 | stepservice 13 | 0.0.1-SNAPSHOT 14 | stepservice 15 | Demo project for Spring Boot 16 | 17 | 18 | 11 19 | 20 | 21 | 22 | 23 | org.springframework.boot 24 | spring-boot-starter-thymeleaf 25 | 26 | 27 | org.springframework.boot 28 | spring-boot-starter-web 29 | 30 | 31 | 32 | org.springframework.boot 33 | spring-boot-devtools 34 | runtime 35 | true 36 | 37 | 38 | mysql 39 | mysql-connector-java 40 | runtime 41 | 42 | 43 | org.projectlombok 44 | lombok 45 | true 46 | 47 | 48 | org.springframework.boot 49 | spring-boot-starter-test 50 | test 51 | 52 | 53 | org.junit.vintage 54 | junit-vintage-engine 55 | 56 | 57 | 58 | 59 | 60 | 61 | com.alibaba 62 | druid 63 | 1.1.23 64 | 65 | 66 | com.baomidou 67 | mybatis-plus-boot-starter 68 | 3.3.2 69 | 70 | 71 | com.google.code.gson 72 | gson 73 | 74 | 75 | com.squareup.okhttp3 76 | okhttp 77 | 3.6.0 78 | 79 | 80 | com.vaadin.external.google 81 | android-json 82 | 0.0.20131108.vaadin1 83 | compile 84 | 85 | 86 | 87 | 88 | 89 | 90 | org.springframework.boot 91 | spring-boot-maven-plugin 92 | 93 | 94 | 95 | org.apache.maven.plugins 96 | maven-surefire-plugin 97 | 98 | true 99 | 100 | 101 | org.apache.maven.plugins 102 | maven-surefire-plugin 103 | 104 | true 105 | 106 | 107 | 108 | 109 | 110 | 111 | 112 | -------------------------------------------------------------------------------- /src/main/java/com/chengzzz/stepservice/StepserviceApplication.java: -------------------------------------------------------------------------------- 1 | package com.chengzzz.stepservice; 2 | 3 | import org.mybatis.spring.annotation.MapperScan; 4 | import org.springframework.boot.SpringApplication; 5 | import org.springframework.boot.autoconfigure.SpringBootApplication; 6 | import org.springframework.scheduling.annotation.EnableScheduling; 7 | 8 | @SpringBootApplication 9 | @MapperScan("com.chengzzz.stepservice.dao") 10 | @EnableScheduling 11 | public class StepserviceApplication { 12 | 13 | public static void main(String[] args) { 14 | SpringApplication.run(StepserviceApplication.class, args); 15 | } 16 | 17 | } 18 | -------------------------------------------------------------------------------- /src/main/java/com/chengzzz/stepservice/callback/UpdateCallBack.java: -------------------------------------------------------------------------------- 1 | package com.chengzzz.stepservice.callback; 2 | 3 | /** 4 | *

5 | * 提交回调 6 | *

7 | * 8 | * @author 等什么柠檬君 9 | * @since 2020/8/21 10 | */ 11 | public interface UpdateCallBack { 12 | void updateCallback(String msg); 13 | } 14 | -------------------------------------------------------------------------------- /src/main/java/com/chengzzz/stepservice/callback/mModifyCallback.java: -------------------------------------------------------------------------------- 1 | package com.chengzzz.stepservice.callback; 2 | 3 | /** 4 | *

5 | * 修改成功的回调 6 | *

7 | * 8 | * @author 等什么柠檬君 9 | * @since 2020/8/21 10 | */ 11 | public interface mModifyCallback { 12 | void onModify(String msg); 13 | } 14 | -------------------------------------------------------------------------------- /src/main/java/com/chengzzz/stepservice/callback/resultCallBack.java: -------------------------------------------------------------------------------- 1 | package com.chengzzz.stepservice.callback; 2 | 3 | /** 4 | *

5 | * 结果展示回调 6 | *

7 | * 8 | * @author 等什么柠檬君 9 | * @since 2020/8/22 10 | */ 11 | public interface resultCallBack { 12 | void updateResult(String msg); 13 | } 14 | -------------------------------------------------------------------------------- /src/main/java/com/chengzzz/stepservice/controller/UpstepsController.java: -------------------------------------------------------------------------------- 1 | package com.chengzzz.stepservice.controller; 2 | 3 | 4 | import com.baomidou.mybatisplus.core.conditions.Wrapper; 5 | import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; 6 | import com.baomidou.mybatisplus.extension.api.ApiController; 7 | import com.baomidou.mybatisplus.extension.api.R; 8 | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; 9 | import com.chengzzz.stepservice.dao.UpstepsDao; 10 | import com.chengzzz.stepservice.entity.Upsteps; 11 | import com.chengzzz.stepservice.service.UpstepsService; 12 | import org.springframework.beans.factory.annotation.Autowired; 13 | import org.springframework.web.bind.annotation.*; 14 | 15 | import javax.annotation.Resource; 16 | import java.io.Serializable; 17 | import java.util.List; 18 | 19 | /** 20 | * (Upsteps)表控制层 21 | * 22 | * @author 等什么柠檬君 23 | * @since 2020-08-21 20:56:47 24 | */ 25 | @RestController 26 | @RequestMapping("upsteps") 27 | public class UpstepsController extends ApiController { 28 | /** 29 | * 服务对象 30 | */ 31 | @Resource 32 | private UpstepsService upstepsService; 33 | 34 | @Autowired 35 | private UpstepsDao upstepsDao; 36 | 37 | /** 38 | * 分页查询所有数据 39 | * 40 | * @param page 分页对象 41 | * @param upsteps 查询实体 42 | * @return 所有数据 43 | */ 44 | @GetMapping 45 | public R selectAll(Page page, Upsteps upsteps) { 46 | return success(this.upstepsService.page(page, new QueryWrapper<>(upsteps))); 47 | } 48 | 49 | /** 50 | * 通过主键查询单条数据 51 | * 52 | * @param id 主键 53 | * @return 单条数据 54 | */ 55 | @GetMapping("{id}") 56 | public R selectOne(@PathVariable Serializable id) { 57 | return success(this.upstepsService.getById(id)); 58 | } 59 | /** 60 | * 61 | * @param phone phone 62 | * @return java.util.List 63 | * @author 等什么柠檬君 64 | * @since 2020/8/21 65 | * @description 66 | */ 67 | @GetMapping("{phone}") 68 | public List selectByPhone(String phone) { 69 | QueryWrapper wrapper=new QueryWrapper<>(); 70 | wrapper.eq("phone",phone); 71 | return upstepsDao.selectList(wrapper); 72 | } 73 | 74 | /** 75 | * 新增数据 76 | * 77 | * @param upsteps 实体对象 78 | * @return 新增结果 79 | */ 80 | @PostMapping 81 | public R insert(@RequestBody Upsteps upsteps) { 82 | return success(this.upstepsService.save(upsteps)); 83 | } 84 | 85 | /** 86 | * 修改数据 87 | * 88 | * @param upsteps 实体对象 89 | * @return 修改结果 90 | */ 91 | @PutMapping 92 | public R update(@RequestBody Upsteps upsteps) { 93 | return success(this.upstepsService.updateById(upsteps)); 94 | } 95 | 96 | /** 97 | * 删除数据 98 | * 99 | * @param idList 主键结合 100 | * @return 删除结果 101 | */ 102 | @DeleteMapping 103 | public R delete(@RequestParam("idList") List idList) { 104 | return success(this.upstepsService.removeByIds(idList)); 105 | } 106 | } -------------------------------------------------------------------------------- /src/main/java/com/chengzzz/stepservice/controller/ViewController.java: -------------------------------------------------------------------------------- 1 | package com.chengzzz.stepservice.controller; 2 | 3 | 4 | import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; 5 | import com.chengzzz.stepservice.callback.resultCallBack; 6 | import com.chengzzz.stepservice.dao.UpstepsDao; 7 | import com.chengzzz.stepservice.entity.Upsteps; 8 | import com.chengzzz.stepservice.service.UpstepsService; 9 | import lombok.extern.slf4j.Slf4j; 10 | import org.slf4j.Logger; 11 | import org.slf4j.LoggerFactory; 12 | import org.springframework.beans.factory.annotation.Autowired; 13 | import org.springframework.stereotype.Controller; 14 | import org.springframework.ui.Model; 15 | import org.springframework.web.bind.annotation.*; 16 | 17 | import java.util.ArrayList; 18 | import java.util.List; 19 | 20 | import static java.lang.Thread.sleep; 21 | 22 | /** 23 | *

24 | * ViewController 25 | *

26 | * 27 | * @author 等什么柠檬君 28 | * @since 2020/8/10 29 | */ 30 | 31 | @RestController 32 | @Slf4j 33 | @RequestMapping(value="Service") 34 | public class ViewController { 35 | private final Logger logger = LoggerFactory.getLogger(this.getClass()); 36 | static String tx = "手机号非法"; 37 | @Autowired 38 | private UpstepsService upstepsService; 39 | @Autowired 40 | private UpstepsDao upstepsDao; 41 | @RequestMapping(value="updateStep",method = RequestMethod.GET) 42 | public String login(@RequestParam("phone") String phone, @RequestParam("password")String password,@RequestParam("steps")String step,@RequestParam("flag")int flag, Model model){ 43 | 44 | 45 | if (phone.length() != 11){ 46 | return "{\"code\":510,\"msg\":\"手机号长度错误\"}"; 47 | }else { 48 | if (flag==1) { 49 | Upsteps upsteps =new Upsteps(phone,password,step,flag,""); 50 | upstepsService.updateOrInsert(upsteps); 51 | return "{\"code\":508,\"msg\":\"已加入数据库进行定时任务\"}"; 52 | } else if (flag==0){ 53 | upstepsService.updateStep(phone, password, step,flag, new resultCallBack() { 54 | @Override 55 | public void updateResult(String msg) { 56 | getMsg(msg); 57 | logger.info("控制器返回的msg"+msg); 58 | } 59 | }); 60 | 61 | try { 62 | sleep(1000); 63 | } catch (InterruptedException e) { 64 | e.printStackTrace(); 65 | } 66 | return tx; 67 | }else { 68 | return "{\"code\":509,\"msg\":\"参数错误\"}"; 69 | } 70 | 71 | 72 | } 73 | 74 | 75 | } 76 | public static void getMsg(String msg){ 77 | tx=msg; 78 | } 79 | } 80 | 81 | 82 | -------------------------------------------------------------------------------- /src/main/java/com/chengzzz/stepservice/dao/UpstepsDao.java: -------------------------------------------------------------------------------- 1 | package com.chengzzz.stepservice.dao; 2 | 3 | import com.baomidou.mybatisplus.core.mapper.BaseMapper; 4 | import com.chengzzz.stepservice.entity.Upsteps; 5 | import org.springframework.stereotype.Repository; 6 | 7 | /** 8 | * (Upsteps)表数据库访问层 9 | * 10 | * @author 等什么柠檬君 11 | * @since 2020-08-21 20:56:46 12 | */ 13 | @Repository 14 | public interface UpstepsDao extends BaseMapper { 15 | 16 | } -------------------------------------------------------------------------------- /src/main/java/com/chengzzz/stepservice/entity/Data.java: -------------------------------------------------------------------------------- 1 | package com.chengzzz.stepservice.entity; 2 | 3 | public class Data { 4 | private String exist; 5 | private String hasMobile; 6 | private String userId; 7 | private String accessToken; 8 | private String expireAt; 9 | private String userType; 10 | private String needInfo; 11 | 12 | public String getExist() { 13 | return exist; 14 | } 15 | 16 | public void setExist(String exist) { 17 | this.exist = exist; 18 | } 19 | 20 | public String getHasMobile() { 21 | return hasMobile; 22 | } 23 | 24 | public void setHasMobile(String hasMobile) { 25 | this.hasMobile = hasMobile; 26 | } 27 | 28 | public String getUserId() { 29 | return userId; 30 | } 31 | 32 | public void setUserId(String userId) { 33 | this.userId = userId; 34 | } 35 | 36 | public String getAccessToken() { 37 | return accessToken; 38 | } 39 | 40 | public void setAccessToken(String accessToken) { 41 | this.accessToken = accessToken; 42 | } 43 | 44 | public String getExpireAt() { 45 | return expireAt; 46 | } 47 | 48 | public void setExpireAt(String expireAt) { 49 | this.expireAt = expireAt; 50 | } 51 | 52 | public String getUserType() { 53 | return userType; 54 | } 55 | 56 | public void setUserType(String userType) { 57 | this.userType = userType; 58 | } 59 | 60 | public String getNeedInfo() { 61 | return needInfo; 62 | } 63 | 64 | public void setNeedInfo(String needInfo) { 65 | this.needInfo = needInfo; 66 | } 67 | } 68 | -------------------------------------------------------------------------------- /src/main/java/com/chengzzz/stepservice/entity/Modifydata.java: -------------------------------------------------------------------------------- 1 | package com.chengzzz.stepservice.entity; 2 | 3 | import java.util.List; 4 | 5 | public class Modifydata { 6 | private List list; 7 | 8 | public List getList() { 9 | return list; 10 | } 11 | 12 | public void setList(List list) { 13 | this.list = list; 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /src/main/java/com/chengzzz/stepservice/entity/PostData.java: -------------------------------------------------------------------------------- 1 | package com.chengzzz.stepservice.entity; 2 | 3 | import lombok.AllArgsConstructor; 4 | import lombok.Data; 5 | import lombok.NoArgsConstructor; 6 | 7 | /** 8 | *

9 | * 提交的请求体 10 | *

11 | * 12 | * @author 等什么柠檬君 13 | * @since 2020/8/21 14 | */ 15 | 16 | public class PostData { 17 | String password; 18 | String clientId ="8e844e28db7245eb81823132464835eb"; 19 | Integer appType = 6; 20 | String loginName; 21 | Integer roleType = 0; 22 | 23 | public PostData( String loginName,String password) { 24 | this.password = password; 25 | this.loginName = loginName; 26 | } 27 | 28 | 29 | } 30 | -------------------------------------------------------------------------------- /src/main/java/com/chengzzz/stepservice/entity/Upsteps.java: -------------------------------------------------------------------------------- 1 | package com.chengzzz.stepservice.entity; 2 | 3 | import com.baomidou.mybatisplus.annotation.IdType; 4 | import com.baomidou.mybatisplus.annotation.TableId; 5 | import com.baomidou.mybatisplus.annotation.TableName; 6 | import com.baomidou.mybatisplus.extension.activerecord.Model; 7 | 8 | import java.io.Serializable; 9 | 10 | /** 11 | * (Upsteps)表实体类 12 | * 13 | * @author 等什么柠檬君 14 | * @since 2020-08-21 20:56:44 15 | */ 16 | @SuppressWarnings("serial") 17 | @TableName("upsteps") 18 | public class Upsteps extends Model { 19 | @TableId(type = IdType.AUTO) 20 | private Integer id; 21 | 22 | private String phone; 23 | 24 | private String password; 25 | 26 | private String steps; 27 | 28 | private Integer flag; 29 | 30 | private String msg; 31 | 32 | public String getMsg() { 33 | return msg; 34 | } 35 | 36 | public void setMsg(String msg) { 37 | this.msg = msg; 38 | } 39 | 40 | public Integer getId() { 41 | return id; 42 | } 43 | 44 | public void setId(Integer id) { 45 | this.id = id; 46 | } 47 | 48 | public Upsteps(Integer id, String phone, String password, String steps, Integer flag, String msg) { 49 | this.id = id; 50 | this.phone = phone; 51 | this.password = password; 52 | this.steps = steps; 53 | this.flag = flag; 54 | this.msg = msg; 55 | } 56 | 57 | public Upsteps(String phone, String password, String steps, Integer flag, String msg) { 58 | this.phone = phone; 59 | this.password = password; 60 | this.steps = steps; 61 | this.flag = flag; 62 | this.msg = msg; 63 | } 64 | 65 | public Upsteps(String phone, String password, String steps, Integer flag) { 66 | this.phone = phone; 67 | this.password = password; 68 | this.steps = steps; 69 | this.flag = flag; 70 | } 71 | 72 | public String getPhone() { 73 | return phone; 74 | } 75 | 76 | public void setPhone(String phone) { 77 | this.phone = phone; 78 | } 79 | 80 | public String getPassword() { 81 | return password; 82 | } 83 | 84 | public void setPassword(String password) { 85 | this.password = password; 86 | } 87 | 88 | public String getSteps() { 89 | return steps; 90 | } 91 | 92 | public void setSteps(String steps) { 93 | this.steps = steps; 94 | } 95 | 96 | public Integer getFlag() { 97 | return flag; 98 | } 99 | 100 | public void setFlag(Integer flag) { 101 | this.flag = flag; 102 | } 103 | 104 | /** 105 | * 获取主键值 106 | * 107 | * @return 主键值 108 | */ 109 | @Override 110 | protected Serializable pkVal() { 111 | return this.phone; 112 | } 113 | } -------------------------------------------------------------------------------- /src/main/java/com/chengzzz/stepservice/entity/UserInfo.java: -------------------------------------------------------------------------------- 1 | package com.chengzzz.stepservice.entity; 2 | 3 | public class UserInfo { 4 | private String code; 5 | private String msg; 6 | private Data data; 7 | 8 | public String getCode() { 9 | return code; 10 | } 11 | 12 | public void setCode(String code) { 13 | this.code = code; 14 | } 15 | 16 | public String getMsg() { 17 | return msg; 18 | } 19 | 20 | public void setMsg(String msg) { 21 | this.msg = msg; 22 | } 23 | 24 | public Data getData() { 25 | return data; 26 | } 27 | 28 | public void setData(Data data) { 29 | this.data = data; 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /src/main/java/com/chengzzz/stepservice/entity/listdata.java: -------------------------------------------------------------------------------- 1 | package com.chengzzz.stepservice.entity; 2 | 3 | public class listdata { 4 | private Integer active =1; 5 | private int calories; 6 | private Integer dataSource=2; 7 | private String deviceId="M_NULL"; 8 | private int distance; 9 | private Integer isUpload = 0; 10 | private String measurementTime; 11 | private Integer priority=0; 12 | private int step; 13 | private Integer type=2; 14 | private long updated; 15 | private int userId; 16 | private Integer DataSource = 2; 17 | private Integer exerciseTime=0; 18 | private String dayMeasurementTime; 19 | 20 | public String getDayMeasurementTime() { 21 | return dayMeasurementTime; 22 | } 23 | 24 | public void setDayMeasurementTime(String dayMeasurementTime) { 25 | this.dayMeasurementTime = dayMeasurementTime; 26 | } 27 | 28 | 29 | public Integer getActive() { 30 | return active; 31 | } 32 | 33 | public void setActive(Integer active) { 34 | this.active = active; 35 | } 36 | 37 | public int getCalories() { 38 | return calories; 39 | } 40 | 41 | public void setCalories(int calories) { 42 | this.calories = calories; 43 | } 44 | 45 | public Integer getDataSource() { 46 | return dataSource; 47 | } 48 | 49 | public void setDataSource(Integer dataSource) { 50 | this.dataSource = dataSource; 51 | } 52 | 53 | public Integer getExerciseTime() { 54 | return exerciseTime; 55 | } 56 | 57 | public void setExerciseTime(Integer exerciseTime) { 58 | this.exerciseTime = exerciseTime; 59 | } 60 | 61 | public String getDeviceId() { 62 | return deviceId; 63 | } 64 | 65 | public void setDeviceId(String deviceId) { 66 | this.deviceId = deviceId; 67 | } 68 | 69 | public int getDistance() { 70 | return distance; 71 | } 72 | 73 | public void setDistance(int distance) { 74 | this.distance = distance; 75 | } 76 | 77 | public Integer getIsUpload() { 78 | return isUpload; 79 | } 80 | 81 | public void setIsUpload(Integer isUpload) { 82 | this.isUpload = isUpload; 83 | } 84 | 85 | public String getMeasurementTime() { 86 | return measurementTime; 87 | } 88 | 89 | public void setMeasurementTime(String measurementTime) { 90 | this.measurementTime = measurementTime; 91 | } 92 | 93 | public Integer getPriority() { 94 | return priority; 95 | } 96 | 97 | public void setPriority(Integer priority) { 98 | this.priority = priority; 99 | } 100 | 101 | public int getStep() { 102 | return step; 103 | } 104 | 105 | public void setStep(int step) { 106 | this.step = step; 107 | } 108 | 109 | public Integer getType() { 110 | return type; 111 | } 112 | 113 | public void setType(Integer type) { 114 | this.type = type; 115 | } 116 | 117 | public long getUpdated() { 118 | return updated; 119 | } 120 | 121 | public void setUpdated(long updated) { 122 | this.updated = updated; 123 | } 124 | 125 | public int getUserId() { 126 | return userId; 127 | } 128 | 129 | public void setUserId(int userId) { 130 | this.userId = userId; 131 | } 132 | } 133 | -------------------------------------------------------------------------------- /src/main/java/com/chengzzz/stepservice/schedu/UpdateSchedu.java: -------------------------------------------------------------------------------- 1 | package com.chengzzz.stepservice.schedu; 2 | 3 | import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; 4 | import com.chengzzz.stepservice.callback.resultCallBack; 5 | import com.chengzzz.stepservice.dao.UpstepsDao; 6 | import com.chengzzz.stepservice.entity.Upsteps; 7 | import com.chengzzz.stepservice.service.UpstepsService; 8 | import org.slf4j.Logger; 9 | import org.slf4j.LoggerFactory; 10 | import org.springframework.beans.factory.annotation.Autowired; 11 | import org.springframework.scheduling.annotation.Scheduled; 12 | import org.springframework.stereotype.Component; 13 | 14 | import java.util.ArrayList; 15 | import java.util.List; 16 | 17 | /** 18 | *

19 | * 定时任务 20 | *

21 | * 22 | * @author 等什么柠檬君 23 | * @since 2020/8/22 24 | */ 25 | 26 | @Component 27 | public class UpdateSchedu { 28 | private final Logger logger = LoggerFactory.getLogger(this.getClass()); 29 | @Autowired 30 | private UpstepsDao upstepsDao; 31 | @Autowired 32 | private UpstepsService upstepsService; 33 | @Scheduled(cron = "0 0 12 * * ?") 34 | public void schedu() { 35 | QueryWrapper queryWrapper = new QueryWrapper<>(); 36 | queryWrapper.eq("flag",1); 37 | List userList = upstepsDao.selectList(queryWrapper); 38 | logger.info("时间到了"+userList); 39 | for (Upsteps single : userList){ 40 | upstepsService.updateStep(single.getPhone(), single.getPassword(), single.getSteps(), single.getFlag(), new resultCallBack() { 41 | @Override 42 | public void updateResult(String msg) { 43 | logger.info("用户:"+single.getPhone()+" 步数:"+single.getSteps()+" 返回:"+msg); 44 | } 45 | }); 46 | } 47 | 48 | } 49 | 50 | } 51 | 52 | 53 | -------------------------------------------------------------------------------- /src/main/java/com/chengzzz/stepservice/service/UpstepsService.java: -------------------------------------------------------------------------------- 1 | package com.chengzzz.stepservice.service; 2 | 3 | import com.baomidou.mybatisplus.extension.service.IService; 4 | import com.chengzzz.stepservice.callback.resultCallBack; 5 | import com.chengzzz.stepservice.entity.Upsteps; 6 | 7 | /** 8 | * (Upsteps)表服务接口 9 | * 10 | * @author 等什么柠檬君 11 | * @since 2020-08-21 20:56:46 12 | */ 13 | public interface UpstepsService extends IService { 14 | void updateStep(String phone, String pwd, String Steps, int flag, resultCallBack resultCallBack); 15 | 16 | void updateOrInsert(Upsteps upsteps); 17 | 18 | } -------------------------------------------------------------------------------- /src/main/java/com/chengzzz/stepservice/service/impl/UpstepsServiceImpl.java: -------------------------------------------------------------------------------- 1 | package com.chengzzz.stepservice.service.impl; 2 | 3 | import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; 4 | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; 5 | import com.chengzzz.stepservice.callback.UpdateCallBack; 6 | import com.chengzzz.stepservice.callback.mModifyCallback; 7 | import com.chengzzz.stepservice.callback.resultCallBack; 8 | import com.chengzzz.stepservice.dao.UpstepsDao; 9 | import com.chengzzz.stepservice.entity.*; 10 | import com.chengzzz.stepservice.service.UpstepsService; 11 | import com.google.gson.Gson; 12 | import okhttp3.*; 13 | import org.apache.ibatis.logging.Log; 14 | import org.json.JSONException; 15 | import org.json.JSONObject; 16 | import org.slf4j.Logger; 17 | import org.slf4j.LoggerFactory; 18 | import org.springframework.beans.factory.annotation.Autowired; 19 | import org.springframework.stereotype.Service; 20 | 21 | import java.io.IOException; 22 | import java.sql.Timestamp; 23 | import java.text.ParseException; 24 | import java.text.SimpleDateFormat; 25 | import java.util.ArrayList; 26 | import java.util.Date; 27 | import java.util.List; 28 | import java.util.concurrent.TimeUnit; 29 | 30 | import static com.chengzzz.stepservice.utils.utils.*; 31 | 32 | /** 33 | * (Upsteps)表服务实现类 34 | * 35 | * @author 等什么柠檬君 36 | * @since 2020-08-21 20:56:47 37 | */ 38 | @Service("upstepsService") 39 | public class UpstepsServiceImpl extends ServiceImpl implements UpstepsService { 40 | 41 | String cookie; 42 | private final Logger logger = LoggerFactory.getLogger(this.getClass()); 43 | @Autowired 44 | private UpstepsDao upstepsDao; 45 | /** 46 | * 47 | * @param phone phone 48 | * @param pwd pwd 49 | * @param Steps Steps 50 | * @param flag flag 51 | * @param resultCallBack resultCallBack 52 | * @return void 53 | * @author 等什么柠檬君 54 | * @since 2020/8/22 55 | * @description 56 | */ 57 | 58 | @Override 59 | public void updateStep(String phone, String pwd, String Steps, int flag, resultCallBack resultCallBack) { 60 | 61 | Upsteps upsteps =new Upsteps(phone,pwd,Steps,flag); 62 | QueryWrapper queryWrapper=new QueryWrapper<>(); 63 | queryWrapper.eq("phone",phone); 64 | Upsteps old = upstepsDao.selectOne(queryWrapper); 65 | if(null != old){ 66 | upsteps.setId(old.getId()); 67 | upstepsDao.updateById(upsteps); 68 | }else { 69 | upstepsDao.insert(upsteps); 70 | } 71 | LoginByPwd(new PostData(phone, md5(pwd)), Steps, new UpdateCallBack() { 72 | 73 | @Override 74 | public void updateCallback(String msg) { 75 | 76 | logger.info("Callback中的Msg"+msg); 77 | resultCallBack.updateResult(msg); 78 | 79 | 80 | } 81 | 82 | }); 83 | 84 | 85 | 86 | } 87 | 88 | 89 | 90 | 91 | /** 92 | * 93 | * @param upsteps upsteps 94 | * @return void 95 | * @author 等什么柠檬君 96 | * @since 2020/8/22 97 | * @description 98 | */ 99 | @Override 100 | public void updateOrInsert(Upsteps upsteps) { 101 | QueryWrapper queryWrapper=new QueryWrapper<>(); 102 | queryWrapper.eq("phone",upsteps.getPhone()); 103 | Upsteps old = upstepsDao.selectOne(queryWrapper); 104 | if(null != old){ 105 | upsteps.setId(old.getId()); 106 | upstepsDao.updateById(upsteps); 107 | }else { 108 | upstepsDao.insert(upsteps); 109 | } 110 | } 111 | 112 | public void postAsynModifyStepsHttp(String cookies,String steps, String userid,final mModifyCallback callback) throws ParseException { 113 | OkHttpClient okHttpClient = new OkHttpClient.Builder() 114 | .connectTimeout(10, TimeUnit.SECONDS) 115 | .writeTimeout(10,TimeUnit.SECONDS) 116 | .readTimeout(20, TimeUnit.SECONDS) 117 | .build(); 118 | logger.info("下面开始修改" ); 119 | int distance = Integer.parseInt(steps)/3; 120 | int calories = Integer.parseInt(steps) / 4; 121 | logger.debug( "这是修改的卡路里: "+calories ); 122 | logger.debug("这是修改的步数: "+steps); 123 | SimpleDateFormat df = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); 124 | SimpleDateFormat df2 = new SimpleDateFormat("yyyy-MM-dd"); 125 | int t= (int)System.currentTimeMillis(); 126 | Timestamp times = new Timestamp(new Date().getTime()); 127 | Date date = new Date(t); 128 | Gson gson = new Gson(); 129 | //使用Gson将对象转换为json字符串 130 | listdata listdata = new listdata(); 131 | 132 | Modifydata modifydata = new Modifydata(); 133 | listdata.setCalories(calories); 134 | listdata.setDistance(distance); 135 | listdata.setMeasurementTime( df.format(new Date())+""); 136 | listdata.setUpdated(System.currentTimeMillis()); 137 | listdata.setStep(Integer.parseInt(steps)); 138 | listdata.setUserId(Integer.parseInt(userid)); 139 | List data = new ArrayList(); 140 | data.add(listdata); 141 | modifydata.setList(data); 142 | 143 | 144 | logger.info("这是修改的测试时间: "+ df.format(new Date()) ); 145 | logger.info("这是修改的测试时间戳: "+System.currentTimeMillis() ); 146 | logger.info("这是修改的距离: "+distance ); 147 | 148 | 149 | logger.debug("从sp中取出的cookie: "+ cookies); 150 | String json = gson.toJson(modifydata); 151 | 152 | logger.info("这是修改的json请求体: "+json ); 153 | //MediaType 设置Content-Type 标头中包含的媒体类型值 154 | RequestBody requestBody = FormBody.create(MediaType.parse("application/json; charset=utf-8") 155 | , json); 156 | Request request = new Request.Builder() 157 | .url(uploadMobileStep)//请求的url 158 | .post(requestBody) 159 | .addHeader("User-Agent", "Dalvik/2.1.0 (Linux; U; Android 5.1.1; Magic2 Build/LMY48Z)") 160 | .addHeader("Content-Type", "application/json; charset=utf-8") 161 | .addHeader("Host", "sports.lifesense.com") 162 | .addHeader("Connection", "Keep-Alive") 163 | .header("Cookie", cookies) 164 | .build(); 165 | 166 | //创建/Call 167 | final Call call = okHttpClient.newCall(request); 168 | //加入队列 异步操作 169 | call.enqueue(new Callback() { 170 | //请求错误回调方法 171 | @Override 172 | public void onFailure(Call call, IOException e) { 173 | logger.error("连接失败"); 174 | callback.onModify("修改步数时连接失败"); 175 | 176 | } 177 | @Override 178 | public void onResponse(Call call, Response response) throws IOException { 179 | 180 | 181 | 182 | String json=response.body().string(); //假设从服务拿出来的json字符串,就是上面的内容 183 | 184 | logger.info("提交更改步数后的响应 onResponse: "+json); 185 | JSONObject personObj = null; 186 | try { 187 | personObj = new JSONObject(json); 188 | String code=personObj.getString("code"); 189 | String msg=personObj.getString("msg"); 190 | 191 | callback.onModify(json); 192 | 193 | } catch (JSONException e) { 194 | e.printStackTrace(); 195 | } 196 | 197 | } 198 | }); 199 | 200 | } 201 | 202 | 203 | private Boolean LoginByPwd(PostData upsteps,String Steps,final UpdateCallBack callBack) { 204 | 205 | OkHttpClient okHttpClient = new OkHttpClient.Builder() 206 | .connectTimeout(10, TimeUnit.SECONDS) 207 | .writeTimeout(10,TimeUnit.SECONDS) 208 | .readTimeout(20, TimeUnit.SECONDS) 209 | .build(); 210 | final Gson gson = new Gson(); 211 | String json = gson.toJson(upsteps); 212 | logger.debug("密码登录的请求体: "+json ); 213 | RequestBody requestBody = FormBody.create(MediaType.parse("application/json; charset=utf-8") 214 | , json); 215 | Request request = new Request.Builder() 216 | .url(loginByPwd)//请求的url 217 | .post(requestBody) 218 | .addHeader("User-Agent", "Dalvik/2.1.0 (Linux; U; Android 5.1.1; Magic2 Build/LMY48Z)") 219 | .addHeader("Content-Type", "application/json; charset=utf-8") 220 | .addHeader("Host", "sports.lifesense.com") 221 | .addHeader("Connection", "Keep-Alive") 222 | .build(); 223 | 224 | final Call call = okHttpClient.newCall(request); 225 | call.enqueue(new Callback() { 226 | @Override 227 | public void onFailure(Call call, IOException e) { 228 | logger.info("连接失败"); 229 | } 230 | @Override 231 | public void onResponse(Call call, Response response) throws IOException { 232 | if (null != response.header("Set-Cookie")) { 233 | cookie = response.header("Set-Cookie"); 234 | logger.info("登录响应的cookie: "+cookie ); 235 | 236 | } 237 | 238 | String json=response.body().string(); //假设从服务拿出来的json字符串,就是上面的内容 239 | logger.info("登录结果的响应: "+json ); 240 | UserInfo account = new Gson().fromJson(json, UserInfo.class); 241 | if (!account.getCode().equals("200")){ 242 | callBack.updateCallback(json); 243 | 244 | }else{ 245 | String userid = account.getData().getUserId().toString(); 246 | logger.debug(userid); 247 | callBack.updateCallback(cookie); 248 | 249 | try { 250 | postAsynModifyStepsHttp(cookie, Steps, userid, new mModifyCallback() { 251 | @Override 252 | public void onModify(String msg) { 253 | callBack.updateCallback(msg); 254 | 255 | } 256 | }); 257 | } catch (ParseException e) { 258 | e.printStackTrace(); 259 | } 260 | } 261 | 262 | 263 | 264 | } 265 | }); 266 | 267 | return true; 268 | } 269 | 270 | 271 | } -------------------------------------------------------------------------------- /src/main/java/com/chengzzz/stepservice/utils/utils.java: -------------------------------------------------------------------------------- 1 | package com.chengzzz.stepservice.utils; 2 | 3 | import org.slf4j.Logger; 4 | import org.slf4j.LoggerFactory; 5 | 6 | import java.io.UnsupportedEncodingException; 7 | import java.security.MessageDigest; 8 | import java.security.NoSuchAlgorithmException; 9 | 10 | /** 11 | *

12 | * 资源工具类 13 | *

14 | * 15 | * @author 等什么柠檬君 16 | * @since 2020/8/21 17 | */ 18 | public class utils { 19 | 20 | public static final String loginByPwd="https://sports.lifesense.com/sessions_service/login" + 21 | "?city=%E4%B8%8A%E6%B5%B7&province=%E4%B8%8A%E6%B5%B7%E5%B8%82&devicemodel=Magic2" + 22 | "&areaCode=310109&osversion=5.1.1&screenHeight=1280&provinceCode=310000&version=4.5&channel=huawei" + 23 | "&systemType=2&promotion_channel=huawei&screenWidth=720&requestId=d6e3e55379914cbd86ebbe975b19a877" + 24 | "&longitude=121.492479&screenheight=1280&os_country=CN&timezone=Asia%2FShanghai&cityCode=310100" + 25 | "&os_langs=zh&platform=android&clientId=8e844e28db7245eb81823132464835eb&openudid=&countryCode=" + 26 | "&country=%E4%B8%AD%E5%9B%BD&screenwidth=720&network_type=wifi&appType=6&area=CN&latitude=31.247221&language=zh"; 27 | 28 | public static final String uploadMobileStep ="https://sports.lifesense.com/sport_service/sport/sport/uploadMobileStepV2" + 29 | "?city=%E4%B8%8A%E6%B5%B7&province=%E4%B8%8A%E6%B5%B7%E5%B8%82&devicemodel=Magic2&areaCode=310109&osversion=5.1.1" + 30 | "&screenHeight=1280&provinceCode=310000&version=4.5&channel=huawei&systemType=2&promotion_channel=huawei&screenWidth=720" + 31 | "&requestId=d6e3e55379914cbd86ebbe975b19a877&longitude=121.492479&screenheight=1280&os_country=CN" + 32 | "&timezone=Asia%2FShanghai&cityCode=310100&os_langs=zh" + 33 | "&platform=android" + 34 | "&clientId=8e844e28db7245eb81823132464835eb" + 35 | "&openudid=&countryCode=&country=%E4%B8%AD%E5%9B%BD&screenwidth=720" + 36 | "&network_type=wifi&appType=6&area=CN&latitude=31.247221&language=zh"; 37 | 38 | public static String MSG = ""; 39 | 40 | 41 | /** 42 | * 43 | * @param string string 44 | * @return java.lang.String 45 | * @author 等什么柠檬君 46 | * @since 2020/8/21 47 | * @description md5加密 48 | */ 49 | 50 | public static String md5(String string) { 51 | byte[] hash; 52 | try { 53 | hash = MessageDigest.getInstance("MD5").digest(string.getBytes("UTF-8")); 54 | } catch (NoSuchAlgorithmException e) { 55 | throw new RuntimeException("Huh, MD5 should be supported?", e); 56 | } catch (UnsupportedEncodingException e) { 57 | throw new RuntimeException("Huh, UTF-8 should be supported?", e); 58 | } 59 | StringBuilder hex = new StringBuilder(hash.length * 2); 60 | for (byte b : hash) { 61 | if ((b & 0xFF) < 0x10) hex.append("0"); 62 | hex.append(Integer.toHexString(b & 0xFF)); 63 | } 64 | return hex.toString(); 65 | } 66 | } 67 | -------------------------------------------------------------------------------- /src/main/resources/application.properties: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /src/main/resources/application.yaml: -------------------------------------------------------------------------------- 1 | #服务器端口 2 | server: 3 | port: 8080 4 | tomcat: 5 | connection-timeout: 10000 6 | 7 | 8 | spring: 9 | datasource: 10 | password: root 11 | username: root 12 | driver-class-name: com.mysql.cj.jdbc.Driver 13 | url: jdbc:mysql://localhost:3306/mysteps?useSSL=false&useUnicode=true&characterEncoding=utf-8&serverTimezone=UTC 14 | druid: 15 | min-idle: 10 16 | max-active: 50 17 | max-idle: 10 18 | initial-size: 1 19 | max-wait: 5000 20 | -------------------------------------------------------------------------------- /src/main/resources/logback.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | %red(%d{yyyy-MM-dd HH:mm:ss}) %green([%thread]) %highlight(%-5level) %boldMagenta(%logger.%method:%L) - %cyan(%msg%n) 15 | 16 | 17 | 18 | debug 19 | 20 | 21 | 22 | 23 | 24 | ${log.base}/${log.moduleName}-info.log 25 | 26 | 27 | 28 | ${log.base}/archive/${log.moduleName}-info-%d{yyyy-MM-dd}.%i.log 29 | 30 | 31 | 32 | ${log.max.size} 33 | 34 | 35 | 36 | INFO 37 | ACCEPT 38 | DENY 39 | 40 | 41 | 42 | %date{yyyy-MM-dd HH:mm:ss.SSS} %-5level [%thread]%logger{56}.%method:%L -%msg%n 43 | 44 | 45 | 46 | 47 | 48 | ${log.base}/${log.moduleName}-debug.log 49 | 50 | 51 | 52 | ${log.base}/archive/${log.moduleName}-debug-%d{yyyy-MM-dd}.%i.log 53 | 54 | 55 | 56 | ${log.max.size} 57 | 58 | 59 | 60 | DEBUG 61 | ACCEPT 62 | DENY 63 | 64 | 65 | 66 | %date{yyyy-MM-dd HH:mm:ss.SSS} %-5level [%thread]%logger{56}.%method:%L -%msg%n 67 | 68 | 69 | 70 | 71 | 72 | ${log.base}/${log.moduleName}-warn.log 73 | 74 | 75 | 76 | ${log.base}/archive/${log.moduleName}-warn-%d{yyyy-MM-dd}.%i.log 77 | 78 | 79 | 80 | ${log.max.size} 81 | 82 | 83 | 84 | WARN 85 | ACCEPT 86 | DENY 87 | 88 | 89 | 90 | %date{yyyy-MM-dd HH:mm:ss.SSS} %-5level [%thread]%logger{56}.%method:%L -%msg%n 91 | 92 | 93 | 94 | 95 | 96 | ${log.base}/${log.moduleName}-error.log 97 | 98 | 99 | 100 | ${log.base}/archive/${log.moduleName}-error-%d{yyyy-MM-dd}.%i.log 101 | 102 | 103 | 104 | ${log.max.size} 105 | 106 | 107 | 108 | ERROR 109 | ACCEPT 110 | DENY 111 | 112 | 113 | 114 | %date{yyyy-MM-dd HH:mm:ss.SSS} %-5level [%thread]%logger{56}.%method:%L -%msg%n 115 | 116 | 117 | 118 | 119 | 120 | ${log.base}/${log.moduleName}-all.log 121 | 122 | 123 | 124 | ${log.base}/archive/${log.moduleName}-all-%d{yyyy-MM-dd}.%i.log 125 | 126 | 127 | 128 | ${log.max.size} 129 | 130 | 131 | 132 | 133 | %date{yyyy-MM-dd HH:mm:ss.SSS} %-5level [%thread]%logger{56}.%method:%L -%msg%n 134 | 135 | 136 | 137 | 138 | 139 | 140 | 141 | 142 | 143 | 144 | 145 | 146 | 147 | 148 | 149 | 150 | 151 | 152 | 153 | 154 | 155 | 156 | 157 | -------------------------------------------------------------------------------- /src/test/java/com/chengzzz/stepservice/StepserviceApplicationTests.java: -------------------------------------------------------------------------------- 1 | package com.chengzzz.stepservice; 2 | 3 | import org.junit.jupiter.api.Test; 4 | import org.springframework.boot.test.context.SpringBootTest; 5 | 6 | @SpringBootTest 7 | class StepserviceApplicationTests { 8 | 9 | @Test 10 | void contextLoads() { 11 | } 12 | 13 | } 14 | --------------------------------------------------------------------------------