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

Aug 2018
Thales Sousa
Aug 03 2018 05:51
@marcosbarbero they are both running in localhost. sometimes i run them using gradle bootRun and sometimes i just use intelliJ to boot them up separately, using 2 spring boot configurations, like the image above
Aug 03 2018 06:26
Question, we already have like 13 microservices running on an AWS server. my problem is running those 13 services locally on my eclipse and sometimes it runs out of ram. we have a eureka server running on the aws server, i can configure my single local service to connect to it and i can see through the dashboard that my local service is there. However, when i try running some method that communicates with another service via feign client, it’s either slow or not connecting at all. Can anyone tell me if this scenario is possible at all?
Aug 03 2018 07:11
@all Hi, I am using ResourceOwnerCredentials Grant type. I am using OAuth2RestTemplate to send request.I have hardcoded resource details and passed it to OAuth2RestTemplate at the time of bean creation. How can I do this dynamically as resource details changes (username and password) for every user.Please find below sample code
public class SpringcloudSecurecliApplication implements CommandLineRunner {

    private OAuth2RestTemplate template;

    public static void main(String[] args) {, args);

    public void run(String... arg0) throws Exception {

        System.out.println("cron job started");

        // could also get scopes: template.getAccessToken().getScope()
        String token = template.getAccessToken().toString();// .getValue();

        System.out.println("Token: " + token);

        String s = template.getForObject("http://localhost:9001/services/tolldata", String.class);

        System.out.println("Result: " + s);

    public OAuth2RestTemplate template() {
        return new OAuth2RestTemplate(resourceDeatils());

    private ResourceOwnerPasswordResourceDetails resourceDeatils() {
        ResourceOwnerPasswordResourceDetails resourceDetails = new ResourceOwnerPasswordResourceDetails();
        return resourceDetails;

Bilal Ahmed Yaseen
Aug 03 2018 07:13
@Hello Team,
I'm struggling while setting up ZipKin Server can you please share working example/documentation? I added the following maven dependencies:


And added the following annotation: @EnableZipkinServer which seems deprecated.
Raja Sundaram
Aug 03 2018 07:16
@bilalahmed54 There is a seperate Zipkin channel avaialble. And by the yes you’re right @EnableZipkinServer is deprecated.
Let me take you over there
Bilal Ahmed Yaseen
Aug 03 2018 07:16
Thank you @zeagord