com.github.liaomengge.base_common.feign.endpoint.FeignClientManagerEndpoint Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of base-feign-spring-boot-starter Show documentation
Show all versions of base-feign-spring-boot-starter Show documentation
base common starter for developer
The newest version!
package com.github.liaomengge.base_common.feign.endpoint;
import com.github.liaomengge.base_common.feign.consts.FeignConst;
import com.github.liaomengge.base_common.feign.manager.FeignClientManager;
import com.github.liaomengge.base_common.feign.pojo.FeignTarget;
import lombok.AllArgsConstructor;
import org.springframework.boot.actuate.endpoint.annotation.Endpoint;
import org.springframework.boot.actuate.endpoint.annotation.ReadOperation;
import java.util.Map;
/**
* Created by liaomengge on 2021/6/2.
*/
@AllArgsConstructor
@Endpoint(id = FeignConst.EndpointConst.FEIGN_CLIENTS)
public class FeignClientManagerEndpoint {
private final FeignClientManager feignClientManager;
@ReadOperation
public Map feign() {
return feignClientManager.getFeignTargetMap();
}
}