Languages/SQL
[ERROR] org.springframework.security.authentication.InternalAuthenticationServiceException
잔망루피
2022. 5. 23. 19:31
org.springframework.security.authentication.InternalAuthenticationServiceException: Failed to obtain JDBC Connection; nested exception is 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 specific time zone value if you want to utilize time zone support.
Caused by: org.springframework.jdbc.CannotGetJdbcConnectionException: Failed to obtain JDBC Connection; nested exception is 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 specific time zone value if you want to utilize time zone support.
Caused by: com.mysql.cj.exceptions.InvalidConnectionAttributeException: 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 specific time zone value if you want to utilize time zone support
해결 방법은 간단하다.
application.properties에서 serverTimezone=UTC를 추가해줬다.
UTC는 '협정 세계시'다.
spring.datasource.url=jdbc:mysql://localhost:3306/board?useSSL=true&serverTimezone=UTC
참고 👇
MySQL JDBC 에러 해결 "The server time zone value 'KST' is unrecognized or represents more than one time zone. "
www.lesstif.com
반응형