We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
The text was updated successfully, but these errors were encountered:
本地可以,服务器上不行
Sorry, something went wrong.
那应该不是代码的问题
看看是不是路径问题
在“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")) {
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")有时候能获取到账号,有时候获取不到账号。
No branches or pull requests
图片文件上传后,访问404
The text was updated successfully, but these errors were encountered: