application-nacos.yml.ftl 1.1 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40
<#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