如何在应用程序启动时设置初始 url
我有一个非常简单的 Vaadin Flow 项目,用于大学课程设置,具有有效的登录功能。
我知道该项目会在我的默认浏览器中自动打开 localhost:8080,但我试图让它最初打开到我的登录页面,以避免路由到错误页面。
我通过简单地在 URL 后面添加“/login”来解决这个问题,但我想知道在我的项目中的哪个位置可以在启动时将其打开到“localhost:8080/login”(如果可能的话)。谢谢!
I have a pretty simple Vaadin Flow project for a college course setup with working login functionalities.
I know that the project automatically opens up to localhost:8080 in my default browser, but I am trying to get it to initially open to my login page to avoid getting routed to an error page.
I get around this to access my project by simply adding '/login' after the URL, but I was wondering where in my project I can have it open to 'localhost:8080/login' upon startup if this is even possible. Thanks!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论