Skip to content

Log context path at startup #9299

@hawkeye-bot

Description

@hawkeye-bot

When starting a web application, there is a nice log message stating which port your server is running on:
2017-05-24 09:32:50,586 - INFO : MESSAGE=[Jetty started on port(s) 7000 (http/1.1)] TID=[main] CLASS=[org.springframework.boot.context.embedded.jetty.JettyEmbeddedServletContainer]

I've run into several occassions though where the context path is also relevant to know. Since you can set it with Spring Boot via server.contextpath, I was thinking it might be a good idea to print this out as well to give developers a more complete picture of where their application is running.

Is this something that could be done in Spring Boot, or would that need to be suggested at the Jetty team?

Metadata

Metadata

Assignees

No one assigned

    Labels

    status: supersededAn issue that has been superseded by another

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions