首页 > 解决方案 > 如何更改端口 hawtio,我运行一个带有弹簧骆驼休息和其他的 megazord

问题描述

标题是自动解释的。基本上我有一个项目有很多技术,需要骆驼到 EIP。我需要在另一个端口运行 hawtio。

我的 pom.xml https://gist.github.com/andrealcantara/4a9d0a736f5c67ff0a6abc6d11e6febd

和我的 application.properties https://gist.github.com/andrealcantara/9edbf756d165790a5dc7ad4e1b48fa2f

标签: springapache-camelspring-camelhawtio

解决方案


对于 Spring Boot 上的 Hawtio,它作为管理端点开放,因此此应用程序属性可以控制端口号。

management.server.port=10001

有关更多信息,请参阅此示例:https ://github.com/hawtio/hawtio/blob/master/examples/springboot/src/main/resources/application.properties#L2


推荐阅读