These are chat archives for spring-cloud/spring-cloud

5th
Jun 2017
allbutone
@SilentNight_R_twitter
Jun 05 2017 05:33
@SilentNight_R_twitter
I'm currently using spring data rest and querydsl to expose restful services, so I wonder what is the right way to access these services using spring cloud feign ?
suppose I want to access /users?address.city=NY&name=jack , how should I express that using feign?
don't know how to implement dynamic query like above using feign
Grzegorz Poznachowski
@poznachowski
Jun 05 2017 13:38

Hello,

I have a bootstrap.yml as below:

spring:
  application:
    name: app
---

spring:
  profiles: '!local'
  cloud:
    config:
      uri: http://localhost:8888
      fail-fast: true
      username: user
      password: '{cipher}xxx'

---

spring:
  profiles: local
  cloud:
    config:
      enabled: false

I run my integration test with a local profile, but it still fails, as it wants to decrypt the password and encrypt.key is not provided for tests:
java.lang.IllegalStateException: Cannot decrypt: key=spring.cloud.config.password.
Is there any way to tackle that - except providing encrypt.key for tests :) ? (Spring Boot 1.5.3 and Spring Cloud Dalston.SR1)

Grzegorz Poznachowski
@poznachowski
Jun 05 2017 13:55
I found GH issue: spring-cloud/spring-cloud-config#458 that also reflects the issue I'm having.
Karthik Mahadeva Iyer
@alwaysastudent
Jun 05 2017 21:30
Is it possible to reorder the service info creation with in the cloud connector ?
I see the all the service info creator are under /META-INF/services/org.springframework.cloud.cloudfoundry.CloudFoundryServiceInfoCreator
Can the order of execution be controlled ?
In these lines, is it possible to switch out the org.springframework.cloud.cloudfoundry.MysqlServiceInfoCreatorwith my own custom service info creator ?