I have a similar issue with this post that I get status 404 instead of index page by adding context path. I doubt that I did something wrong like put the @EnableWebSecurit
@EnableWebSecurit