Configure Spring Boot with two ports

前端 未结 4 2106
半阙折子戏
半阙折子戏 2020-11-29 08:31

I\'m trying configure an application in Spring Boot with two differents ports, but I haven\'t got still. My first aproximation has been with two controllers and I have defi

4条回答
  •  再見小時候
    2020-11-29 09:08

    To change Actuator management port you can use property

    management.port=8081
    

    See full list of properties here

    Update: Actuator creates one more Embedded Tomcat(servlet container) instance in this case. See here and here

提交回复
热议问题