Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
iBiz4j Spring R7
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
iBiz-R7后台标准模板
iBiz4j Spring R7
提交
d1e0846f
提交
d1e0846f
编写于
7月 14, 2020
作者:
zhouweidong
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
feign serviceId动态化配置
上级
fd33cc66
变更
5
隐藏空白字符变更
内嵌
并排
正在显示
5 个修改的文件
包含
16 行增加
和
10 行删除
+16
-10
application-%APP_PKGPATH%-prod.yml.ftl
...src/main/resources/application-%APP_PKGPATH%-prod.yml.ftl
+7
-6
%ITEM%FeignClient.java.ftl
...ATH%/core/%MOD_PKGPATH%/client/%ITEM%FeignClient.java.ftl
+6
-1
IBZOUFeignClient.java.ftl
.../java/%SYS_PKGPATH%/util/client/IBZOUFeignClient.java.ftl
+1
-1
IBZUAAFeignClient.java.ftl
...java/%SYS_PKGPATH%/util/client/IBZUAAFeignClient.java.ftl
+1
-1
IBZWFFeignClient.java.ftl
.../java/%SYS_PKGPATH%/util/client/IBZWFFeignClient.java.ftl
+1
-1
未找到文件。
SLN/%PUBPRJ%-app/%PUBPRJ%-app-%APP_PKGPATH%/src/main/resources/application-%APP_PKGPATH%-prod.yml.ftl
浏览文件 @
d1e0846f
...
@@ -40,6 +40,7 @@ zuul:
...
@@ -40,6 +40,7 @@ zuul:
<#assign serviceId=systemName+"-"+sysApi>
<#assign serviceId=systemName+"-"+sysApi>
</#if>
</#if>
<#if serviceId!="">
<#if serviceId!="">
<#assign serviceId="$"+"{ibiz.ref.service."+serviceId+":"+serviceId+"}">
${appEntity}:
${appEntity}:
path: /${serviceUrl}/**
path: /${serviceUrl}/**
serviceId: ${serviceId}
serviceId: ${serviceId}
...
@@ -49,30 +50,30 @@ zuul:
...
@@ -49,30 +50,30 @@ zuul:
<#if haswfentity==true>
<#if haswfentity==true>
wfcore:
wfcore:
path: /wfcore/**
path: /wfcore/**
serviceId:
ibzwf-api
serviceId:
${r'${ibiz.ref.service.wf:ibzwf-api}'}
stripPrefix: true
stripPrefix: true
</#if>
</#if>
<#if sys.getPSSystemSetting()?? && sys.getPSSystemSetting().getDataAccCtrlArch()?? && sys.getPSSystemSetting().getDataAccCtrlArch()==1>
<#if sys.getPSSystemSetting()?? && sys.getPSSystemSetting().getDataAccCtrlArch()?? && sys.getPSSystemSetting().getDataAccCtrlArch()==1>
loginv7:
loginv7:
path: /v7/login
path: /v7/login
serviceId:
ibzuaa-api
serviceId:
${r'${ibiz.ref.service.uaa:ibzuaa-api}'}
stripPrefix: false
stripPrefix: false
changepwd:
changepwd:
path: /v7/changepwd
path: /v7/changepwd
serviceId:
ibzuaa-api
serviceId:
${r'${ibiz.ref.service.uaa:ibzuaa-api}'}
stripPrefix: false
stripPrefix: false
uaa:
uaa:
path: /uaa/**
path: /uaa/**
serviceId:
ibzuaa-api
serviceId:
${r'${ibiz.ref.service.uaa:ibzuaa-api}'}
stripPrefix: false
stripPrefix: false
config:
config:
path: /config/**
path: /config/**
serviceId:
ibzuaa-api
serviceId:
${r'${ibiz.ref.service.uaa:ibzuaa-api}'}
stripPrefix: false
stripPrefix: false
<#if sys.getCodeName()!='ibzou' && sys.getCodeName()!='ibzrt'>
<#if sys.getCodeName()!='ibzou' && sys.getCodeName()!='ibzrt'>
oucore:
oucore:
path: /ibzorganizations/**
path: /ibzorganizations/**
serviceId:
ibzou-api
serviceId:
${r'${ibiz.ref.service.ou:ibzou-api}'}
stripPrefix: false
stripPrefix: false
</#if>
</#if>
</#if>
</#if>
...
...
SLN/%PUBPRJ%-core/src/main/java/%SYS_PKGPATH%/core/%MOD_PKGPATH%/client/%ITEM%FeignClient.java.ftl
浏览文件 @
d1e0846f
...
@@ -25,10 +25,15 @@ import org.springframework.cloud.openfeign.FeignClient;
...
@@ -25,10 +25,15 @@ import org.springframework.cloud.openfeign.FeignClient;
</#
if
>
</#
if
>
<#
comment
>
contextId
存在下划线时,项目运行报错,模板中转中划线处理
</#
comment
>
<#
comment
>
contextId
存在下划线时,项目运行报错,模板中转中划线处理
</#
comment
>
<#
assign
contextId
=
item
.
codeName
?
replace
(
"_"
,
"-"
)>
<#
assign
contextId
=
item
.
codeName
?
replace
(
"_"
,
"-"
)>
<#
if
((
item
.
getPSSubSysServiceAPI
().
getServiceCodeName
())
!'')!=''>
<#
assign
serviceId
=
"$"
+
"{ibiz.ref.service."
+
item
.
getPSSubSysServiceAPI
().
getServiceCodeName
()+
":"
+
item
.
getPSSubSysServiceAPI
().
getServiceCodeName
()+
"}"
>
<#
else
>
<#
assign
serviceId
=
"$"
+
"{ibiz.ref.service."
+
item
.
getPSSubSysServiceAPI
().
codeName
+
":}"
>
</#
if
>
/**
/**
*
实体
[${
item
.
codeName
}]
服务对象接口
*
实体
[${
item
.
codeName
}]
服务对象接口
*/
*/
@
FeignClient
(
value
=
"${
(item.getPSSubSysServiceAPI().getServiceCodeName())!''
}"
,
contextId
=
"${contextId}"
,
fallback
=
${
item
.
codeName
}
Fallback
.
class
)
@
FeignClient
(
value
=
"${
serviceId
}"
,
contextId
=
"${contextId}"
,
fallback
=
${
item
.
codeName
}
Fallback
.
class
)
public
interface
${
item
.
codeName
}
FeignClient
{
public
interface
${
item
.
codeName
}
FeignClient
{
<#
if
item
.
getPSSubSysServiceAPIDEMethods
()??>
<#
if
item
.
getPSSubSysServiceAPIDEMethods
()??>
...
...
SLN/%PUBPRJ%-util/src/main/java/%SYS_PKGPATH%/util/client/IBZOUFeignClient.java.ftl
浏览文件 @
d1e0846f
...
@@ -10,7 +10,7 @@ import org.springframework.web.bind.annotation.PathVariable;
...
@@ -10,7 +10,7 @@ import org.springframework.web.bind.annotation.PathVariable;
import
java
.
util
.
Map
;
import
java
.
util
.
Map
;
import
java
.
util
.
Set
;
import
java
.
util
.
Set
;
@
FeignClient
(
value
=
"
ibzou-api
"
,
fallback
=
IBZOUFallback
.
class
)
@
FeignClient
(
value
=
"
${r'${ibiz.ref.service.ou:ibzou-api}'}
"
,
fallback
=
IBZOUFallback
.
class
)
public
interface
IBZOUFeignClient
public
interface
IBZOUFeignClient
{
{
/**
/**
...
...
SLN/%PUBPRJ%-util/src/main/java/%SYS_PKGPATH%/util/client/IBZUAAFeignClient.java.ftl
浏览文件 @
d1e0846f
...
@@ -10,7 +10,7 @@ import org.springframework.cloud.openfeign.FeignClient;
...
@@ -10,7 +10,7 @@ import org.springframework.cloud.openfeign.FeignClient;
import
org
.
springframework
.
web
.
bind
.
annotation
.*;
import
org
.
springframework
.
web
.
bind
.
annotation
.*;
import
com
.
alibaba
.
fastjson
.
JSONObject
;
import
com
.
alibaba
.
fastjson
.
JSONObject
;
@
FeignClient
(
value
=
"
ibzuaa-api
"
,
fallback
=
IBZUAAFallback
.
class
)
@
FeignClient
(
value
=
"
${r'${ibiz.ref.service.uaa:ibzuaa-api}'}
"
,
fallback
=
IBZUAAFallback
.
class
)
public
interface
IBZUAAFeignClient
public
interface
IBZUAAFeignClient
{
{
/**
/**
...
...
SLN/%PUBPRJ%-util/src/main/java/%SYS_PKGPATH%/util/client/IBZWFFeignClient.java.ftl
浏览文件 @
d1e0846f
...
@@ -7,7 +7,7 @@ import org.springframework.cloud.openfeign.FeignClient;
...
@@ -7,7 +7,7 @@ import org.springframework.cloud.openfeign.FeignClient;
import
org
.
springframework
.
web
.
bind
.
annotation
.*;
import
org
.
springframework
.
web
.
bind
.
annotation
.*;
import
java
.
util
.*;
import
java
.
util
.*;
@
FeignClient
(
value
=
"
ibzwf-api
"
,
fallback
=
IBZWFFallback
.
class
)
@
FeignClient
(
value
=
"
${r'${ibiz.ref.service.wf:ibzwf-api}'}
"
,
fallback
=
IBZWFFallback
.
class
)
public
interface
IBZWFFeignClient
public
interface
IBZWFFeignClient
{
{
@
RequestMapping
(
method
=
RequestMethod
.
GET
,
value
=
"/{system}-app-{appname}/{entity}/process-definitions/{processDefinitionKey}/usertasks/{taskDefinitionKey}/tasks"
)
@
RequestMapping
(
method
=
RequestMethod
.
GET
,
value
=
"/{system}-app-{appname}/{entity}/process-definitions/{processDefinitionKey}/usertasks/{taskDefinitionKey}/tasks"
)
...
...
编辑
预览
Markdown
格式
0%
请重试
or
添加新附件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录