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

Minio需要自己配置吗? #294

Open
2658835760li opened this issue May 21, 2024 · 3 comments
Open

Minio需要自己配置吗? #294

2658835760li opened this issue May 21, 2024 · 3 comments

Comments

@2658835760li
Copy link

克隆运行了一下,其他的都没啥问题,但是就文件上传功能一直不行,尤其是用户头像,每次都报错无法上传,管理端歌手图片更换后直接不显示图片了,看了眼代码,不知道是不是跟minio有关系,本来参考这个项目做毕设呢,结果现在一直出错,希望作者能够帮忙解答一下

@zhemozhiwangddd
Copy link

先把minio跑起来,然后根据自己的情况改一下下面这些配置就行了。如果你bucket-name有改动的话,MinioController中的请求地址也要改一下,大概就改这些,具体看着代码调整
minio.endpoint=http://localhost:9000
minio.access-key=admin
minio.secret-key=123456
minio.bucket-name=user01

文件上传的大小

spring.servlet.multipart.max-file-size= 50MB

文件上传的最大请求大小

spring.servlet.multipart.max-request-size= 50MB

@zhemozhiwangddd
Copy link

你也可以翻翻提交历史,看作者增加minio时改了什么
9ef06d2#diff-de3687cb5d850e074538394c501c286f4f531efa106c6770e59fdfdcd0155251

@sswlancer
Copy link

哥们你搞好了吗?我也是卡在这个地方了

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

3 participants