<#ibiztemplate> TARGET=PSSYSTEM </#ibiztemplate> <#assign nacosUrl = "127.0.0.1:8848" > <#comment>前端应用微服务平台配置</#comment> <#if sys.getAllPSDevSlnMSDepApps()??> <#list sys.getAllPSDevSlnMSDepApps() as depApp> <#if depApp.getPSDCMSPlatform()??> <#assign appPlatform=depApp.getPSDCMSPlatform()> <#if appPlatform.getUserParam("nacos","127.0.0.1:8848")??> <#assign nacosUrl = appPlatform.getUserParam("nacos","127.0.0.1:8848")> </#if> <#break> </#if> </#list> </#if> <#comment>服务接口微服务平台配置</#comment> <#if sys.getAllPSDevSlnMSDepAPIs()??> <#list sys.getAllPSDevSlnMSDepAPIs() as depSysApi> <#if depSysApi.getPSDCMSPlatform()?? > <#assign sysApiPlatform=depSysApi.getPSDCMSPlatform()> <#if sysApiPlatform.getUserParam("nacos","127.0.0.1:8848")??> <#assign nacosUrl = sysApiPlatform.getUserParam("nacos","127.0.0.1:8848")> </#if> <#break> </#if> </#list> </#if> #nacos配置中心 spring: cloud: nacos: discovery: server-addr: ${nacosUrl} enabled: true eureka: client: enabled: false