昨天要把项目部署到opensuse上,项目是ss2h框架,按照传统,在opensuse安装有tomcat,tomcat,jdk,当项目部署在tomcat时,普通的页面可以打开,但是与数据库有交互的页面报了500错误
报不能连接错误:
org.springframework.transaction.CannotCreateTransactionException: Could not open Hibernate Session for transaction; nested exception is org.hibernate.exception.GenericJDBCException: Cannot open
一开始还以为是spring的Application问题,调了好一会儿功夫,觉得项目在本地跑是没问题的,应该是opensuse的mysql问题,于是去查看mysql,觉得密码很长,想改短一点,结果手误,把update set musql.use