Change Jetty default port

前端 未结 10 1226
野性不改
野性不改 2020-12-29 04:15

Jetty default port is 8080, but I want to change to default port to some other port (9999).

I read a few tutorials and they said almost all of configuration informa

10条回答
  •  南方客
    南方客 (楼主)
    2020-12-29 04:55

    For IntelliJ, this can be done similar to Magnus Lassi's command-line answer.

    Run --> Edit Configurations --> Add "-Djetty.port=XXXX", e.g.:

    jetty:run-war -Djetty.port=9999
    

提交回复
热议问题