Joyrocky / DormitoryManager

学生宿舍管理系统(SSM/Layui框架;毕业设计)
1.25k stars 385 forks source link

使用的一些错误 #15

Open toma2333 opened 3 years ago

toma2333 commented 3 years ago

使用过程中登陆后500: mysql-connector-java-5.1.40-bin.jar这个包如果你的mysql是8.0的话要换成mysql-connector-java-8以上的jar包, 还有db.properties里面jdbc.driver=com.mysql.jdbc.Driver改为com.mysql.cj.jdbc.Driver 还有就是时区问题,加上数据库名?serverTimezone=UTC&useUnicode=true&characterEncoding=utf-8 最后成功登录后维修管理页面会报错,这个是DormRepair.java文件的d_dormbuilding属性设错了,改成STring基本就没问题了

CitySimple commented 2 years ago

添加管理员能成功吗,我这直接失败,后台生成日志也没有插入语句,只有添加成功后的重新刷新的select 语句

Rivencz commented 2 years ago

添加管理员能成功吗,我这直接失败,后台生成日志也没有插入语句,只有添加成功后的重新刷新的select 语句

老哥解决了码,我也是同样的问题

Miro0o commented 2 years ago

使用过程中登陆后500: mysql-connector-java-5.1.40-bin.jar这个包如果你的mysql是8.0的话要换成mysql-connector-java-8以上的jar包, 还有db.properties里面jdbc.driver=com.mysql.jdbc.Driver改为com.mysql.cj.jdbc.Driver 还有就是时区问题,加上数据库名?serverTimezone=UTC&useUnicode=true&characterEncoding=utf-8 最后成功登录后维修管理页面会报错,这个是DormRepair.java文件的d_dormbuilding属性设错了,改成STring基本就没问题了

太感谢了。。。纯小白找错找了整整一天。。

madajinerle commented 1 year ago

使用过程中登陆后500: mysql-connector-java-5.1.40-bin.jar这个包如果你的mysql是8.0的话要换成mysql-connector-java-8以上的jar包, 还有db.properties里面jdbc.driver=com.mysql.jdbc.Driver改为com.mysql.cj.jdbc.Driver 还有就是时区问题,加上数据库名?serverTimezone=UTC&useUnicode=true&characterEncoding=utf-8 最后成功登录后维修管理页面会报错,这个是DormRepair.java文件的d_dormbuilding属性设错了,改成STring基本就没问题了

大佬,照这样改了,为什么还是不行啊呜呜呜,Request processing failed; nested exception is org.springframework.transaction.CannotCreateTransactionException: Could not open JDBC Connection for transaction; nested exception is java.sql.SQLException: Cannot create PoolableConnectionFactory (Access denied for user 'root'@'localhost' (using password: YES))

Liu-fight commented 1 year ago

Request processing failed; nested exception is org.springframework.transaction.CannotCreateTransactionException: Could not open JDBC Connection for transaction; nested exception is java.sql.SQLException: Cannot create PoolableConnectionFactory (Access denied for user 'root'@'localhost' (using password: YES))

hhtred commented 9 months ago

添加管理员能成功吗,我这直接失败,后台生成日志也没有插入语句,只有添加成功后的重新刷新的select 语句 解决了吗兄弟

Uranusual commented 6 months ago

作者给手机号设置的是int 手机号9位数就不行了

QAQRrre commented 5 months ago

Request processing failed; nested exception is org.springframework.transaction.CannotCreateTransactionException: Could not open JDBC Connection for transaction; nested exception is java.sql.SQLException: Cannot create PoolableConnectionFactory (Access denied for user 'root'@'localhost' (using password: YES)),出现这个错误大部分都是mysql-connector-java-8包没有放在lib1这个内部库里面,要把那里面的mysql-connector-java-5.1.40-bin.jar替换掉