I just switched a Spring Boot webapp from an external war deploy in Tomcat to a direct jar deploy with Spring Boot (and its internal Tomcat).
For Tomcat Run/Debug Configurations, Intellij gives you the to open browser after launch and go to http://localhost:8080/.
How can I do something similar with a a Spring Boot RUn/Debug Configuration. It runs the main class and just waits until I go to localhost:8080 from the browser myself.
edit your run/debug configurations in the bottom - click on '+' right above 'Build' select 'launch web browser', put your app url, for example http://localhost:8181
so you will have
click apply/ok, with that when you click Run/play button, it will launch browser with your url after the build
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With