Merge pull request #4353 from vvlladd28/improvement/web-config/localhost
Fixed local environment variable resolve assets page 404
This commit is contained in:
commit
247e871e29
@ -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";
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user