Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

关于用别的数据库做该项目页面无法歌曲内容的问题。 #63

Open
ryan121099 opened this issue Jun 3, 2021 · 4 comments

Comments

@ryan121099
Copy link

ryan121099 commented Jun 3, 2021

楼主你好,我现在用的是另外一个数据库(opengauss,表已经导入了)实现该项目,然后发现页面无法显示内容,所以想向你请教一下是什么原因?
我对源代码做的改动只有以下的地方,其他均无改动:
1.修改application.properties里数据库的信息
asdasdasd

2.以及generatorConfig.xml里关于数据库的信息

<jdbcConnection driverClass="org.postgresql.Driver" connectionURL="jdbc:postgresql://......./postgresql?serverTimezone=Asia/Shanghai&amp;nullCatalogMeansCurrent=true" userId="abcd" password="abcdefg"/>

这段信息
3.pom里增加依赖:
abcabc

4.Controller,里也修改了ConsumerController等图片来源地址
acdd

结果是页面无法显示歌单歌曲等,我用Mysql可以实现,请问是什么原因呢。
1111

@ryan121099
Copy link
Author

ryan121099 commented Jun 3, 2021

这个是控制台的报错信息
sadadads

@Yin-Hongwei
Copy link
Owner

后端资源路径配置的有问题,前面少了file:了,

@ryan121099
Copy link
Author

ryan121099 commented Jun 25, 2021

后端资源路径配置的有问题,前面少了file:了,
谢谢回复,我现在已经解决了歌曲歌单这些显示问题,但是我的收藏功能,增加歌手,增加歌曲都有问题,点了没有反应,以下是报错的信息,报错都是一样的,都是Request method 'GET' not supported,不知道是不是因为和我换了数据库有关,我用的opengauss是一个基于postgresql内核的,所以会不会是数据库的问题。源码我没有做改动,只换了数据库的信息。能删能改能查,就是不能增,好像是请求方式是POST的功能都不能用,请问是什么问题呢?
image

image

@Yin-Hongwei
Copy link
Owner

接口测试用postman吧,参数什么写一写,然后后端可以写日志排查一下哪里出了问题,直接看这个报错定位不了

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants