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