spring-cloud

Spring cloud gateway gives connection closed prematurely

放肆的年华 提交于 2021-01-27 05:43:31
问题 I am using spring cloud gateway as API gateway in my micro service setup with consul as service discovery. In some case when API of some microservice take more then 2 minutes, gateway throws below error: java.io.IOException: Connection closed prematurely at reactor.ipc.netty.http.client.HttpClientOperations.onInboundClose(HttpClientOperations.java:269) at reactor.ipc.netty.channel.ChannelOperationsHandler.channelInactive(ChannelOperationsHandler.java:113) at io.netty.channel

Spring cloud gateway gives connection closed prematurely

僤鯓⒐⒋嵵緔 提交于 2021-01-27 05:42:15
问题 I am using spring cloud gateway as API gateway in my micro service setup with consul as service discovery. In some case when API of some microservice take more then 2 minutes, gateway throws below error: java.io.IOException: Connection closed prematurely at reactor.ipc.netty.http.client.HttpClientOperations.onInboundClose(HttpClientOperations.java:269) at reactor.ipc.netty.channel.ChannelOperationsHandler.channelInactive(ChannelOperationsHandler.java:113) at io.netty.channel

bootstrap.yml configuration not processed anymore with Spring Cloud 2020.0

青春壹個敷衍的年華 提交于 2021-01-26 11:12:28
问题 In my Spring Boot project, I defined 4 profiles demo dev test prod properties in YAML files will be replaced by HashiCorp Vault properties during startup. For this, I use Spring Cloud Vault library. Everything works as expected in Spring Boot 2.3.x When I try to upgrade the project to Spring Boot 2.4.0 with Spring Cloud Vault 3.0.0-SNAPSHOT version, the properties are not being replaced bootstrap.yml spring: cloud: vault: authentication: APPROLE app-role: role-id: ${role-id} secret-id: $

Hazelcast member discovery with PCF Registry Service and hazelcast-eureka-plugin

故事扮演 提交于 2021-01-07 04:13:17
问题 Running several instances of application with embedded hazelcast on PCF. My goal is to chain hazelcast members into cluster. For purpose of member discovery I am using hazelcast-eureka plugin . I am able to achieve member discovery using simple Eureka Server app, passing eureka URL to hazelcast-eureka plugin , using this example. Now I want to use PCF Registry Service instead of Eureka Server app. For that purpose I am using EurekaOneDiscoveryStrategyFactory with EurekaClient autowired which

Hazelcast member discovery with PCF Registry Service and hazelcast-eureka-plugin

青春壹個敷衍的年華 提交于 2021-01-07 04:12:35
问题 Running several instances of application with embedded hazelcast on PCF. My goal is to chain hazelcast members into cluster. For purpose of member discovery I am using hazelcast-eureka plugin . I am able to achieve member discovery using simple Eureka Server app, passing eureka URL to hazelcast-eureka plugin , using this example. Now I want to use PCF Registry Service instead of Eureka Server app. For that purpose I am using EurekaOneDiscoveryStrategyFactory with EurekaClient autowired which

Hazelcast member discovery with PCF Registry Service and hazelcast-eureka-plugin

橙三吉。 提交于 2021-01-07 04:11:37
问题 Running several instances of application with embedded hazelcast on PCF. My goal is to chain hazelcast members into cluster. For purpose of member discovery I am using hazelcast-eureka plugin . I am able to achieve member discovery using simple Eureka Server app, passing eureka URL to hazelcast-eureka plugin , using this example. Now I want to use PCF Registry Service instead of Eureka Server app. For that purpose I am using EurekaOneDiscoveryStrategyFactory with EurekaClient autowired which

Hazelcast member discovery with PCF Registry Service and hazelcast-eureka-plugin

前提是你 提交于 2021-01-07 04:09:19
问题 Running several instances of application with embedded hazelcast on PCF. My goal is to chain hazelcast members into cluster. For purpose of member discovery I am using hazelcast-eureka plugin . I am able to achieve member discovery using simple Eureka Server app, passing eureka URL to hazelcast-eureka plugin , using this example. Now I want to use PCF Registry Service instead of Eureka Server app. For that purpose I am using EurekaOneDiscoveryStrategyFactory with EurekaClient autowired which

Spring Cloud Feign Client @RequestParam with List parameter creates a wrong request

[亡魂溺海] 提交于 2021-01-02 06:06:29
问题 I have a Spring Clound Feign Client mapping defined as following @RequestMapping(method = RequestMethod.GET, value = "/search/findByIdIn") Resources<MyClass> get(@RequestParam("ids") List<Long> ids); when I call feignClient.get(Arrays.asList(1L,2L,3L)) according to what I can see in the debugger, the feign-core library forms the following request: /search/findByIdIn?ids=1&ids=2&ids=3 instead of expected /search/findByIdIn?ids=1,2,3 which would be correct for the server Spring Data REST

Spring Security OAuth oauth/token_key returns 404 - error: not Found

不问归期 提交于 2020-12-16 02:20:08
问题 I am trying to build Authorization Server using Spring Security. Code is available on git - https://github.com/bharatnpti/SpringAuthServerSO I have implemented JWT, everything is working fine for example - generation of token, check_token. However the endpoint oauth/token_key is giving error - 404, not found. Have tried the following access for token_key :- tokenKeyAccess("permitAll() || isAnonymous()") tokenKeyAccess("permitAll()") Below are the logs for token_key request :- 2020-12-07 03:22

Spring Security OAuth oauth/token_key returns 404 - error: not Found

允我心安 提交于 2020-12-16 02:19:44
问题 I am trying to build Authorization Server using Spring Security. Code is available on git - https://github.com/bharatnpti/SpringAuthServerSO I have implemented JWT, everything is working fine for example - generation of token, check_token. However the endpoint oauth/token_key is giving error - 404, not found. Have tried the following access for token_key :- tokenKeyAccess("permitAll() || isAnonymous()") tokenKeyAccess("permitAll()") Below are the logs for token_key request :- 2020-12-07 03:22