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

6th
Dec 2018
muhmadtabrez
@muhmadtabrez
Dec 06 2018 05:11
Hi @marcosbarbero here is my zuul proxy config
zuul:
ignoredServices: ''
host:
connect-timeout-millis: 20000
socket-timeout-millis: 20000
routes:
core-location:
path: /core-location/*
stripPrefix: false
serviceId: core-location
sensitiveHeaders:
core-location-api:
path: /api/core-location-api/

stripPrefix: false
serviceId: core-location
sensitiveHeaders
i am using Spring security with @EnableOauth2Sso in my api gateway. basically i want to core-locaton microservice to be exposed using two different paths.
Marcos Barbero
@marcosbarbero
Dec 06 2018 05:41
@muhmadtabrez that would’ve be great if you could format this Config here. It’s kinda hard to read that way
muhmadtabrez
@muhmadtabrez
Dec 06 2018 05:47
ok
image.png
another thing to mention here about my microservice config where i have defined context path does that going to effect this
image.png
muhmadtabrez
@muhmadtabrez
Dec 06 2018 05:56
when i am trying to call any api which is ex:http://localhost:8091/api/core-location/getalllocation?listType=1 i am getting 404
Marcos Barbero
@marcosbarbero
Dec 06 2018 07:23
Is this 8091 port configured on Gateway or the microservice itself?
muhmadtabrez
@muhmadtabrez
Dec 06 2018 08:14
@marcosbarbero it is configured in micro service
gorelikov
@gorelikov
Dec 06 2018 09:26
Hi to all. I'm not sure that it is the right channel for that question, but still. I'm deploying services to cloudfoundry, so I have a problem. Is there any way to bind multiple RabbitMQ services to application with spring-boot-starter-cloud-connectors ?
I mean, i can define multiple binders in my application's config, but when i'm trying to bind services in cloudfoudry i got :
Parameter 1 of method simpleRabbitListenerContainerFactory in org.springframework.boot.autoconfigure.amqp.RabbitAnnotationDrivenConfiguration required a single bean, but 2 were found
Marcos Barbero
@marcosbarbero
Dec 06 2018 09:31
@muhmadtabrez and what's the port in the gateway?
@gorelikov are you using spring-cloud-connectors?
it's possible to achieve but it requires some manual steps, I don't have an example of it but the idea is pretty much the same http://blog.marcosbarbero.com/setup-multiple-datasources-with-spring-boot-spring-data-in-pcf/
gorelikov
@gorelikov
Dec 06 2018 09:40
Yep, i'm reading this article right now, and trying to compare datasource autoconfiguration with rabbitmq autoconfiguratinon. Thank you :)
Marcos Barbero
@marcosbarbero
Dec 06 2018 09:41
you're welcome
:)