spring-cloud

Why Integrating Spring Cloud application with the AWS Parameter Store return no property from param store?

只愿长相守 提交于 2019-12-12 09:01:36
问题 Intent : I am working on a POC which intends to use AWS Parameter store as a property store.This would store the confidential application properties in AWS SSM's Parameter store.I am using Java 8 with spring boot/cloud version 2. Resource : I followed this ref guide from spring docs and also a comprehensive article Integrating the AWS Parameter Store with Spring Cloud .Hence was trying to utilize spring-cloud-starter-aws-parameter-store-config.jar and hence added required dependency in the

Ribbon with Spring Cloud and Eureka: java.lang.IllegalStateException: No instances available for Samarths-MacBook-Pro.local

感情迁移 提交于 2019-12-12 08:24:57
问题 I am working on Spring Boot Eureka Client Application with Ribbon Load Balancer. I have two instances of the server registered with Eureka with the name "TEST". On the client side, I have the following code to fetch the server from Eureka. @Configuration @ComponentScan @EnableAutoConfiguration @EnableEurekaClient @RestController public class EurekaConsumerApplication { @Autowired DiscoveryClient discoveryClient; @Autowired RestTemplate restTemplate; @RequestMapping(value = "/",method =

How to establish relationships between Spring Data REST / Spring HATEOAS based (micro) services?

余生颓废 提交于 2019-12-12 07:15:23
问题 Trying to figure out a pattern for how to handle relationships when using a hypermedia based microservices based on Spring Data Rest or HATEOAS. If you have service A (Instructor) and Service B (Course) each exist as an a stand alone app. What is the preferred method for establishing a relationship between the two services. In a manner that does not require columns for IDs of the foreign service. It would be possible for each service to have many other services that need to communicate in the

Hystrix Dashboard with Turbine issue

谁说我不能喝 提交于 2019-12-12 05:27:51
问题 I have multiple service that are mapped thru zuul so my turbine project looks for hystrix.stream from the zuul project. I think i have setup everyting right because I can see the hits getting updated properly. But the below section for Thread Pools keeps on loading what am i missing here and whats the use of it, couldnot find anything that can help me to understand it actual use.Here is the screenshot of my dahsboard. Hystrix Dashboard Image Let me know if more info is needed for the same. 来源

Can I bind to multiple consumer groups with Spring Cloud Stream?

假如想象 提交于 2019-12-12 04:31:18
问题 I am writing an application that will process event messages (posted to the topic file-upload-completed ). I have multiple endpoints that should consume these messages ( metadata-reader and quota-checker ), and for pragmatic reasons I would like to deploy these endpoints together in an aggregated package. With Spring Cloud Stream, I could use spring.cloud.stream.bindings.file-upload-completed.group=metadata-reader to set the consumer group for the first endpoint; I would also like to process

Spring Boot 2.0.0.M1: Where is the package org.springframework.bind?

允我心安 提交于 2019-12-12 04:14:32
问题 Spring Boot 1.5.3.RELEASE had several classes in org.springframework.boot.bind , especially RelaxedPropertyResolver . However, https://github.com/spring-projects/spring-boot/tree/v2.0.0.M1/spring-boot/src/main/java/org/springframework/boot doesn't contain the subdirectory bind anymore RelaxedPropertyResolver is used e.g. in org.springframework.cloud.netflix.eureka.EurekaClientAutoConfiguration both in 1.3.0.RELEASE and in the current 2.0.0-BUILD-SNAPSHOT . Is there any workaround? 来源: https:/

Configuring Spring Cloud Stream in Camden.SR5 with Spring boot 1.5.1

╄→гoц情女王★ 提交于 2019-12-12 03:58:09
问题 First off, thanks to the Spring team for all their work pushing this work forward! Now that Camden.SR5 is official, I have some questions on how to correctly configure the spring cloud stream kafka binder when using Spring Boot 1.5.1. Spring boot 1.5.1 has auto configuration for kafka and those configuration options seem to be redundant with those in the spring cloud stream kafka binder. Do we use the core spring boot properties (spring.kafka. ) or do we use (spring.cloud.stream.kafka.binder.

Spring Cloud Stream default custom message headers

ε祈祈猫儿з 提交于 2019-12-12 03:54:44
问题 Is there a way to configure the default Message<T> headers when the message is generated from the method return value: @Publisher(channel = "theChannelname") public MyObject someMethod(Object param) { ... return myObject; } or @SendTo("theChannelname") public MyObject someMethod(Object param) { ... return myObject; } In the examples above the Message<MyObject> will be automatically generated. So, how can I control the default message generation? 回答1: You can do that via @Header annotation for

Spring cloud config /refresh crashes when spring.main.sources is set

隐身守侯 提交于 2019-12-11 21:13:08
问题 Spent all day tracking this down... Using spring-boot 1.3.0.RELEASE and spring-cloud-starter-config 1.1.0.M3 When I set the main class with in the application.properties file with this: spring.main.sources=com.myapp.MyApplication I start the app and i send a post request to http://localhost:8080/refresh i get the following error: org.springframework.jmx.export.UnableToRegisterMBeanException: Unable to register MBean [org.springframework.cloud.context.environment.EnvironmentManager@76d00da2]

Spring Cloud Task status shown as complete even when the batch job fails

谁说我不能喝 提交于 2019-12-11 19:47:53
问题 I have a task with 2 batch jobs, both jobs run but one of them fails. The status of the particular task is still shown as complete. i read about setting the spring.cloud.task.batch.failOnJobFailure property. When i set this property to true while running the task it gives me the following error: o.s.boot.SpringApplication : Application startup failed java.lang.AbstractMethodError: null at org.springframework.beans.factory.support.AbstractBeanFactory.isSingleton(AbstractBeanFactory.java:402) ~