spring-boot - 我们真的需要为 Spring Boot 管理客户端添加 Spring Boot Starter Web 吗?
问题描述
版本 1.5.4 工作正常,无需在 Spring Boot Admin Clients 的 POM 中额外声明 starter web。当我升级到 2.0.1 时,我必须将 starter web 添加到 POM 以使其工作。如果客户端应用程序中没有启动器 Web,则不会出现与注册应用程序相关的错误或日志。
据我所知,它没有记录在任何地方。有人可以确认吗?
解决方案
Spring Boot Admin 2.x 可以在 netty 和 tomcat 上运行。因此,如果您想在 tomcat 上运行,则必须显式导入spring-boot-starter-web
. 入门指南包含此依赖项 http://codecentric.github.io/spring-boot-admin/current/#set-up-admin-server
推荐阅读
- mathjax - 限定 MathJax 表达式
- excel - 数据透视表格式引发类型不匹配
- python - 最好在 django 应用程序中返回 mongodb 的 json
- java - 在 Windows 10 机器上安装 Talend v7.0.1 时出错
- sql-server - 如何进行SQL查询以获取组中的父子数据
- javascript - 隐藏行并在搜索时显示
- javascript - D3.js,仅在节点之间的链接距离时如何在二维位置绘制
- xcode - IOKIT mac os IORegistryEntry
- typescript - PrimeNG Dropdown 值作为字符串而不是对象
- vb.net - 使用动态数组更新列表框上的值