org.hibernate.exception.GenericJDBCException: Cannot open connection
遇到有两种可能,hibernate.cfg.xml密码与数据库的密码不对,还有可能session没有打开
遇到有两种可能,hibernate.cfg.xml密码与数据库的密码不对,还有可能session没有打开
本文探讨了在使用Hibernate框架时遇到的“org.hibernate.exception.GenericJDBCException: Cannot open connection”错误。该问题通常由两种情况导致:一是配置文件hibernate.cfg.xml中的密码与数据库实际密码不匹配;二是未正确开启Session。
5万+
1480
1036

被折叠的 条评论
为什么被折叠?
