简体   繁体   English

spring-boot-starter-web-reactive + spring-boot-starter-actuator不能同时工作?

[英]spring-boot-starter-web-reactive + spring-boot-starter-actuator doesn't work together?

I tried out spring-boot-starter-actuator, by default instructions, add to spring boot project in pom, and it works without any issues. 我尝试了spring-boot-starter-actuator,默认说明,在pom中添加到spring boot项目,它没有任何问题。

As soon as I add spring-boot-starter-web-reactive everything breaks down, newly created reactive endpoint works, but actuator stopped working, have anybody had such issue and maybe already have any ideas how to solve it? 一旦我添加spring-boot-starter-web-reactive,一切都会崩溃,新创建的反应端点工作,但执行器停止工作,有任何人有这样的问题,也许已经有任何想法如何解决它? Also noticed, that h2 /console which I had working before, also broken. 还注意到,我以前工作过的h2 / console也坏了。

I receive no errors, no exceptions, these things just stop working. 我没有收到任何错误,没有例外,这些东西就停止了工作。

As Github page of Spring Boot Web Reactive Starter mentiones: 正如Spring Boot Web Reactive Starter的Github页面所提到:

This experimental project ... 这个实验项目......

and

Go to start.spring.io, set the Spring Boot version to 2.0.0(SNAPSHOT) and add the "Reactive Web" starter. 转到start.spring.io,将Spring Boot版本设置为2.0.0(SNAPSHOT)并添加“Reactive Web”启动器。

When it's experimental, it is clearly not meant to be used in production and is not fully stable. 当它是实验性的时,它显然不是用于生产并且不是完全稳定的。 Feel free to contribute or create issue. 随意贡献或创建问题。

请参阅这篇文章Netty HttpServer api已更改/与可用示例不同由于reactive-web是实验性的,您应该添加具有兼容版本库的BOM文件。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM