【问题标题】:spring-boot-starter-web-reactive + spring-boot-starter-actuator doesn't work together?spring-boot-starter-web-reactive + spring-boot-starter-actuator 不能一起工作?
【发布时间】:2017-03-23 13:46:11
【问题描述】:

我试用了spring-boot-starter-actuator,默认说明,在pom中添加到spring boot项目中,没有任何问题。

我添加 spring-boot-starter-web-reactive 后,一切都崩溃了,新创建的响应式端点工作,但执行器停止工作,有没有人遇到过这样的问题,也许已经有任何解决方法的想法? 还注意到,我之前工作的那个 h2 /console 也坏了。

我没有收到任何错误,没有异常,这些东西只是停止工作。

【问题讨论】:

    标签: java maven spring-boot spring-boot-actuator spring-webflux


    【解决方案1】:

    正如 Spring Boot Web Reactive Starter 的 Github 页面所述:

    这个实验性项目...

    和

    转到start.spring.io,将Spring Boot版本设置为2.0.0(SNAPSHOT)并添加“Reactive Web”启动器。

    当它是实验性的时,它显然不打算在生产中使用并且不是完全稳定的。随意贡献或创建问题。

    【讨论】:

      【解决方案2】:

      请参考这篇文章Netty HttpServer api changed/differs from available examples 由于响应式网络是实验性的,您应该添加具有兼容版本库的 BOM 文件。

      【讨论】:

        猜你喜欢
        • 2018-12-24
        • 2019-10-28
        • 2016-01-29
        • 1970-01-01
        • 2017-06-17
        • 2017-02-19
        • 2014-04-07
        • 1970-01-01
        相关资源
        最近更新 更多