如何为Spring Boot应用显示指向WebApplicationContext URL的链接?
我正在使用Spring Boot创建Web应用程序,并且我不确定如何在启动时显示指向URL的链接:类似 localhost:8080/mywebapp 作为日志中的链接。
I am using Spring Boot to create a web app, and I am not sure how to display a link to the URL while starting : something like localhost:8080/myWebApp as a link in the logs.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
当您启动项目时,您应该在日志中找到类似的东西,
基本上是您的baseurl => Localhost:8080/mywebapp
我没有做任何pressionualr配置来获取这
一点
As you start the project you should find something like this in the logs
Wich is basically your baseUrl => localhost:8080/myWebApp
I haven't done any particualr configuration to get this
i don t know if this ansewers you question tho