mirror of
https://github.com/spring-projects/spring-boot.git
synced 2024-07-15 01:07:30 +08:00
Fix missing trailing / in resource paths
This commit is contained in:
parent
a12f0dcd12
commit
8dae41f24c
@ -122,11 +122,11 @@ public class WebMvcAutoConfiguration {
|
|||||||
public void addResourceHandlers(ResourceHandlerRegistry registry) {
|
public void addResourceHandlers(ResourceHandlerRegistry registry) {
|
||||||
registry.addResourceHandler("/resources/**").addResourceLocations("/")
|
registry.addResourceHandler("/resources/**").addResourceLocations("/")
|
||||||
.addResourceLocations("classpath:/META-INF/resources/")
|
.addResourceLocations("classpath:/META-INF/resources/")
|
||||||
.addResourceLocations("classpath:/resources")
|
.addResourceLocations("classpath:/resources/")
|
||||||
.addResourceLocations("classpath:/");
|
.addResourceLocations("classpath:/");
|
||||||
registry.addResourceHandler("/**").addResourceLocations("/")
|
registry.addResourceHandler("/**").addResourceLocations("/")
|
||||||
.addResourceLocations("classpath:/META-INF/resources/")
|
.addResourceLocations("classpath:/META-INF/resources/")
|
||||||
.addResourceLocations("classpath:/static")
|
.addResourceLocations("classpath:/static/")
|
||||||
.addResourceLocations("classpath:/");
|
.addResourceLocations("classpath:/");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user