I have application where whole frontend part is laying in resource. I would like to separate things apart. And have separate server for UI, provided by gulp, for example. >
For routing, according to this guide at Using "Natural" Routes (specifically here), you have to add a controller that does the following:
@Controller
public class RouteController {
@RequestMapping(value = "/{path:[^\\.]*}")
public String redirect() {
return "forward:/";
}
}
Then using Spring Boot, the index.html loads at /, and resources can be loaded; routes are handled by Angular.