Failed to obtain JDBC Connection; nested exception is org.apache.commons.dbcp.SQLNestedException: Cannot create PoolableConnectionFactory
时间: 2023-10-12 20:57:34 浏览: 185
U.2-SFF-8639-V4.0
引用\[1\]中提到,当访问自己的localhost时,出现了白页,并且控制台打印了"Failed to obtain JDBC Connection; nested exception is com.mysql.cj.jdbc.exceptions.CommunicationsException: Communications link failure"的错误信息。根据\[2\]中的引用,这个错误可能是由于数据库配置中的时区问题引起的。具体来说,错误信息中提到了"server time zone value '�й���ʱ��' is unrecognized or represents more than one time zone",这意味着数据库服务器的时区值无法识别或者表示了多个时区。为了解决这个问题,你需要配置数据库服务器或者JDBC驱动程序的"serverTimezone"属性,以使用更具体的时区值来支持时区功能。请检查你的数据库配置,确保"serverTimezone"属性设置正确。
#### 引用[.reference_title]
- *1* [Failed to obtain JDBC Connection; nested exception is ...](https://blog.csdn.net/weixin_48262684/article/details/124236555)[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^insertT0,239^v3^insert_chatgpt"}} ] [.reference_item]
- *2* [Failed to obtain JDBC Connection; nested exception is java.sql.SQLException](https://blog.csdn.net/magic_818/article/details/128881709)[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^insertT0,239^v3^insert_chatgpt"}} ] [.reference_item]
[ .reference_list ]
阅读全文