Home > OS >  How to open automatically the Swagger page of a Spring Boot app when running from Intellij?
How to open automatically the Swagger page of a Spring Boot app when running from Intellij?

Time:01-31

In my Spring Boot application, I have a Swagger page.

I would like that after I launch the application from IntelliJ, it will also automatically run the browser and open the Swagger page.

Can it be done?

CodePudding user response:

If you are hosting your swagger file using something like enter image description here

enter image description here

Got to modify options enter image description here

Check Add before launch task

enter image description here

Then Add a task to run browser, where you can add a html file or an url.

  • Related