spring-cloud

Setting datasources with Spring Cloud

半腔热情 提交于 2019-12-11 05:36:31
问题 I am looking for a SIMPLE example for setting a datasource (jdbc) from a configuration server running Spring Cloud. I've read through the Spring.io docs for Spring Cloud and find them VERY confusing. Does anyone know of a place to find a simple example? I've tried to run the stuff they have on Github, but they don't build. 回答1: Configuring a datasource is the same as in vanilla spring boot with the exception that the configuration will be loaded from a spring-cloud config server. So instead

Issues starting Spring Cloud CLI

。_饼干妹妹 提交于 2019-12-11 05:30:00
问题 I'm learning about microservices and I need spring cloud cli for this test project. I have installed spring boot cli (extracted and added to path) version Spring CLI v2.0.3.RELEASE. I have installed the spring cloud cli plugin (spring-cloud-cli:1.3.1.RELEASE), and verify it with checking its version. I would like to execute [spring cloud eureka configserver zipkin] but I'm getting: File ........\.m2\repository\org\springframework\cloud\launcher\spring-cloud-launcher-deployer\1.3.3.BUILD

Spring Cloud Stream - Aggregates

亡梦爱人 提交于 2019-12-11 04:57:47
问题 I'm trying to implement the proposed SCS aggregates, but I'm not sure to understand the real purpose of them, as the results I get surprise me. First, Here is the code... The source, a messages provider to be scheduled : @SpringBootApplication @EnableBinding(Source.class) public class SourceApplication { private final Logger logger = LoggerFactory.getLogger(SourceApplication.class); @Bean @InboundChannelAdapter(Source.OUTPUT) public MessageSource<String> createMessage() { return () -> {

Cannot link Consul and Spring Boot app in Docker

痴心易碎 提交于 2019-12-11 04:41:55
问题 I have a Spring Boot app with the following config: spring: thymeleaf: cache: false cloud: consul: host: consul port: 8500 discovery: prefer-ip-address: true instanceId: ${spring.application.name}:${spring.application.instance_id:${random.value}} that I want to run with docker-compose(Docker 1.11.2, docker-compose 1.7.1): consul: image: progrium/consul:latest container_name: consul hostname: consulhost ports: - "8400:8400" - "8500:8500" - "8600:53" command: "-server -bootstrap-expect 1 -ui

No qualifying bean of type RsaProperties when upgrading to Edgware.SR3

时光总嘲笑我的痴心妄想 提交于 2019-12-11 04:33:22
问题 I'm trying to update from Spring Cloud Edgware.SR2 to Edgware.SR3. When I build the Spring Cloud Config Server the default contextLoads test in ApplicationTests fails with the following error: Caused by: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'encryptionBootstrapConfiguration': Unsatisfied dependency expressed through field 'encryptor'; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating

Getting error “'encypt' is not a valid command” while trying to encrypt using Spring boot CLI

折月煮酒 提交于 2019-12-11 04:26:15
问题 I am trying to encrypt a password using Spring boot CLI (1.5.7). ./spring encrypt mysecret --key ashish I am getting below error for this command: 'encypt' is not a valid command. See 'help'. Please let me know how to fix this. 回答1: Actually encrypt and decrypt comes with Spring Cloud CLI so below command will get you these commands ./spring install org.springframework.cloud:spring-cloud-cli:1.3.2.RELEASE But now I am getting different error "Unable to initialize due to invalid secret key"

multi output binding in spring cloud data flow

浪子不回头ぞ 提交于 2019-12-11 04:15:35
问题 I'm trying to setup a multi-destination bindings but for some reason, messages from the second channel are going to the first exchange.queue . For example: spring: cloud: stream: bindings: output: destination: exchange1 producer.requiredGroups: queue1 output-other: destination: exchange2 producer.requiredGroups: queue2 I also used org.springframework.cloud.stream.messaging.Source for the default Output and created a dedicated Source Binding for output-other channel public interface

Turbine AMQP does not receive Hystrix stream

大兔子大兔子 提交于 2019-12-11 03:59:59
问题 I had a Turbine and Hystrix setup working, but decided to change it over to Turbine AMQP so I could aggregate multiple services into one stream/dashboard. I have set up a Turbine AMQP server running on localhost:8989, but it doesn't appear to be getting Hystrix data from the client service. When I hit the Turbine server's IP in my browser, I see data: {"type":"Ping"} repeatedly, even while I am polling the URL of the Hystrix. If I attempt to show the Turbine AMQP stream in the Hystrix

How other program language clients use Spring Cloud Config Server?

橙三吉。 提交于 2019-12-11 03:47:42
问题 There is a mention in the 'Spring-Cloud-Config-Server' documentation that says, To use these features in an application, just build it as a Spring Boot application Does this mean that my client app also needs to be a Spring Booot application ? Can't i have a Non-Java application accesing the properties in the Config Server via RESTService calls ? If the data is receieved in JSON format, I could always have a JSON parser in my non-java application to parse and use the data. 回答1: The standard

Spring Cloud Config Server plain text

拥有回忆 提交于 2019-12-11 02:26:48
问题 I've been looking into Spring Cloud Config Server but I am unable to get plain text files returned as I expect. The overview here http://cloud.spring.io/spring-cloud-config/spring-cloud-config.html#_serving_plain_text describes the ability to serve the actual file content via and endpoint: /foo/default/master/nginx.conf but I'm not able to get this to work. In my Spring Server config I have: spring: cloud: config: server: git: uri: ssh://xxxxxxxx/cloudconfig.git cloneOnStart: true searchPaths