-
Springboot2 and eureka Integration chooses netty as Startup Container
recently there are a lot of major updates to springboot2, so I m going to take a look at spring-webflux s use of the built-in netty container as a startup container. although I have just encountered some holes in my hands, I have seen the effect as ...
-
Why does spring cloud feign execute the method in fallback directly after starting the circuit breaker?
< H2 > problem description < H2 >
in the process of using feign, turn on the circuit breaker by configuring feign.hystrix.enabled=true . However, the fallback will be executed directly after startup and will not determine whether the call was success...
-
How to invoke the service of zuul proxy through feign
enter the url of ...
-
Spring cloud ribbon service name cannot be converted to IP
the service has been registered, as shown in figure
the service invocation code is as follows: Startup class:
@SpringCloudApplication
public class RibbonConsumerApplication {
public static void main(String[] args) {
SpringApplication...
-
After config-server uses kafka, why can't the port of the configuration service be accessed?
introduced into config-server pom.xml
<dependency>
<groupId>org.springframework.cloud< groupId>
<artifactId>spring-cloud-starter-bus-kafka< artifactId>
< dependency>
the address of kafka specified in applica...
-
[microservices] [configuration Center], [Service Discovery and Registration] who should rely on whom?
should [configuration Center] start first, and then [Service Discovery and Registration] read the configuration of [configuration Center]? or should [Service Discovery and Registration] start first, and then [configuration Center] register itself? or [...
-
Spring cloud configuration Center config server multi-warehouse configuration
spring cloud configuration central server if you want to read the configuration of multiple repositories, how should application.yml be configured? for example, the application configuration and resource configuration of a xxx-service project are under ...
-
Spring-cloud startup reports connection exception
spring startup reported an abnormal connection. The following is the error message
com.sun.jersey.api.client.ClientHandlerException: java.net.ConnectException: Connection refused: connect
at com.sun.jersey.client.apache4.ApacheHttpClient4Handler.ha...
-
How in Spring cloud can the request be directed to the specified microservice based on the visitor's ip?
in the process of development, because of the relationship between the calls of various micro-services, several micro-services need to be enabled locally, resulting in a computer memory utilization rate of more than 80%. Is there any way to share severa...
-
Get request.body from Spring Cloud Gateway filter
problem description
how to get complete request.body information in self-built Filter?
the environmental background of the problems and what methods you have tried
when learning Spring Cloud Gateway to write filter himself, I tried to get the requ...
-
Are there any examples of java11+spring cloud configuration
I have reported so many mistakes: com.sun.jersey.api.client.ClientHandlerException: java.net.ConnectException: Connection refused: connect Caused by: java.net.ConnectException: Connection refused: connect 2018-11-22 21 br 1312.777 WARN 10848-[main] c...
-
Field permissions based on Spring Cloud
problem description
recently, I am working on permission design, and one of the more troublesome problems for me is how to do data field permissions. For example, the system has two roles: ROLE_ADMIN and ROLE_GUEST, when querying the list of goods, RO...
-
There is no reason why the springCloud client cannot register for the service to eureka without spring-boot-starter-web?
https: blog.csdn.net Linyizu...
when a springCloud client cannot register a service with eureka, many solutions add the following to the service pom
<dependency>
<groupId>org.springframework.boot< groupId>
<artifactId>...
-
What should I do if the parameters required by the gateway in the springcloud micro-service are not needed by the back-end service?
In springcloud micro-service, the gateway needs to carry two parameters, one is accessToken and the other is version version number, but the backend service does not need these two parameters.
for example, the back-end service is originally like this ...
-
Zuul unified exception handling problem
I have configured @ ControllerAdvice for unified exception handling in the zuul project, but it doesn t seem to work. Is there any good unified exception handling? ...
-
How is the result of the @ FeignClient http call handled within the class it annotates?
@FeignClient(name = "china-mobile-api",
url = "${url.cn.mobile}",
configuration = FeignConfig.class
)
@RequestMapping(value = " order v2",
consumes = {"application x-...
-
How to get the parameters corresponding to @ RequestBody in Request?
in springcloud if the backend service has
@RequestMapping(" test")
pubilc void test(@RequestBody MyPram myParam){
...
}
in the filter of the zuul gateway, I want to get the value of myParam,
RequestContext ctx = RequestContext.get...