mirror of
https://github.com/tencentmusic/supersonic.git
synced 2025-12-13 04:57:28 +00:00
@@ -19,5 +19,6 @@ public class WebConfig implements WebMvcConfigurer {
|
|||||||
public void addViewControllers(ViewControllerRegistry registry) {
|
public void addViewControllers(ViewControllerRegistry registry) {
|
||||||
registry.addViewController("/").setViewName("redirect:/webapp/");
|
registry.addViewController("/").setViewName("redirect:/webapp/");
|
||||||
registry.addViewController("/webapp/").setViewName("forward:/webapp/index.html");
|
registry.addViewController("/webapp/").setViewName("forward:/webapp/index.html");
|
||||||
|
registry.addViewController("/webapp/**/{path:[^\\.]*}").setViewName("forward:/webapp/index.html");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user