Parcourir la source

'时区'

master
dongyuangong il y a 4 ans
Parent
révision
317b177682
2 fichiers modifiés avec 2 ajouts et 2 suppressions
  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 Voir le fichier

@@ -46,7 +46,7 @@ public class TauvReportDTO extends BaseReportDTO {
* 创建时间
*/
@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;

/**

+ 1
- 1
src/main/resources/config/application-test.yml Voir le fichier

@@ -7,7 +7,7 @@ server:
context-path: /api
spring:
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
password: idontcare
driver-class-name: com.mysql.cj.jdbc.Driver

Chargement…
Annuler
Enregistrer