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

补充mongoUri

上级 7f5e0187
...@@ -10,6 +10,16 @@ TARGET=PSSYSTEM ...@@ -10,6 +10,16 @@ TARGET=PSSYSTEM
<#assign dbUrl="jdbc:mysql://127.0.0.1:3306/"+sys.name+"?autoReconnect=true&useUnicode=true&characterEncoding=UTF-8&useOldAliasMetadataBehavior=true"> <#assign dbUrl="jdbc:mysql://127.0.0.1:3306/"+sys.name+"?autoReconnect=true&useUnicode=true&characterEncoding=UTF-8&useOldAliasMetadataBehavior=true">
<#assign dbDriver="com.mysql.jdbc.Driver"> <#assign dbDriver="com.mysql.jdbc.Driver">
<#assign bDynamicDS=false> <#assign bDynamicDS=false>
<#assign bmogo=false>
<#assign mongodbUri="mongodb://"+sys.name+":"+sys.name+"@127.0.0.1:27017/"+sys.name>
<#if sys.getAllPSDataEntities()??>
<#list sys.getAllPSDataEntities() as de>
<#if de.getStorageMode()?? && de.getStorageMode()==2>
<#assign bmogo=true>
<#break >
</#if>
</#list>
</#if>
<#list sys.getAllPSDataEntities() as entity> <#list sys.getAllPSDataEntities() as entity>
<#if (entity.getStorageMode()==1 || entity.getStorageMode()==2) && entity.getDSLink()!='DEFAULT'> <#if (entity.getStorageMode()==1 || entity.getStorageMode()==2) && entity.getDSLink()!='DEFAULT'>
<#assign bDynamicDS=true> <#assign bDynamicDS=true>
...@@ -30,6 +40,9 @@ TARGET=PSSYSTEM ...@@ -30,6 +40,9 @@ TARGET=PSSYSTEM
<#if appPlatform.getUserParam("spring.redis.database","0")??> <#if appPlatform.getUserParam("spring.redis.database","0")??>
<#assign redisDataBase = appPlatform.getUserParam("spring.redis.database","0")> <#assign redisDataBase = appPlatform.getUserParam("spring.redis.database","0")>
</#if> </#if>
<#if appPlatform.getUserParam("spring.data.mongodb.uri",mongodbUri)??>
<#assign mongodbUri = appPlatform.getUserParam("spring.data.mongodb.uri",mongodbUri)>
</#if>
<#break> <#break>
</#if> </#if>
</#list> </#list>
...@@ -48,6 +61,9 @@ TARGET=PSSYSTEM ...@@ -48,6 +61,9 @@ TARGET=PSSYSTEM
<#if sysApiPlatform.getUserParam("spring.redis.database","0")??> <#if sysApiPlatform.getUserParam("spring.redis.database","0")??>
<#assign redisDataBase = sysApiPlatform.getUserParam("spring.redis.database","0")> <#assign redisDataBase = sysApiPlatform.getUserParam("spring.redis.database","0")>
</#if> </#if>
<#if sysApiPlatform.getUserParam("spring.data.mongodb.uri",mongodbUri)??>
<#assign mongodbUri = sysApiPlatform.getUserParam("spring.data.mongodb.uri",mongodbUri)>
</#if>
<#break> <#break>
</#if> </#if>
</#list> </#list>
...@@ -140,6 +156,11 @@ spring: ...@@ -140,6 +156,11 @@ spring:
max-wait: 300ms max-wait: 300ms
max-idle: 16 max-idle: 16
min-idle: 8 min-idle: 8
<#if bmogo>
data:
mongodb:
uri: ${mongodbUri}
</#if>
<#if bDynamicDS> <#if bDynamicDS>
<@dynamicDatasourceConfig/> <@dynamicDatasourceConfig/>
<#else> <#else>
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册