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

稳定yml

上级 8e9e6d31
<#ibiztemplate>
TARGET=PSSYSAPP
</#ibiztemplate>
<#assign httpPort = "8080">
<#if sysrun?? >
<#if sysrun.getPSDevSlnMSDepApp()??>
<#if sysrun.getPSDevSlnMSDepApp().getHttpPort()??>
<#assign httpPort = sysrun.getPSDevSlnMSDepApp().getHttpPort()?c>
</#if>
</#if>
</#if>
server:
port: ${httpPort}
\ No newline at end of file
port: 8080
\ No newline at end of file
......@@ -2,12 +2,13 @@
TARGET=PSSYSAPP
</#ibiztemplate>
<#assign httpPort = "8080">
<#if sysrun?? >
<#if sysrun.getPSDevSlnMSDepApp()??>
<#if sysrun.getPSDevSlnMSDepApp().getHttpPort()??>
<#assign httpPort = sysrun.getPSDevSlnMSDepApp().getHttpPort()?c>
</#if>
</#if>
<#if sys.getAllPSDevSlnMSDepApps()??>
<#list sys.getAllPSDevSlnMSDepApps() as depApp>
<#if depApp.getPSApplication()?? && depApp.getPSApplication().codeName==item.codeName>
<#assign httpPort = depApp.getHttpPort()?c>
<#break>
</#if>
</#list>
</#if>
server:
port: ${httpPort}
......
<#ibiztemplate>
TARGET=PSSYSTEM
</#ibiztemplate>
<#assign httpPort = "8080">
<#if sysrun?? >
<#if sysrun.getPSDevSlnMSDepAPI()??>
<#if sysrun.getPSDevSlnMSDepAPI().getHttpPort()??>
<#assign httpPort = sysrun.getPSDevSlnMSDepAPI().getHttpPort()?c>
</#if>
</#if>
</#if>
server:
port: ${httpPort}
server:
port: 8080
<#assign zuul=false>
<#if item.getAllPSDataEntities?? && item.getAllPSDataEntities()??>
......
<#ibiztemplate>
TARGET=PSSYSSERVICEAPI
</#ibiztemplate>
<#assign httpPort = "8081">
<#if sys.getAllPSDevSlnMSDepAPIs()??>
<#list sys.getAllPSDevSlnMSDepAPIs() as depSysApi>
<#if depSysApi.getPSSysServiceAPI()?? && depSysApi.getPSSysServiceAPI().codeName==item.codeName>
<#assign httpPort = depSysApi.getHttpPort()?c>
</#if>
<#break>
</#list>
</#if>
server:
port: ${httpPort}
\ No newline at end of file
port: 8081
\ No newline at end of file
......@@ -2,12 +2,13 @@
TARGET=PSSYSSERVICEAPI
</#ibiztemplate>
<#assign httpPort = "8081">
<#if sysrun?? >
<#if sysrun.getPSDevSlnMSDepAPI()??>
<#if sysrun.getPSDevSlnMSDepAPI().getHttpPort()??>
<#assign httpPort = sysrun.getPSDevSlnMSDepAPI().getHttpPort()?c>
<#if sys.getAllPSDevSlnMSDepAPIs()??>
<#list sys.getAllPSDevSlnMSDepAPIs() as depSysApi>
<#if depSysApi.getPSSysServiceAPI()?? && depSysApi.getPSSysServiceAPI().codeName==item.codeName>
<#assign httpPort = depSysApi.getHttpPort()?c>
<#break>
</#if>
</#if>
</#list>
</#if>
server:
port: ${httpPort}
......@@ -6,42 +6,107 @@ TARGET=PSSYSTEM
<#assign redisHost = "172.16.100.243" >
<#assign redisPort = "6379" >
<#assign redisDataBase = "0" >
<#if sysrun?? >
<#if sysrun.getPSDevSlnMSDepApp()??>
<#assign sysr = sysrun.getPSDevSlnMSDepApp()/>
<#if sysr.getPSDCMSPlatformNode()??>
<#if sysr.getPSDCMSPlatformNode().getPSDCMSPlatform().getUserParam("nacos","172.16.102.211:8848")??>
<#assign nacosUrl = sysr.getPSDCMSPlatformNode().getPSDCMSPlatform().getUserParam("nacos","172.16.102.211:8848")>
</#if>
<#if sysr.getPSDCMSPlatformNode().getPSDCMSPlatform().getUserParam("redisHost","172.16.100.243")??>
<#assign redisHost = sysr.getPSDCMSPlatformNode().getPSDCMSPlatform().getUserParam("redisHost","172.16.100.243")>
</#if>
<#if sysr.getPSDCMSPlatformNode().getPSDCMSPlatform().getUserParam("redisPort","6379")??>
<#assign redisPort = sysr.getPSDCMSPlatformNode().getPSDCMSPlatform().getUserParam("redisPort","6379")>
</#if>
<#if sysr.getPSDCMSPlatformNode().getPSDCMSPlatform().getUserParam("redisDataBase","0")??>
<#assign redisDataBase = sysr.getPSDCMSPlatformNode().getPSDCMSPlatform().getUserParam("redisDataBase","0")>
</#if>
<#assign dbUserName="root">
<#assign dbPassWord="123456">
<#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">
<#comment>前端应用微服务平台配置</#comment>
<#if sys.getAllPSDevSlnMSDepApps()??>
<#list sys.getAllPSDevSlnMSDepApps() as depApp>
<#if depApp.getPSDCMSPlatform()??>
<#assign appPlatform=depApp.getPSDCMSPlatform()>
<#if appPlatform.getUserParam("nacos","172.16.102.211:8848")??>
<#assign nacosUrl = appPlatform.getUserParam("nacos","172.16.102.211:8848")>
</#if>
</#if>
<#if sysrun.getPSDevSlnMSDepAPI()??>
<#assign sysr = sysrun.getPSDevSlnMSDepAPI()/>
<#if sysr.getPSDCMSPlatformNode()??>
<#if sysr.getPSDCMSPlatformNode().getPSDCMSPlatform().getUserParam("nacos","172.16.102.211:8848")??>
<#assign nacosUrl = sysr.getPSDCMSPlatformNode().getPSDCMSPlatform().getUserParam("nacos","172.16.102.211:8848")>
</#if>
<#if sysr.getPSDCMSPlatformNode().getPSDCMSPlatform().getUserParam("redisHost","172.16.100.243")??>
<#assign redisHost = sysr.getPSDCMSPlatformNode().getPSDCMSPlatform().getUserParam("redisHost","172.16.100.243")>
</#if>
<#if sysr.getPSDCMSPlatformNode().getPSDCMSPlatform().getUserParam("redisPort","6379")??>
<#assign redisPort = sysr.getPSDCMSPlatformNode().getPSDCMSPlatform().getUserParam("redisPort","6379")>
</#if>
<#if sysr.getPSDCMSPlatformNode().getPSDCMSPlatform().getUserParam("redisDataBase","0")??>
<#assign redisDataBase = sysr.getPSDCMSPlatformNode().getPSDCMSPlatform().getUserParam("redisDataBase","0")>
</#if>
<#if appPlatform.getUserParam("redisHost","172.16.100.243")??>
<#assign redisHost = appPlatform.getUserParam("redisHost","172.16.100.243")>
</#if>
<#if appPlatform.getUserParam("redisPort","6379")??>
<#assign redisPort = appPlatform.getUserParam("redisPort","6379")>
</#if>
<#if appPlatform.getUserParam("redisDataBase","0")??>
<#assign redisDataBase = appPlatform.getUserParam("redisDataBase","0")>
</#if>
</#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","172.16.102.211:8848")??>
<#assign nacosUrl = sysApiPlatform.getUserParam("nacos","172.16.102.211:8848")>
</#if>
<#if sysApiPlatform.getUserParam("redisHost","172.16.100.243")??>
<#assign redisHost = sysApiPlatform.getUserParam("redisHost","172.16.100.243")>
</#if>
<#if sysApiPlatform.getUserParam("redisPort","6379")??>
<#assign redisPort = sysApiPlatform.getUserParam("redisPort","6379")>
</#if>
<#if sysApiPlatform.getUserParam("redisDataBase","0")??>
<#assign redisDataBase = sysApiPlatform.getUserParam("redisDataBase","0")>
</#if>
<#break>
</#if>
</#list>
</#if>
<#comment>前端应用数据库配置</#comment>
<#if sys.getAllPSDevSlnMSDepApps()??>
<#list sys.getAllPSDevSlnMSDepApps() as depApp>
<#if depApp.getPSDBDevInst()??>
<#assign appDBInst=depApp.getPSDBDevInst()>
<#assign dbUserName=appDBInst.getUserName()>
<#assign dbPassWord=appDBInst.getPassword()>
<#assign dbUrl=appDBInst.getConnUrl()>
<#if (appDBInst.getDBType()=='MYSQL5')>
<#assign dbDriver="com.mysql.jdbc.Driver">
<#elseif (appDBInst.getDBType()=='DB2')>
<#assign dbDriver="com.ibm.db2.jcc.DB2Driver">
<#elseif (appDBInst.getDBType()=='ORACLE')>
<#assign dbDriver="oracle.jdbc.driver.OracleDriver">
<#elseif (appDBInst.getDBType()=='SQLSERVER')>
<#assign dbDriver="com.microsoft.sqlserver.jdbc.SQLServerDriver">
<#elseif (appDBInst.getDBType()=='POSTGRESQL')>
<#assign dbDriver="org.postgresql.Driver">
<#elseif (appDBInst.getDBType()=='PPAS')>
<#assign dbDriver="com.edb.Driver">
</#if>
<#break>
</#if>
</#list>
</#if>
<#comment>服务接口数据库配置</#comment>
<#if sys.getAllPSDevSlnMSDepAPIs()??>
<#list sys.getAllPSDevSlnMSDepAPIs() as depSysApi>
<#if depSysApi.getPSDBDevInst()??>
<#assign sysApiDBInst=depSysApi.getPSDBDevInst()>
<#assign dbUserName=sysApiDBInst.getUserName()>
<#assign dbPassWord=sysApiDBInst.getPassword()>
<#assign dbUrl=sysApiDBInst.getConnUrl()>
<#if (sysApiDBInst.getDBType()=='MYSQL5')>
<#assign dbDriver="com.mysql.jdbc.Driver">
<#elseif (sysApiDBInst.getDBType()=='DB2')>
<#assign dbDriver="com.ibm.db2.jcc.DB2Driver">
<#elseif (sysApiDBInst.getDBType()=='ORACLE')>
<#assign dbDriver="oracle.jdbc.driver.OracleDriver">
<#elseif (sysApiDBInst.getDBType()=='SQLSERVER')>
<#assign dbDriver="com.microsoft.sqlserver.jdbc.SQLServerDriver">
<#elseif (sysApiDBInst.getDBType()=='POSTGRESQL')>
<#assign dbDriver="org.postgresql.Driver">
<#elseif (sysApiDBInst.getDBType()=='PPAS')>
<#assign dbDriver="com.edb.Driver">
</#if>
<#break>
</#if>
</#list>
</#if>
#nacos配置中心、数据源
spring:
cloud:
......@@ -64,13 +129,11 @@ spring:
max-wait: 300ms
max-idle: 16
min-idle: 8
<#if sysrun.getPSDBDevInst()??>
<#assign dbinst = sysrun.getPSDBDevInst()>
datasource:
username: ${dbinst.getUserName()}
password: '${dbinst.getPassword()}'
url: ${dbinst.getConnUrl()}
driver-class-name: <#if (dbinst.getDBType()=='MYSQL5')>com.mysql.jdbc.Driver<#elseif (dbinst.getDBType()=='DB2')>com.ibm.db2.jcc.DB2Driver<#elseif (dbinst.getDBType()=='ORACLE')>oracle.jdbc.driver.OracleDriver<#elseif (dbinst.getDBType()=='SQLSERVER')>com.microsoft.sqlserver.jdbc.SQLServerDriver<#elseif (dbinst.getDBType()=='POSTGRESQL')>org.postgresql.Driver<#elseif (dbinst.getDBType()=='PPAS')>com.edb.Driver</#if>
username: ${dbUserName}
password: '${dbPassWord}'
url: ${dbUrl}
driver-class-name: ${dbDriver}
filters: stat,wall,log4j2
#配置初始化大小/最小/最大
initial-size: 1
......@@ -90,9 +153,8 @@ spring:
pool-prepared-statements: false
max-pool-prepared-statement-per-connection-size: 20
isSyncDBSchema: false
defaultSchema: ${dbinst.getUserName()}
defaultSchema: ${dbUserName}
conf: classpath:liquibase/master.xml
</#if>
#Mybatis-plus配置
mybatis-plus:
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册