mirror of
https://github.com/continew-org/continew-admin.git
synced 2025-09-17 11:00:09 +08:00
fix: 修复访问 doc.html 接口文档,控制台报 No mapping for GET /favicon.ico 警告的问题
This commit is contained in:
@@ -66,7 +66,8 @@ public class WebMvcConfiguration implements WebMvcConfigurer {
|
||||
.setCachePeriod(0);
|
||||
registry.addResourceHandler(localStorageProperties.getAvatarPattern()).addResourceLocations(avatarUtl)
|
||||
.setCachePeriod(0);
|
||||
registry.addResourceHandler("doc.html").addResourceLocations("classpath:/META-INF/resources/");
|
||||
registry.addResourceHandler("/favicon.ico").addResourceLocations("classpath:/");
|
||||
registry.addResourceHandler("/doc.html").addResourceLocations("classpath:/META-INF/resources/");
|
||||
registry.addResourceHandler("/webjars/**").addResourceLocations("classpath:/META-INF/resources/webjars/")
|
||||
.setCacheControl(CacheControl.maxAge(5, TimeUnit.HOURS).cachePublic());
|
||||
}
|
||||
|
Reference in New Issue
Block a user