Skip to content

Remove localhost:9090 fallback for default gRPC channel #401

@therepanic

Description

@therepanic

#400 (comment)

So, I did a little research on this issue.

If we refer to the autoconfiguration logic we moved to Spring Boot, we'll see that with default we'll use the default "static://localhost:9090".

In general, I suggest we think about this. I can suggest the following:

We could force a custom target to be specified, whether as a property or an annotation parameter, and if it's not specified, we would return an error log. After that, we could remove the hardcoded code from Spring Boot's autoconfiguration.

This would be consistent with the logic behind, for example, @EnableJpaRepositories. After all, when we use this annotation, we don't connect to jdbc:h2:mem:default by default, and we see an error.

This would be the right thing to do, I think, and I can open an issue about it and we can figure out a solution.

If we're happy with this setup, I can submit a PR to the Spring Boot repository where I'll fix the autoconfiguration itself. After this, the user will be given a specific message that he should specify the address in the default channel.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions