mirror of
https://github.com/spring-projects/spring-boot.git
synced 2024-07-05 00:56:58 +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) {
|
||||
registry.addResourceHandler("/resources/**").addResourceLocations("/")
|
||||
.addResourceLocations("classpath:/META-INF/resources/")
|
||||
.addResourceLocations("classpath:/resources")
|
||||
.addResourceLocations("classpath:/resources/")
|
||||
.addResourceLocations("classpath:/");
|
||||
registry.addResourceHandler("/**").addResourceLocations("/")
|
||||
.addResourceLocations("classpath:/META-INF/resources/")
|
||||
.addResourceLocations("classpath:/static")
|
||||
.addResourceLocations("classpath:/static/")
|
||||
.addResourceLocations("classpath:/");
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user