I just saw that in the console of a newly create projet from https://start.spring.io
c.vaadin.base.devserver.BrowserLauncher : Application started at http://localhost:null/
After restart the browser no longer opens anymore.
I just saw that in the console of a newly create projet from https://start.spring.io
c.vaadin.base.devserver.BrowserLauncher : Application started at http://localhost:null/
After restart the browser no longer opens anymore.
The null
port could be because server.port
is not defined in application.properties, since it is retrieved using app.getEnvironment().getProperty("server.port")
. It looks like a bug in DevModeBrowserLauncher
; a default value should be used if the setting cannot be found.
About the browser not opening on restart, I suppose this is expected. When BrowserLauncher
opens the browser, it also writes a tab.launch
file in the build folder (e.g. target
for maven projects) and on restart it does not try to open the browser again until a configurable number of minutes (Configuration | Spring | Integrations | Flow | Vaadin Docs).
Was the browser opened on first start? Or not at all?
Hi @marcoc_753
thanks for the explanation of the default behavior with the tab.lauch. Didn’t know about that.
Yes, the browser opened on the first start.
I very often close the browser tab (call me old school) and so this behavior is kind of annoying.
I’ll file a bug report about the default value
I guess that if you set vaadin.launch-browser-delay = 0
, it should open a new tab at every restart
Let’s hope this fix is effective once it gets released. fix: Use 8080 as the default launch port for opening the browser by Artur- · Pull Request #19833 · vaadin/flow · GitHub