I am using spring boot 2 and typescript. I want my controller to serve static content and for which I followed every recommended spring boot way i.e.
I kept ui resources in
/resources/static/dist/
because spring boot automatically picks it from there.I am using
@Controller
annotation.
Now, when I do
@GetMapping(value = "/demo")
public String getMetadataPropertiesUI() {
return "ui/dist/dummy.html";
}
It is able to serve my html, which I want, means it is working perfectly fine till here. But, when I try to adding depth to @GetMapping
i.e. changing @GetMapping(value = "/demo/dummy/")
then it is not able to serve my content, I am getting 404 here.
I am unable to find any solution for this. Also I don't have any other endpoint in my application which can cause conflicts. I checked it here also but didn't find anything helpful.
Thanks