Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
iBiz4j Spring R7
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
iBiz-R7后台标准模板
iBiz4j Spring R7
提交
58b0a9c0
提交
58b0a9c0
编写于
5月 16, 2020
作者:
sq3536
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
修正格式
上级
81c9a55c
变更
3
隐藏空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
53 行增加
和
40 行删除
+53
-40
%PUBPRJ%-app-%APP_PKGPATH%.yaml.ftl
...PATH%/src/main/docker/%PUBPRJ%-app-%APP_PKGPATH%.yaml.ftl
+26
-19
%PUBPRJ%-provider-%SYSAPI_PKGPATH%.yaml.ftl
...c/main/docker/%PUBPRJ%-provider-%SYSAPI_PKGPATH%.yaml.ftl
+26
-19
application-sys.yml.ftl
SLN/%PUBPRJ%-util/src/main/resources/application-sys.yml.ftl
+1
-2
未找到文件。
SLN/%PUBPRJ%-app/%PUBPRJ%-app-%APP_PKGPATH%/src/main/docker/%PUBPRJ%-app-%APP_PKGPATH%.yaml.ftl
浏览文件 @
58b0a9c0
...
...
@@ -21,14 +21,20 @@ TARGET=PSSYSAPP
<#if appPlatform.getUserParam("nacos","172.16.102.211:8848")??>
<#assign nacosUrl = appPlatform.getUserParam("nacos","172.16.102.211:8848")>
</#if>
<#if appPlatform.getUserParam("spring.redis.host","172.16.100.243")??>
<#assign redisHost = appPlatform.getUserParam("spring.redis.host","172.16.100.243")>
<#if depApp.getUserParam("spring.redis.host","")?? && depApp.getUserParam("spring.redis.host","")!="">
<#assign redisHost = depApp.getUserParam("spring.redis.host","")>
<#elseif appPlatform.getUserParam("spring.redis.host","")?? && appPlatform.getUserParam("spring.redis.host","")!="">
<#assign redisHost = appPlatform.getUserParam("spring.redis.host","")>
</#if>
<#if appPlatform.getUserParam("spring.redis.port","6379")??>
<#assign redisPort = appPlatform.getUserParam("spring.redis.port","6379")>
<#if depApp.getUserParam("spring.redis.port","")?? && depApp.getUserParam("spring.redis.port","")!="">
<#assign redisPort = depApp.getUserParam("spring.redis.port","")>
<#elseif appPlatform.getUserParam("spring.redis.port","")?? && appPlatform.getUserParam("spring.redis.port","")!="">
<#assign redisPort = appPlatform.getUserParam("spring.redis.port","")>
</#if>
<#if appPlatform.getUserParam("spring.redis.database","0")??>
<#assign redisDataBase = appPlatform.getUserParam("spring.redis.database","0")>
<#if depApp.getUserParam("spring.redis.database","")?? && depApp.getUserParam("spring.redis.database","")!="">
<#assign redisDataBase = depApp.getUserParam("spring.redis.database","")>
<#elseif appPlatform.getUserParam("spring.redis.database","")?? && appPlatform.getUserParam("spring.redis.database","")!="">
<#assign redisDataBase = appPlatform.getUserParam("spring.redis.database","")>
</#if>
</#if>
</#if>
...
...
@@ -66,18 +72,19 @@ services:
<#assign appPlatform=sysrun.getPSDevSlnMSDepApp().getPSDCMSPlatform()>
environment:
<#if appPlatformNode.getSSHIPAddr()??>
SPRING_CLOUD_NACOS_DISCOVERY_IP:
${appPlatformNode.getSSHIPAddr()}
- SPRING_CLOUD_NACOS_DISCOVERY_IP=
${appPlatformNode.getSSHIPAddr()}
</#if>
<#comment>系统运行参数设置,从SysRun中获取到当前部署相关信息</#comment>
SPRING_CLOUD_NACOS_DISCOVERY_SERVER-ADDR: ${nacosUrl}
SPRING_REDIS_HOST: ${redisHost}
SPRING_REDIS_PORT: ${redisPort}
SPRING_REDIS_DATABASE: ${redisDataBase}
SPRING_DATASOURCE_USERNAME: ${dbUserName}
SPRING_DATASOURCE_PASSWORD: ${dbPassWord}
SPRING_DATASOURCE_URL: ${dbUrl}
SPRING_DATASOURCE_DRIVER-CLASS-NAME: ${dbDriver}
SPRING_DATASOURCE_DEFAULTSCHEMA: ${dbUserName}
- SERVER_PORT=${httpPort}
- SPRING_CLOUD_NACOS_DISCOVERY_SERVER-ADDR=${nacosUrl}
- SPRING_REDIS_HOST: ${redisHost}
- SPRING_REDIS_PORT: ${redisPort}
- SPRING_REDIS_DATABASE: ${redisDataBase}
- SPRING_DATASOURCE_USERNAME: ${dbUserName}
- SPRING_DATASOURCE_PASSWORD: ${dbPassWord}
- SPRING_DATASOURCE_URL: ${dbUrl}
- SPRING_DATASOURCE_DRIVER-CLASS-NAME: ${dbDriver}
- SPRING_DATASOURCE_DEFAULTSCHEMA: ${dbUserName}
<#comment>输出前端应用自定义参数替换标准参数</#comment>
<#if depApp.getUserParamNames()??>
<@outputUserParam depApp depApp.getUserParamNames()/>
...
...
@@ -99,15 +106,15 @@ networks:
<#comment>输出用户自定义参数</#comment>
<#macro outputUserParam paramObj paramList>
<#list paramList as param>
<#assign userParamkey=param?upper_case?replace(".","_")
?replace("-","")
>
<#assign userParamkey=param?upper_case?replace(".","_")>
<#comment>nacos、数据库连接等信息从sysRun中获取</#comment>
<#if userParamkey!="SPRING_CLOUD_NACOS_DISCOVERY_SERVER-ADDR" && userParamkey!="SPRING_REDIS_HOST" &&
userParamkey!="SPRING_REDIS_PORT" &&userParamkey!="SPRING_REDIS_DATABASE"
userParamkey!="S
ERVER_PORT" &&userParamkey!="S
PRING_REDIS_PORT" &&userParamkey!="SPRING_REDIS_DATABASE"
&&userParamkey!="SPRING_DATASOURCE_USERNAME" &&userParamkey!="SPRING_DATASOURCE_PASSWORD"
&&userParamkey!="SPRING_DATASOURCE_URL" &&userParamkey!="SPRING_DATASOURCE_DRIVER-CLASS-NAME" &&userParamkey!="SPRING_DATASOURCE_DEFAULTSCHEMA">
<#comment>扩展标准配置:用户配置参数替换标准配置(application-sys.yml)</#comment>
<#if !P.exists('AppDeployUserParam',param)>
${userParamkey}:
${paramObj.getUserParam(param,"")}
- ${userParamkey}=
${paramObj.getUserParam(param,"")}
</#if>
</#if>
</#list>
...
...
SLN/%PUBPRJ%-provider/%PUBPRJ%-provider-%SYSAPI_PKGPATH%/src/main/docker/%PUBPRJ%-provider-%SYSAPI_PKGPATH%.yaml.ftl
浏览文件 @
58b0a9c0
...
...
@@ -21,14 +21,20 @@ TARGET=PSSYSSERVICEAPI
<#if depSysApiPlatform.getUserParam("nacos","172.16.102.211:8848")??>
<#assign nacosUrl = depSysApiPlatform.getUserParam("nacos","172.16.102.211:8848")>
</#if>
<#if depSysApiPlatform.getUserParam("spring.redis.host","172.16.100.243")??>
<#assign redisHost = depSysApiPlatform.getUserParam("spring.redis.host","172.16.100.243")>
<#if depSysApi.getUserParam("spring.redis.host","")?? && depSysApi.getUserParam("spring.redis.host","")!="">
<#assign redisHost = depSysApi.getUserParam("spring.redis.host","")>
<#elseif depSysApiPlatform.getUserParam("spring.redis.host","")?? && depSysApiPlatform.getUserParam("spring.redis.host","")!="">
<#assign redisHost = depSysApiPlatform.getUserParam("spring.redis.host","")>
</#if>
<#if depSysApiPlatform.getUserParam("spring.redis.port","6379")??>
<#assign redisPort = depSysApiPlatform.getUserParam("spring.redis.port","6379")>
<#if depSysApi.getUserParam("spring.redis.port","")?? && depSysApi.getUserParam("spring.redis.port","")!="">
<#assign redisPort = depSysApi.getUserParam("")>
<#elseif depSysApiPlatform.getUserParam("spring.redis.port","")?? && depSysApiPlatform.getUserParam("spring.redis.port","")!="">
<#assign redisPort = depSysApiPlatform.getUserParam("")>
</#if>
<#if depSysApiPlatform.getUserParam("spring.redis.database","0")??>
<#assign redisDataBase = depSysApiPlatform.getUserParam("spring.redis.database","0")>
<#if depSysApi.getUserParam("spring.redis.database","")?? && depSysApi.getUserParam("spring.redis.database","")!="">
<#assign redisDataBase = depSysApi.getUserParam("spring.redis.database","")>
<#elseif depSysApiPlatform.getUserParam("spring.redis.database","")?? && depSysApiPlatform.getUserParam("spring.redis.database","")!="">
<#assign redisDataBase = depSysApiPlatform.getUserParam("spring.redis.database","")>
</#if>
</#if>
</#if>
...
...
@@ -66,18 +72,19 @@ services:
<#assign depSysApiPlatform=sysrun.getPSDevSlnMSDepAPI().getPSDCMSPlatform()>
environment:
<#if depSysApiPlatformNode.getSSHIPAddr()??>
SPRING_CLOUD_NACOS_DISCOVERY_IP:
${depSysApiPlatformNode.getSSHIPAddr()}
- SPRING_CLOUD_NACOS_DISCOVERY_IP=
${depSysApiPlatformNode.getSSHIPAddr()}
</#if>
<#comment>系统运行参数设置,从SysRun中获取到当前部署相关信息</#comment>
SPRING_CLOUD_NACOS_DISCOVERY_SERVER-ADDR: ${nacosUrl}
SPRING_REDIS_HOST: ${redisHost}
SPRING_REDIS_PORT: ${redisPort}
SPRING_REDIS_DATABASE: ${redisDataBase}
SPRING_DATASOURCE_USERNAME: ${dbUserName}
SPRING_DATASOURCE_PASSWORD: ${dbPassWord}
SPRING_DATASOURCE_URL: ${dbUrl}
SPRING_DATASOURCE_DRIVER-CLASS-NAME: ${dbDriver}
SPRING_DATASOURCE_DEFAULTSCHEMA: ${dbUserName}
- SERVER_PORT=${httpPort}
- SPRING_CLOUD_NACOS_DISCOVERY_SERVER-ADDR=${nacosUrl}
- SPRING_REDIS_HOST=${redisHost}
- SPRING_REDIS_PORT=${redisPort}
- SPRING_REDIS_DATABASE=${redisDataBase}
- SPRING_DATASOURCE_USERNAME=${dbUserName}
- SPRING_DATASOURCE_PASSWORD=${dbPassWord}
- SPRING_DATASOURCE_URL=${dbUrl}
- SPRING_DATASOURCE_DRIVER-CLASS-NAME=${dbDriver}
- SPRING_DATASOURCE_DEFAULTSCHEMA=${dbUserName}
<#comment>输出服务接口自定义参数替换标准参数</#comment>
<#if depSysApi.getUserParamNames()??>
<@outputUserParam depSysApi depSysApi.getUserParamNames()/>
...
...
@@ -99,15 +106,15 @@ networks:
<#comment>输出用户自定义参数</#comment>
<#macro outputUserParam paramObj paramList>
<#list paramList as param>
<#assign userParamkey=param?upper_case?replace(".","_")
?replace("-","")
>
<#assign userParamkey=param?upper_case?replace(".","_")>
<#comment>nacos、数据库连接等信息从sysRun中获取</#comment>
<#if userParamkey!="SPRING_CLOUD_NACOS_DISCOVERY_SERVER-ADDR" && userParamkey!="SPRING_REDIS_HOST" &&
userParamkey!="SPRING_REDIS_PORT" &&userParamkey!="SPRING_REDIS_DATABASE"
userParamkey!="S
ERVER_PORT" &&userParamkey!="S
PRING_REDIS_PORT" &&userParamkey!="SPRING_REDIS_DATABASE"
&&userParamkey!="SPRING_DATASOURCE_USERNAME" &&userParamkey!="SPRING_DATASOURCE_PASSWORD"
&&userParamkey!="SPRING_DATASOURCE_URL" &&userParamkey!="SPRING_DATASOURCE_DRIVER-CLASS-NAME" &&userParamkey!="SPRING_DATASOURCE_DEFAULTSCHEMA">
<#comment>扩展标准配置:用户配置参数替换标准配置(application-sys.yml)</#comment>
<#if !P.exists('SysApiDeployUserParam',param)>
${userParamkey}:
${paramObj.getUserParam(param,"")}
- ${userParamkey}=
${paramObj.getUserParam(param,"")}
</#if>
</#if>
</#list>
...
...
SLN/%PUBPRJ%-util/src/main/resources/application-sys.yml.ftl
浏览文件 @
58b0a9c0
...
...
@@ -209,6 +209,5 @@ ibiz:
<#assign enableDataAcc="true">
</#if>
enablePermissionValid: ${enableDataAcc}
cacheLevel: L1 #一级缓存,本地caffeine缓存
#cacheLevel: L2 #二级缓存,本地caffeine缓存+Redis缓存
cacheLevel: L1 #(L1)一级本地caffeine缓存;(L2)caffeine缓存+Redis缓存
编辑
预览
Markdown
格式
0%
请重试
or
添加新附件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录