[MySql, MariaDB] 

Spring Boot 연동시 타임존 에러 해결


 

개인적인 프로젝트를 진행하며 보인 에러입니다.

 

더보기

The server time zone value 'KST' is unrecognized or represents more than one time zone. You must configure either the server or JDBC driver (via the serverTimezone configuration property) to use a more specifc time zone value if you want to utilize time zone support.

 

DB 서버단에서 특별한 설정(타임존 세팅 등)을 하지 않아서 발생하는 문제이지만, 귀찮으므로 서버는 건들지 않는 선택을 하도록 하겠습니다.

 

 -해결방법 (DB서버를 건들지 않는 방법)

  > database url 맨 마지막에 ?serverTimezone=Asia/Seoul를 추가해주시면 됩니다.

  > 협정세계표준시(UTC)의 경우 ?serverTimezone=UTC를 추가해주시면 됩니다.

+ Recent posts