servertimezone=utc
时间: 2023-09-07 14:16:10 浏览: 116
在URL中,serverTimezone=UTC表示服务器时区设置为协调世界时(UTC)。这意味着数据库将使用UTC时间作为参考。\[1\]如果你想将服务器时区设置为UTC,你可以在URL中添加serverTimezone=UTC参数。例如:jdbc:mysql://localhost:3306/study?serverTimezone=UTC。这样,数据库将使用UTC时间作为服务器的时区。\[1\]
#### 引用[.reference_title]
- *1* *3* [【学习之路】spring boot 整合mybatis报错 “serverTimezone=UTC](https://blog.csdn.net/i_csdn2050/article/details/123485176)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^control_2,239^v3^insert_chatgpt"}} ] [.reference_item]
- *2* [serverTimezone=UTC](https://blog.csdn.net/Daegeum/article/details/104270443)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^control_2,239^v3^insert_chatgpt"}} ] [.reference_item]
[ .reference_list ]
阅读全文