数据库显示

来源:10-2 项目打包发布与域名解析

慕瓜9421094

2020-03-07

老师,我数据库上传到服务器了,但是页面数据都显示不出来,我jdbc.properties配置检查了没问题。请问老师还有哪有可能出现问题啊?

写回答

2回答

慕瓜9421094

提问者

2020-03-07

老师我解决了,打扰您了,百度了个偏方法说即使是root权限还是不够,增加被访问的权限并刷新一下就行了,希望有同学有我一样的问题时能看到我的回答吧    ~谢谢老师,您的项目很精彩。

1
1
翔仔
特别感谢同学的肯定,而且为同学能够独立解决问题而高兴,这样子解决之后,相信同学印象会更加深刻,并且后续开始踏上助人为乐之路 哈哈
2020-03-09
共1条回复

慕瓜9421094

提问者

2020-03-07

老师我查看了谷歌,它报这样的问题:

{"success":false,"errMsg":"nested exception is org.apache.ibatis.exceptions.PersistenceException: \n### Error querying database.  Cause: org.springframework.jdbc.CannotGetJdbcConnectionException: Could not get JDBC Connection; nested exception is java.sql.SQLException: Connections could not be acquired from the underlying database!\n### The error may exist in file [/root/apache-tomcat-8.5.51/webapps/o2o/WEB-INF/classes/mapper/ShopCategoryDao.xml]\n### The error may involve io.guthub.blai404.o2o.dao.ShopCategoryDao.queryShopCategory\n### The error occurred while executing a query\n### Cause: org.springframework.jdbc.CannotGetJdbcConnectionException: Could not get JDBC Connection; nested exception is java.sql.SQLException: Connections could not be acquired from the underlying database!"}

我对了一下数据库ip,还有用户名和密码,都没错。

0
0

Java双版本(SSM到SpringBoot)校园商铺全栈开发

SSM商铺V1.0,解决毕设痛点;SpringBoot商铺V2.0,满足工作刚需

5129 学习 · 8152 问题

查看课程