Finding app base for embedded tomcat in spring boot
<p>I am using spring boot. I am developing a web application and i need to get the app base to generate a link for an email. For that i need to get the base URL. As the tomcat is embedded
<code>request.getContextpath()</code>
returns null. I need to get that <code>localhost:8080</code> dynamically so that when I deploy this to server I don't have to change the code.</p>