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

根据平台数据库配置引入对应驱动

上级 71c6b147
......@@ -81,6 +81,17 @@ TARGET=PSSYSTEM
<!--xxl-job定时服务 -->
<xxl-job.version>2.1.0</xxl-job.version>
<#if sys.getAllPSSystemDBConfigs()??>
<#list sys.getAllPSSystemDBConfigs() as dbConfig>
<#if dbConfig.getDBType()=='MYSQL5'>
<#elseif dbConfig.getDBType()=='ORACLE'>
<oracle.version>11.2.0.3</oracle.version>
<#elseif dbConfig.getDBType()=='POSTGRESQL'>
<postgresql.version>42.2.6</postgresql.version>
</#if>
</#list>
</#if>
</properties>
<#-- dependencies,just for statement, manage the version of jars -->
......@@ -314,12 +325,6 @@ TARGET=PSSYSTEM
<artifactId>httpclient</artifactId>
</dependency>
<!-- MySQL驱动包 -->
<dependency>
<groupId>mysql</groupId>
<artifactId>mysql-connector-java</artifactId>
</dependency>
<!-- 阿里Druid数据源 -->
<dependency>
<groupId>com.alibaba</groupId>
......@@ -332,17 +337,31 @@ TARGET=PSSYSTEM
<artifactId>h2</artifactId>
</dependency>
<!-- Error -->
<#--<dependency>-->
<#--<groupId>org.zalando</groupId>-->
<#--<artifactId>problem-spring-web</artifactId>-->
<#--</dependency>-->
<!-- Security -->
<#--<dependency>-->
<#--<groupId>org.springframework.cloud</groupId>-->
<#--<artifactId>spring-cloud-starter-security</artifactId>-->
<#--</dependency>-->
<#if sys.getAllPSSystemDBConfigs()??>
<#list sys.getAllPSSystemDBConfigs() as dbConfig>
<#if dbConfig.getDBType()=='MYSQL5'>
<!-- MySQL驱动包 -->
<dependency>
<groupId>mysql</groupId>
<artifactId>mysql-connector-java</artifactId>
</dependency>
<#elseif dbConfig.getDBType()=='ORACLE'>
<!-- Oracle驱动包 -->
<dependency>
<groupId>com.oracle</groupId>
<artifactId>ojdbc6</artifactId>
<version>${r'${oracle.version}'}</version>
</dependency>
<#elseif dbConfig.getDBType()=='POSTGRESQL'>
<!-- PostgreSQL驱动包 -->
<dependency>
<groupId>org.postgresql</groupId>
<artifactId>postgresql</artifactId>
<version>${r'${postgresql.version}'}</version>
</dependency>
</#if>
</#list>
</#if>
</dependencies>
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册