spring boot 시작 오류 서버 시간 대 값'й���ʱ��' is unrecognized or represents more than one
java.sql.SQLException: The server time zone value '�й���ʱ��' 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.
제 가 여기 서 전환 한 spring boot 버 전 은 2.2.4.RELEASE 입 니 다.
이 중 통 합 된 mysql 연결기 mysql-connector-java 가 사용 하 는 버 전 은 8.0.19 이기 때문에 이 오 류 를 보고 합 니 다
해결 방안:
1.다른 버 전의 my sql connector 를 자신의 데이터베이스 버 전에 따라 설정 할 수 있 습 니 다.
2.또는 spring boot 설정 파일 에 datasource url 에 server Timezone=UTC 인 자 를 추가 합 니 다.그 중에서 UTC 는 표준 세계 시간 을 통일 합 니 다.
datasource:
name: dev
url: jdbc:mysql://127.0.0.1:3306/leopard?serverTimezone=UTC&useUnicode=true&charaterEncoding=utf-8&useSSL=false
username: root
password: 123456
이 내용에 흥미가 있습니까?
현재 기사가 여러분의 문제를 해결하지 못하는 경우 AI 엔진은 머신러닝 분석(스마트 모델이 방금 만들어져 부정확한 경우가 있을 수 있음)을 통해 가장 유사한 기사를 추천합니다:
Is Eclipse IDE dying?In 2014 the Eclipse IDE is the leading development environment for Java with a market share of approximately 65%. but ac...
텍스트를 자유롭게 공유하거나 복사할 수 있습니다.하지만 이 문서의 URL은 참조 URL로 남겨 두십시오.
CC BY-SA 2.5, CC BY-SA 3.0 및 CC BY-SA 4.0에 따라 라이센스가 부여됩니다.