Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
MaxKey单点登录官方
Blazer
提交
1bbba81c
B
Blazer
项目概览
MaxKey单点登录官方
/
Blazer
通知
2
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
B
Blazer
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
1bbba81c
编写于
4月 09, 2019
作者:
MaxKey单点登录官方
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
RM
上级
8844994c
变更
1
显示空白变更内容
内联
并排
Showing
1 changed file
with
63 addition
and
16 deletion
+63
-16
README.md
README.md
+63
-16
未找到文件。
README.md
浏览文件 @
1bbba81c
...
...
@@ -135,11 +135,9 @@ echo run finished
<!-- Application properties configs 应用程序属性配置文件-->
<bean
id=
"propertySourcesPlaceholderConfigurer"
class=
"org.springframework.context.support.PropertySourcesPlaceholderConfigurer"
>
<property
name=
"locations"
>
<list>
<property
name=
"locations"
><list>
<value>
/pipeline/config/applicationConfig.properties
</value>
</list>
</property>
</list></property>
<property
name=
"ignoreUnresolvablePlaceholders"
value=
"true"
/>
</bean>
...
...
@@ -202,11 +200,9 @@ echo run finished
<!-- Application properties configs 应用程序属性配置文件-->
<bean
id=
"propertySourcesPlaceholderConfigurer"
class=
"org.springframework.context.support.PropertySourcesPlaceholderConfigurer"
>
<property
name=
"locations"
>
<list>
<property
name=
"locations"
><list>
<value>
/pipeline/config/applicationConfig.properties
</value>
</list>
</property>
</list></property>
<property
name=
"ignoreUnresolvablePlaceholders"
value=
"true"
/>
</bean>
...
...
@@ -270,7 +266,7 @@ echo run finished
</util:list>
</beans>
```
###### 数据文件导入到数据库
###### 数据文件导入到数据库
pipeLine
```
xml
<?xml version="1.0" encoding="UTF-8"?>
<beans
xmlns=
"http://www.springframework.org/schema/beans"
...
...
@@ -287,11 +283,9 @@ echo run finished
<!-- Application properties configs 应用程序属性配置文件-->
<bean
id=
"propertySourcesPlaceholderConfigurer"
class=
"org.springframework.context.support.PropertySourcesPlaceholderConfigurer"
>
<property
name=
"locations"
>
<list>
<property
name=
"locations"
><list>
<value>
/pipeline/config/applicationConfig.properties
</value>
</list>
</property>
</list></property>
<property
name=
"ignoreUnresolvablePlaceholders"
value=
"true"
/>
</bean>
...
...
@@ -377,3 +371,56 @@ echo run finished
</util:list>
</beans>
```
###### 数据表结构导出成制定数据库DDL pipeLine
```
xml
<?xml version="1.0" encoding="UTF-8"?>
<beans
xmlns=
"http://www.springframework.org/schema/beans"
xmlns:context=
"http://www.springframework.org/schema/context"
xmlns:xsi=
"http://www.w3.org/2001/XMLSchema-instance"
xmlns:util=
"http://www.springframework.org/schema/util"
xsi:schemaLocation=
"
http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans.xsd
http://www.springframework.org/schema/context
http://www.springframework.org/schema/context/spring-context.xsd
http://www.springframework.org/schema/util
http://www.springframework.org/schema/util/spring-util.xsd"
>
<!-- Application properties configs 应用程序属性配置文件-->
<bean
id=
"propertySourcesPlaceholderConfigurer"
class=
"org.springframework.context.support.PropertySourcesPlaceholderConfigurer"
>
<property
name=
"locations"
><list>
<value>
/pipeline/config/applicationConfig.properties
</value>
</list></property>
<property
name=
"ignoreUnresolvablePlaceholders"
value=
"true"
/>
</bean>
<context:component-scan
base-package=
"com.blazer"
/>
<!-- Datastore configuration /数据源配置 -->
<import
resource=
"database.xml"
/>
<!-- DDL导出描述文件 -->
<bean
id=
"dllExport"
class=
"com.blazer.ddl.DDLExport"
>
<!-- 导出数据源 -->
<property
name=
"dataSource"
ref=
"datasource_oracle"
/>
<property
name=
"url"
value=
"${datasource_oracle.url}"
/>
<property
name=
"user"
value=
"${datasource_oracle.username}"
/>
<!-- 导出数据库的owner或者schema -->
<property
name=
"owner"
value=
"DW"
/>
<!-- 导出创建表的前缀 -->
<property
name=
"tablePrefix"
value=
"DWMART."
/>
<!-- 导出权限赋予用户 -->
<property
name=
"grantUser"
value=
""
/>
<!-- 导出创建表的engine针对mysql -->
<property
name=
"engine"
value=
""
/>
<!-- 导出目标数据库类型 -->
<property
name=
"toDbType"
value=
"Greenplum"
/>
<!-- 导出源数据库的表名列表 -->
<property
name=
"configFilePath"
value=
"#{systemProperties['APP_PATH']}/conf/oraTable2Greenplum_user.txt"
/>
<!-- 导出创建语句的输出文件 -->
<property
name=
"exportFilePath"
value=
"#{systemProperties['APP_PATH']}/export/exportOracle2Greenplum.sql"
/>
</bean>
<!-- 配置执行的任务列表 -->
<util:list
id=
"pipeLineTask"
list-class=
"java.util.ArrayList"
>
<ref
bean=
"dllExport"
/>
</util:list>
</beans>
```
\ No newline at end of file
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录