我正在使用 Spring Boot 创建一个 Web 应用程序,但我不确定如何在启动时显示指向 URL 的链接:类似于localhost:8080/myWebApp作为日志中的链接。
As you start the project you should find something like this in the logs
2022-07-05 10:20:04.045 INFO 3236 --- [ restartedMain] o.s.b.w.embedded.tomcat.TomcatWebServer : Tomcat started on port(s): 8080 (http) with context path '/myWebApp'
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
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.