Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

Run Spring Boot Project with base directory – localhost:8080/demo/

I have setup a run configuration in eclipse but it’s running in localhost:8080 but I want it to run in localhost:8080/demo/ but it’s not working. I have attached the run configuration and application properties file
enter image description here

enter image description here

can anyone help me to run spring boot project in localhost:8080/demo/

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

>Solution :

I think that you can just add this to your properties file

server.servlet.context-path=/demo
Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading