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

18th
Feb 2019
Sven Sander
@yarodinD
Feb 18 10:21
@marcingrzejszczak Here: spring-cloud/spring-cloud-contract#890
Marcin Grzejszczak
@marcingrzejszczak
Feb 18 10:23
thanks, I added a comment why it's not a "strange" folder structure
Johan Siren
@jsiren_gitlab
Feb 18 11:34

Hey guys, I'm trying to start my lambda function locally with sam local but I get this error

java.lang.NoSuchMethodError: org.springframework.boot.builder.SpringApplicationBuilder.<init>([Ljava/lang/Object;)V
        at org.springframework.cloud.function.adapter.aws.SpringFunctionInitializer.initialize(SpringFunctionInitializer.java:88)
        at org.springframework.cloud.function.adapter.aws.SpringBootRequestHandler.handleRequest(SpringBootRequestHandler.java:43)

I simply have a class with

public class FileHandler extends SpringBootRequestHandler<S3Event, String> { }

and then my function

    @Bean
    public Function<S3Event, String> function() {
        return req -> {
            return "HI";
        };
    }
Johan Siren
@jsiren_gitlab
Feb 18 12:00
Any idea what I'm missing?
Jeff Maxwell
@jmax01
Feb 18 17:05
I have a service that needs to pull service instances from multiple eureka registries. Is there any mechanism to do that?
As a further complication the service names are not unique across the registries.