提交 67b9263b 编写于 作者: zhouweidong's avatar zhouweidong

解决feign contextId含下划线导致启动报错

上级 340abb98
......@@ -27,10 +27,12 @@ import org.springframework.cloud.openfeign.FeignClient;
<#else>
<#assign fullpath="/" + item.getPSSubSysServiceAPI().getCodeName()?lower_case + "/" + srfpluralize(item.getCodeName()?lower_case) >
</#if>
<#comment>contextId存在下划线时,项目运行报错,模板中转中划线处理</#comment>
<#assign contextId="${item.codeName?replace("_","-")}">
/**
* 实体[${item.codeName}] 服务对象接口
*/
@FeignClient(value = "${(item.getPSSubSysServiceAPI().getServiceCodeName())!''}", contextId = "${item.codeName}", fallback = ${item.codeName}Fallback.class)
@FeignClient(value = "${(item.getPSSubSysServiceAPI().getServiceCodeName())!''}", contextId = "${contextId}", fallback = ${item.codeName}Fallback.class)
public interface ${item.codeName}FeignClient {
<#if item.getPSSubSysServiceAPIDEMethods()??>
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册