Merge pull request #4353 from vvlladd28/improvement/web-config/localhost

Fixed local environment variable resolve assets page 404
This commit is contained in:
Igor Kulikov 2021-04-14 15:27:20 +03:00 committed by GitHub
commit 247e871e29
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -21,7 +21,7 @@ import org.springframework.web.bind.annotation.RequestMapping;
@Controller
public class WebConfig {
@RequestMapping(value = "/{path:^(?!api$)(?!assets$)(?!static$)(?!webjars$)[^\\.]*}/**")
@RequestMapping(value = {"/assets", "/assets/", "/{path:^(?!api$)(?!assets$)(?!static$)(?!webjars$)[^\\.]*}/**"})
public String redirect() {
return "forward:/index.html";
}