Quantcast
Channel: Active questions tagged rest - Stack Overflow
Viewing all articles
Browse latest Browse all 3672

Base URL for Spring Boot and handle / as well

$
0
0

I would like to set the context path for the Spring Boot application, and the following property can achieve that.

server.contextPath=/api

However, I would like to redirect / to /api . Currently, I am getting a HTTP 404 Error. How can I achieve that in Spring Boot?


Viewing all articles
Browse latest Browse all 3672

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>