首页 > 解决方案 > 我们真的需要为 Spring Boot 管理客户端添加 Spring Boot Starter Web 吗?

问题描述

版本 1.5.4 工作正常,无需在 Spring Boot Admin Clients 的 POM 中额外声明 starter web。当我升级到 2.0.1 时,我必须将 starter web 添加到 POM 以使其工作。如果客户端应用程序中没有启动器 Web,则不会出现与注册应用程序相关的错误或日志。

据我所知,它没有记录在任何地方。有人可以确认吗?

标签: spring-bootspring-boot-admin

解决方案


Spring Boot Admin 2.x 可以在 netty 和 tomcat 上运行。因此,如果您想在 tomcat 上运行,则必须显式导入spring-boot-starter-web. 入门指南包含此依赖项 http://codecentric.github.io/spring-boot-admin/current/#set-up-admin-server


推荐阅读