Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
iBiz4j Spring R7
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
iBiz-R7后台标准模板
iBiz4j Spring R7
提交
3375aa67
提交
3375aa67
编写于
5月 15, 2020
作者:
zhouweidong
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
稳定yml
上级
8e9e6d31
变更
6
隐藏空白字符变更
内嵌
并排
正在显示
6 个修改的文件
包含
121 行增加
和
81 行删除
+121
-81
application-%APP_PKGPATH%-dev.yml.ftl
.../src/main/resources/application-%APP_PKGPATH%-dev.yml.ftl
+2
-9
application-%APP_PKGPATH%-prod.yml.ftl
...src/main/resources/application-%APP_PKGPATH%-prod.yml.ftl
+7
-6
application-dev.yml.ftl
SLN/%PUBPRJ%-boot/src/main/resources/application-dev.yml.ftl
+2
-10
application-%API_PKGPATH%-dev.yml.ftl
.../src/main/resources/application-%API_PKGPATH%-dev.yml.ftl
+1
-10
application-%API_PKGPATH%-prod.yml.ftl
...src/main/resources/application-%API_PKGPATH%-prod.yml.ftl
+6
-5
application-sys.yml.ftl
SLN/%PUBPRJ%-util/src/main/resources/application-sys.yml.ftl
+103
-41
未找到文件。
SLN/%PUBPRJ%-app/%PUBPRJ%-app-%APP_PKGPATH%/src/main/resources/application-%APP_PKGPATH%-dev.yml.ftl
浏览文件 @
3375aa67
<#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
SLN/%PUBPRJ%-app/%PUBPRJ%-app-%APP_PKGPATH%/src/main/resources/application-%APP_PKGPATH%-prod.yml.ftl
浏览文件 @
3375aa67
...
...
@@ -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}
...
...
SLN/%PUBPRJ%-boot/src/main/resources/application-dev.yml.ftl
浏览文件 @
3375aa67
<#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()??>
...
...
SLN/%PUBPRJ%-provider/%PUBPRJ%-provider-%SYSAPI_PKGPATH%/src/main/resources/application-%API_PKGPATH%-dev.yml.ftl
浏览文件 @
3375aa67
<#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
SLN/%PUBPRJ%-provider/%PUBPRJ%-provider-%SYSAPI_PKGPATH%/src/main/resources/application-%API_PKGPATH%-prod.yml.ftl
浏览文件 @
3375aa67
...
...
@@ -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}
SLN/%PUBPRJ%-util/src/main/resources/application-sys.yml.ftl
浏览文件 @
3375aa67
...
...
@@ -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: ${db
inst.getUserName()
}
password: '${db
inst.getPassword()
}'
url: ${db
inst.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: ${db
UserName
}
password: '${db
PassWord
}'
url: ${db
Url
}
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: ${db
inst.getUserName()
}
defaultSchema: ${db
UserName
}
conf: classpath:liquibase/master.xml
</#if>
#Mybatis-plus配置
mybatis-plus:
...
...
编辑
预览
Markdown
格式
0%
请重试
or
添加新附件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录