Commit c959f8125369ef3c05c94a185c1cb5bb20cec4e3
1 parent
a3aa07b5
数据库连接设置useSSL=false
Showing
4 changed files
with
3 additions
and
7 deletions
pom.xml
| @@ -11,7 +11,7 @@ | @@ -11,7 +11,7 @@ | ||
| 11 | 11 | ||
| 12 | 12 | ||
| 13 | <groupId>com.bsth</groupId> | 13 | <groupId>com.bsth</groupId> |
| 14 | - <artifactId>demo</artifactId> | 14 | + <artifactId>lgkl</artifactId> |
| 15 | <version>0.0.1-SNAPSHOT</version> | 15 | <version>0.0.1-SNAPSHOT</version> |
| 16 | <packaging>jar</packaging> | 16 | <packaging>jar</packaging> |
| 17 | <name>TicketAnalysis</name> | 17 | <name>TicketAnalysis</name> |
src/main/java/com/example/demo/service/Contrast.java
| @@ -235,7 +235,6 @@ public class Contrast { | @@ -235,7 +235,6 @@ public class Contrast { | ||
| 235 | } | 235 | } |
| 236 | }else { | 236 | }else { |
| 237 | mark="没有匹配的进站记录:"+personalName+" 工号:"+gh; | 237 | mark="没有匹配的进站记录:"+personalName+" 工号:"+gh; |
| 238 | - System.out.println(mark); | ||
| 239 | } | 238 | } |
| 240 | 239 | ||
| 241 | if (scheduling!=null) { | 240 | if (scheduling!=null) { |
| @@ -268,11 +267,9 @@ public class Contrast { | @@ -268,11 +267,9 @@ public class Contrast { | ||
| 268 | }else { | 267 | }else { |
| 269 | mark="未查到工号:"+carId; | 268 | mark="未查到工号:"+carId; |
| 270 | data.setSTATION_FLAG("0"); | 269 | data.setSTATION_FLAG("0"); |
| 271 | - System.out.println(mark); | ||
| 272 | } | 270 | } |
| 273 | if(mark.length()==0 && !flag){ | 271 | if(mark.length()==0 && !flag){ |
| 274 | mark="没有匹配的班次 "+gh+"刷卡时间为:"+LocalDateTime.ofEpochSecond(cardDate/1000, 0, ZoneOffset.ofHours(8)); | 272 | mark="没有匹配的班次 "+gh+"刷卡时间为:"+LocalDateTime.ofEpochSecond(cardDate/1000, 0, ZoneOffset.ofHours(8)); |
| 275 | - System.out.println(mark); | ||
| 276 | } | 273 | } |
| 277 | data.setMARK(mark); | 274 | data.setMARK(mark); |
| 278 | } | 275 | } |
src/main/resources/application.properties
| 1 | server.port=8090 | 1 | server.port=8090 |
| 2 | 2 | ||
| 3 | -spring.datasource.db1.jdbc-url=jdbc:mysql://10.10.150.103:3306/control?useUnicode=true&characterEncoding=UTF-8&serverTimezone=UTC | 3 | +spring.datasource.db1.jdbc-url=jdbc:mysql://10.10.150.103:3306/control?useUnicode=true&characterEncoding=UTF-8&serverTimezone=UTC&useSSL=false |
| 4 | spring.datasource.db1.username=root | 4 | spring.datasource.db1.username=root |
| 5 | spring.datasource.db1.password=fsodlgjiuigAQF2$9fs9 | 5 | spring.datasource.db1.password=fsodlgjiuigAQF2$9fs9 |
| 6 | spring.datasource.db1.driver-class-name=com.mysql.cj.jdbc.Driver | 6 | spring.datasource.db1.driver-class-name=com.mysql.cj.jdbc.Driver |
| 7 | spring.datasource.db1.druid.test-on-borrow=true | 7 | spring.datasource.db1.druid.test-on-borrow=true |
| 8 | spring.datasource.db1.druid.test-while-idle=true | 8 | spring.datasource.db1.druid.test-while-idle=true |
| 9 | 9 | ||
| 10 | -spring.datasource.db2.jdbc-url=jdbc:mysql://10.10.150.103:3306/ms?useUnicode=true&characterEncoding=UTF-8&serverTimezone=UTC | 10 | +spring.datasource.db2.jdbc-url=jdbc:mysql://10.10.150.103:3306/ms?useUnicode=true&characterEncoding=UTF-8&serverTimezone=UTC&useSSL=false |
| 11 | spring.datasource.db2.username=root | 11 | spring.datasource.db2.username=root |
| 12 | spring.datasource.db2.password=fsodlgjiuigAQF2$9fs9 | 12 | spring.datasource.db2.password=fsodlgjiuigAQF2$9fs9 |
| 13 | spring.datasource.db2.driver-class-name=com.mysql.cj.jdbc.Driver | 13 | spring.datasource.db2.driver-class-name=com.mysql.cj.jdbc.Driver |
src/test/java/com/example/demo/DemoApplicationTests.java
| 1 | package com.example.demo; | 1 | package com.example.demo; |
| 2 | 2 | ||
| 3 | -import com.example.demo.service.Analysis; | ||
| 4 | import com.example.demo.service.Contrast; | 3 | import com.example.demo.service.Contrast; |
| 5 | import org.springframework.beans.factory.annotation.Autowired; | 4 | import org.springframework.beans.factory.annotation.Autowired; |
| 6 | import org.springframework.boot.test.context.SpringBootTest; | 5 | import org.springframework.boot.test.context.SpringBootTest; |