spring-cloud

Unable to fetch values from Spring Cloud Config Server to my Config-Client(limits-service)

匆匆过客 提交于 2020-12-15 06:37:34
问题 After days of search over internet and many tries(out of which nothing worked out for me), i am writing here I have Project- spring-cloud-config-server which has following files(full project can be accessed from https://github.com/AshishBharadwaj94/spring-cloud-config-server.git) SpringCloudConfigServerApplication.java application.properties (under folder- resources) Link Source Folder- git-config-repo which has limits-service's properties files pom.xml and Client Config Project- limits

How to point spring-cloud-config server to a git folder inside a git repo

核能气质少年 提交于 2020-12-13 17:59:37
问题 Please help me to resole the following problem.I would like to have a folder for each micro service in git repo. Please refer the sample structure I have inside git repo. https://github.com/tech-vishesh/config-server_properties If we have same properties under different folder like ms-one |--- application.properties |--- application-prod.properties |--- application-dev.properties ms-two |--- application.properties |--- application-prod.properties |--- application-dev.properties we have define

How to point spring-cloud-config server to a git folder inside a git repo

空扰寡人 提交于 2020-12-13 17:58:51
问题 Please help me to resole the following problem.I would like to have a folder for each micro service in git repo. Please refer the sample structure I have inside git repo. https://github.com/tech-vishesh/config-server_properties If we have same properties under different folder like ms-one |--- application.properties |--- application-prod.properties |--- application-dev.properties ms-two |--- application.properties |--- application-prod.properties |--- application-dev.properties we have define

How to point spring-cloud-config server to a git folder inside a git repo

大兔子大兔子 提交于 2020-12-13 17:58:16
问题 Please help me to resole the following problem.I would like to have a folder for each micro service in git repo. Please refer the sample structure I have inside git repo. https://github.com/tech-vishesh/config-server_properties If we have same properties under different folder like ms-one |--- application.properties |--- application-prod.properties |--- application-dev.properties ms-two |--- application.properties |--- application-prod.properties |--- application-dev.properties we have define

Could not use POST method with Feign

时光总嘲笑我的痴心妄想 提交于 2020-12-03 04:19:06
问题 im trying to write wrapper for stockfigher game api, just to learn how feign works and I have issues with very first POST method: @RequestMapping(method = RequestMethod.POST, value = "/venues/KHEX/stocks/LMC/orders") void newOrderForAStock(String order); whenever I try to call it, I get exception: Caused by: feign.RetryableException: cannot retry due to redirection, in streaming mode executing POST https://api.stockfighter.io/ob/api//venues/KHEX/stocks/LMC/orders at feign.FeignException

Could not use POST method with Feign

浪尽此生 提交于 2020-12-03 04:15:51
问题 im trying to write wrapper for stockfigher game api, just to learn how feign works and I have issues with very first POST method: @RequestMapping(method = RequestMethod.POST, value = "/venues/KHEX/stocks/LMC/orders") void newOrderForAStock(String order); whenever I try to call it, I get exception: Caused by: feign.RetryableException: cannot retry due to redirection, in streaming mode executing POST https://api.stockfighter.io/ob/api//venues/KHEX/stocks/LMC/orders at feign.FeignException

Spring Cloud Gate Request Timeout Not working for path

百般思念 提交于 2020-11-29 19:10:37
问题 In Spring cloud Gateway request timeout for path in not working as expected. I tried to specify global timeout, but its not working as expected. I am trying to call a microservice A. In A microservice I have added an delay to 5 sec. Now in path if I add response timeout as more than 5s, it should wait for the response, but currently circuit breaker is opened and currently its returning the fallback message in 1000ms I have configured resilience4j circuit breaker in gateway. I am not able to