ขณะใช้ Coacroach Db กับ Spring Boot และ Spring Batch ฉันได้รับข้อผิดพลาดต่อไปนี้
org.postgresql.util.PSQLException: ERROR: invalid value for parameter "TimeZone": "Europe/London"
รายละเอียด: ระบบไม่พบเส้นทางที่ระบุ
Application.properties
spring.datasource.driver-class-name=org.postgresql.Driver
spring.jpa.properties.hibernate.dialect=org.hibernate.dialect.PostgreSQL95Dialect
spring.datasource.username=root
spring.datasource.password=
spring.datasource.type=com.zaxxer.hikari.HikariDataSource
spring.datasource.url=jdbc:postgresql://localhost:26257/defaultdb?sslmode=disable&serverTimezone=UTC&useLegacyDatetimeCode=false
spring.jpa.properties.hibernate.jdbc.time_zone= UTC
spring.batch.initialize-schema = always
ฉันยังเพิ่มคุณสมบัตินี้และคุณสมบัติข้างต้นตามที่กล่าวไว้บางแห่ง แต่ก็ไม่ได้ช่วยอะไร
@PostConstruct
void started() {
TimeZone.setDefault(TimeZone.getTimeZone("UTC"));
}