Skip to content

服务注册instance-id使用hostname #81

@carrypann

Description

@carrypann

consul注册服务时,默认的serviceName为spring.application.name,instanceId为-<server.port>,导致instanceId不唯一,在某些情况下可能出现异常,所以使用hostname来确定唯一性,格式为-<server.port>-

Metadata

Metadata

Assignees

Labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions