[참조]m.blog.naver.com/writer0713/221636678923
[Spring] JPA와 MySQL 시간 저장 불일치
상황 설명 :Spring Data JPA를 사용하여 MySQL에 데이터를 저장할때 RegTime이라는 컬럼에 해당...
blog.naver.com
db에서 timezone설정 했다면 spring boot 에서
serverTimezone=UTC
spring.jpa.properties.hibernate.jdbc.time_zone = UTC
이런 설정값을 넣어줄 필요가 없다..
'server' 카테고리의 다른 글
[web]아임포트 본인인증 전화번호(phone), 통신사(carrier) 나오지 않는 이슈 해결방법 (0) | 2021.02.15 |
---|---|
[spring boot]template might not exist or might not be accessible by any of the configured Template Resolvers 해결방법 (0) | 2021.01.29 |
[sql]not null and not "" check 하는방법 (0) | 2020.09.09 |
[sql]column null check 방법 (0) | 2020.07.22 |
[sql] query where 기간별 구하는방법 (0) | 2020.07.17 |