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
spring-boot:2.6.7 spring-webmvc:5.3.19
I have configured access to local static resources
@Override public void addResourceHandlers(ResourceHandlerRegistry registry) { registry.addResourceHandler("/image1/**").addResourceLocations("file:D:\\Data\\TD\\image1\\"); }
When I request a path: http://localhost:8080/image1/P/test%20simple.jpg Prompt 404 Not Found
Was found during debugging org.springframework.web.servlet.resource.PathResourceResolver#encodeOrDecodeIfNecessary
org.springframework.web.servlet.resource.PathResourceResolver#encodeOrDecodeIfNecessary
The code here will change the URI to: P/test%2520simple.jpg
P/test%2520simple.jpg
The code is org.springframework.web.servlet.resource.PathResourceResolver on line 157
org.springframework.web.servlet.resource.PathResourceResolver
The pathToUse variable becomes P/test%2520simple.jpg
pathToUse
The text was updated successfully, but these errors were encountered:
Duplicates #27791
Sorry, something went wrong.
No branches or pull requests
spring-boot:2.6.7
spring-webmvc:5.3.19
I have configured access to local static resources
When I request a path: http://localhost:8080/image1/P/test%20simple.jpg Prompt 404 Not Found
Was found during debugging
org.springframework.web.servlet.resource.PathResourceResolver#encodeOrDecodeIfNecessary
The code here will change the URI to:
P/test%2520simple.jpg
The code is
org.springframework.web.servlet.resource.PathResourceResolver
on line 157The
pathToUse
variable becomesP/test%2520simple.jpg
The text was updated successfully, but these errors were encountered: