i setup a service which uses spring boot application(for regular rest calls) and a embedded Netty server using NettyReactiveWebServerFactory in a different port (for eureka related calls).
All the actuator related functionality is applied to my main spring boot application but not to my embedded netty server.
Is there anyway where i can enable the actuator endpoints to both servers?
Used versions:
Spring boot version- 2.0.8, spring webflux
Spring cloud - Finchley.SR2
Related
Is it possible to use Spring Cloud without using Spring Boot? I am asking this because I need to use Spring Cloud Vault (https://cloud.spring.io/spring-cloud-vault/reference/html/) but my runtime environment (Apache Karaf) doesn't support the use of Spring Boot, because the app is deployed in bundles (modules) in a OSGi environment. Also all the examples in the docs are using Spring Boot. Thank You.
I have a spring boot application.
I know that spring mvc is incompatible with spring cloud gateway and it is needed to use spring-boot-starter-webflux instead of spring-boot-starter-web.
But the problem is that I have to add a gateway functionality to an existing app.
And so I have some questions that I hope will help with the problem:
May I create another spring context for separate beans of this libraries? I. e., I mean the old app will work with old context and gateway only with the new. And here are another question: How can I load spring starter in another spring context?
May I configure another port for gateway? So that the old app receives messages on port 8080, and the gateway receives messages for itself on port 8081.
I was learning Microservice architecture from Spring Microservices In Action book.
As one of things I wanted to migrate examples which were built on Spring Boot 1.4.4 and Spring Cloud Camden.SR5 to Spring Boot 2.1.6 and Spring Cloud Greenwich.SR1.
Now, I'm having problems with migrating of OAuth2 Auth server and resource servers since Spring decided to change packages/placement of classes and I feel completly lost since nothing seems to work.
Documentation seems to be splitted into SpringBoot/SpringSecurity/SpringOAuth2 depedencies.
What is the proper way of implementing OAuth2 AuthServer and ResourceServer in current (2.1.6) version of SpringBoot with Spring cloud Greenwich?
I am running a Spring Cloud Config Client on Kubernetes. It uses spring-cloud-kubernetes and spring-cloud-kubernetes-ribbon dependencies for service discovery, and I am expecting it to be able to discover the Spring Cloud Config Server by setting spring.cloud.config.discovery.enabled=true, but it is not working.
Background:
I am trying to prove that Kubernetes' Service is able to replace the Spring Cloud Eureka for Service Discovery with minimum configuration.
I have deployed a Spring Cloud Config Server (named config-server, at port 8888) along with a Spring Boot Microservice in Kubernetes as separate services in the same namespace, and used Spring Cloud Kubernetes' #EnableDiscoveryClient in the Application.java of both the config server and the microservice.
I have specified the following properties in the microservice's bootstrap.properties but the microservice always attempts to retrieve the config from localhost:8888:
spring.cloud.config.discovery.enabled=true
spring.cloud.config.discovery.serviceId=config-server
Only when I have replaced the above configs with the following, can the configs from the server be retrieved successfully:
spring.cloud.config.enabled=true
spring.cloud.config.uri=http://config-server:8888
My current microservice is build on wildfly swarm. To create reactive API i plan to use Spring WebFlux.
How can I inject the spring Http handler into swarm undertow fraction ?
Is this possible, or do i need to re-write my application on spring boot?