Spring-Boot嵌入式战争

Gra*_*nko 5 hawtio spring-boot

如何在Spring-Boot应用程序中包含第三方战争?我想坚持使用单个可执行工件,而不是传统的tomcat部署路径,但我还想包括像hawtio(http://hawt.io/getstarted/index.html)这样的东西.

任何建议将不胜感激.

小智 4

虽然不是问题的严格答案,但现在有一个hawt.io的jar专门用于spring boot,这使得所需的要求变得不必要(io.hawt:hawtio-springboot:jar:1.4.20).

模块代码在这里 - https://github.com/hawtio/hawtio/tree/master/hawtio-springboot

使用此处显示的示例用法 - https://github.com/hawtio/hawtio/tree/master/hawtio-sample-springboot

  • 我可以在这里查看hawtio示例弹簧启动项目的hawtio ui.https://github.com/hawtio/hawtio/tree/master/hawtio-sample-springboot (3认同)