I need to serve static html
file (/src/main/resources/static/folder/index.html)
for all routes in specified root (as example '/main/\**')
. I've tried to annotate controller method with @RequestMapping("/main/**")
, but it works only for '/main'
route, not for '/main/foo'
, '/main/foo/bar'
, etc...
So, how i can do this in spring boot?