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

图片文件上传后,访问404 #55

Open
luhailiang98 opened this issue Jun 1, 2018 · 4 comments
Open

图片文件上传后,访问404 #55

luhailiang98 opened this issue Jun 1, 2018 · 4 comments
Labels
常见问题 经常被问到的一些问题

Comments

@luhailiang98
Copy link

图片文件上传后,访问404

@luhailiang98
Copy link
Author

本地可以,服务器上不行

@ZHENFENG13
Copy link
Owner

那应该不是代码的问题

@ZHENFENG13 ZHENFENG13 transferred this issue from ZHENFENG13/spring-boot-projects May 15, 2019
@ZHENFENG13 ZHENFENG13 added the 常见问题 经常被问到的一些问题 label Sep 4, 2019
@barry-gq
Copy link

barry-gq commented Dec 3, 2019

看看是不是路径问题

@frZheng
Copy link

frZheng commented Oct 5, 2022

在“AdminLoginInterceptor.java”的if (requestServletPath.startsWith("/admin") && null == request.getSession().getAttribute("loginUser")) {修改为if (!requestServletPath.startsWith("/admin/blogs/md/uploadfile") && requestServletPath.startsWith("/admin") && null == request.getSession().getAttribute("loginUser")) {

本质上没解决问题,request.getSession().getAttribute("loginUser")有时候能获取到账号,有时候获取不到账号。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
常见问题 经常被问到的一些问题
Projects
None yet
Development

No branches or pull requests

4 participants