Browse Source

'时区'

master
dongyuangong 4 years ago
parent
commit
317b177682
2 changed files with 2 additions and 2 deletions
  1. +1
    -1
      src/main/java/com/taauav/admin/dto/TauvReportDTO.java
  2. +1
    -1
      src/main/resources/config/application-test.yml

+ 1
- 1
src/main/java/com/taauav/admin/dto/TauvReportDTO.java View File

* 创建时间 * 创建时间
*/ */
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
private Date createTime; private Date createTime;


/** /**

+ 1
- 1
src/main/resources/config/application-test.yml View File

context-path: /api context-path: /api
spring: spring:
datasource: datasource:
url: jdbc:mysql://localhost:3306/taauav_lishui?useSSL=false&useUnicode=true&characterEncoding=utf-8&zeroDateTimeBehavior=convertToNull&transformedBitIsBoolean=true&serverTimezone=UTC&nullCatalogMeansCurrent=true&allowPublicKeyRetrieval=true
url: jdbc:mysql://localhost:3306/taauav_lishui?useSSL=false&useUnicode=true&characterEncoding=utf-8&zeroDateTimeBehavior=convertToNull&transformedBitIsBoolean=true&serverTimezone=GMT%2B8&nullCatalogMeansCurrent=true&allowPublicKeyRetrieval=true
username: root username: root
password: idontcare password: idontcare
driver-class-name: com.mysql.cj.jdbc.Driver driver-class-name: com.mysql.cj.jdbc.Driver

Loading…
Cancel
Save