Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
I
ibzdst
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
议题
1
议题
1
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
ibiz4jteam
ibzdst
提交
b6f2a609
提交
b6f2a609
编写于
3月 17, 2021
作者:
ibizdev
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
ibiz4j 发布系统代码 [ibz-dst,应用]
上级
eceb2f8a
变更
8
隐藏空白字符变更
内嵌
并排
正在显示
8 个修改的文件
包含
126 行增加
和
36 行删除
+126
-36
meta-model_BO_CN_base.ts
...ocale/lanres/entities/meta-model/meta-model_BO_CN_base.ts
+4
-4
meta-model_en_US_base.ts
...ocale/lanres/entities/meta-model/meta-model_en_US_base.ts
+4
-4
meta-model_zh_CN_base.ts
...ocale/lanres/entities/meta-model/meta-model_zh_CN_base.ts
+4
-4
meta-model-grid-view-base.vue
...s/lite/meta-model-grid-view/meta-model-grid-view-base.vue
+15
-15
AnalysisBuildJobHandler.java
...ava/cn/ibizlab/core/util/job/AnalysisBuildJobHandler.java
+3
-3
ETLTableSyncJobHandler.java
...java/cn/ibizlab/core/util/job/ETLTableSyncJobHandler.java
+3
-3
RuleExecJobHandler.java
...ain/java/cn/ibizlab/core/util/job/RuleExecJobHandler.java
+3
-3
Setting.java
...st-util/src/main/java/cn/ibizlab/util/helper/Setting.java
+90
-0
未找到文件。
app_web/src/locale/lanres/entities/meta-model/meta-model_BO_CN_base.ts
浏览文件 @
b6f2a609
...
@@ -104,14 +104,14 @@ function getLocaleResourceBase(){
...
@@ -104,14 +104,14 @@ function getLocaleResourceBase(){
},
},
},
},
gridviewtoolbar_toolbar
:
{
gridviewtoolbar_toolbar
:
{
tbitem1_export
:
{
caption
:
commonLogic
.
appcommonhandle
(
"模型导出"
,
null
),
tip
:
commonLogic
.
appcommonhandle
(
"模型导出"
,
null
),
},
tbitem1_import
:
{
tbitem1_import
:
{
caption
:
commonLogic
.
appcommonhandle
(
"模型导入"
,
null
),
caption
:
commonLogic
.
appcommonhandle
(
"模型导入"
,
null
),
tip
:
commonLogic
.
appcommonhandle
(
"模型导入"
,
null
),
tip
:
commonLogic
.
appcommonhandle
(
"模型导入"
,
null
),
},
},
tbitem1_export
:
{
caption
:
commonLogic
.
appcommonhandle
(
"模型导出"
,
null
),
tip
:
commonLogic
.
appcommonhandle
(
"模型导出"
,
null
),
},
tbitem2
:
{
tbitem2
:
{
caption
:
commonLogic
.
appcommonhandle
(
"-"
,
null
),
caption
:
commonLogic
.
appcommonhandle
(
"-"
,
null
),
tip
:
commonLogic
.
appcommonhandle
(
""
,
null
),
tip
:
commonLogic
.
appcommonhandle
(
""
,
null
),
...
...
app_web/src/locale/lanres/entities/meta-model/meta-model_en_US_base.ts
浏览文件 @
b6f2a609
...
@@ -104,14 +104,14 @@ function getLocaleResourceBase(){
...
@@ -104,14 +104,14 @@ function getLocaleResourceBase(){
},
},
},
},
gridviewtoolbar_toolbar
:
{
gridviewtoolbar_toolbar
:
{
tbitem1_export
:
{
caption
:
commonLogic
.
appcommonhandle
(
"模型导出"
,
null
),
tip
:
commonLogic
.
appcommonhandle
(
"模型导出"
,
null
),
},
tbitem1_import
:
{
tbitem1_import
:
{
caption
:
commonLogic
.
appcommonhandle
(
"模型导入"
,
null
),
caption
:
commonLogic
.
appcommonhandle
(
"模型导入"
,
null
),
tip
:
commonLogic
.
appcommonhandle
(
"模型导入"
,
null
),
tip
:
commonLogic
.
appcommonhandle
(
"模型导入"
,
null
),
},
},
tbitem1_export
:
{
caption
:
commonLogic
.
appcommonhandle
(
"模型导出"
,
null
),
tip
:
commonLogic
.
appcommonhandle
(
"模型导出"
,
null
),
},
tbitem2
:
{
tbitem2
:
{
caption
:
commonLogic
.
appcommonhandle
(
"-"
,
null
),
caption
:
commonLogic
.
appcommonhandle
(
"-"
,
null
),
tip
:
commonLogic
.
appcommonhandle
(
""
,
null
),
tip
:
commonLogic
.
appcommonhandle
(
""
,
null
),
...
...
app_web/src/locale/lanres/entities/meta-model/meta-model_zh_CN_base.ts
浏览文件 @
b6f2a609
...
@@ -104,14 +104,14 @@ function getLocaleResourceBase(){
...
@@ -104,14 +104,14 @@ function getLocaleResourceBase(){
},
},
},
},
gridviewtoolbar_toolbar
:
{
gridviewtoolbar_toolbar
:
{
tbitem1_export
:
{
caption
:
commonLogic
.
appcommonhandle
(
"模型导出"
,
null
),
tip
:
commonLogic
.
appcommonhandle
(
"模型导出"
,
null
),
},
tbitem1_import
:
{
tbitem1_import
:
{
caption
:
commonLogic
.
appcommonhandle
(
"模型导入"
,
null
),
caption
:
commonLogic
.
appcommonhandle
(
"模型导入"
,
null
),
tip
:
commonLogic
.
appcommonhandle
(
"模型导入"
,
null
),
tip
:
commonLogic
.
appcommonhandle
(
"模型导入"
,
null
),
},
},
tbitem1_export
:
{
caption
:
commonLogic
.
appcommonhandle
(
"模型导出"
,
null
),
tip
:
commonLogic
.
appcommonhandle
(
"模型导出"
,
null
),
},
tbitem2
:
{
tbitem2
:
{
caption
:
commonLogic
.
appcommonhandle
(
"-"
,
null
),
caption
:
commonLogic
.
appcommonhandle
(
"-"
,
null
),
tip
:
commonLogic
.
appcommonhandle
(
""
,
null
),
tip
:
commonLogic
.
appcommonhandle
(
""
,
null
),
...
...
app_web/src/pages/lite/meta-model-grid-view/meta-model-grid-view-base.vue
浏览文件 @
b6f2a609
...
@@ -13,18 +13,18 @@
...
@@ -13,18 +13,18 @@
<div
class=
'pull-right'
>
<div
class=
'pull-right'
>
<div
class=
'toolbar-container'
>
<div
class=
'toolbar-container'
>
<tooltip
:transfer=
"true"
:max-width=
"600"
>
<tooltip
:transfer=
"true"
:max-width=
"600"
>
<i-button
v-show=
"toolBarModels.tbitem1_
export.visabled"
:disabled=
"toolBarModels.tbitem1_export.disabled"
class=
''
v-loading:i-button
@
click=
"toolbar_click(
{ tag: 'tbitem1_ex
port' }, $event)">
<i-button
v-show=
"toolBarModels.tbitem1_
import.visabled"
:disabled=
"toolBarModels.tbitem1_import.disabled"
class=
''
v-loading:i-button
@
click=
"toolbar_click(
{ tag: 'tbitem1_im
port' }, $event)">
<i
class=
''
></i>
<i
class=
''
></i>
<span
class=
'caption'
>
{{
$t
(
'entities.metamodel.gridviewtoolbar_toolbar.tbitem1_
ex
port.caption'
)
}}
</span>
<span
class=
'caption'
>
{{
$t
(
'entities.metamodel.gridviewtoolbar_toolbar.tbitem1_
im
port.caption'
)
}}
</span>
</i-button>
</i-button>
<div
slot=
'content'
>
{{
$t
(
'entities.metamodel.gridviewtoolbar_toolbar.tbitem1_
ex
port.tip'
)
}}
</div>
<div
slot=
'content'
>
{{
$t
(
'entities.metamodel.gridviewtoolbar_toolbar.tbitem1_
im
port.tip'
)
}}
</div>
</tooltip>
</tooltip>
<tooltip
:transfer=
"true"
:max-width=
"600"
>
<tooltip
:transfer=
"true"
:max-width=
"600"
>
<i-button
v-show=
"toolBarModels.tbitem1_
import.visabled"
:disabled=
"toolBarModels.tbitem1_import.disabled"
class=
''
v-loading:i-button
@
click=
"toolbar_click(
{ tag: 'tbitem1_im
port' }, $event)">
<i-button
v-show=
"toolBarModels.tbitem1_
export.visabled"
:disabled=
"toolBarModels.tbitem1_export.disabled"
class=
''
v-loading:i-button
@
click=
"toolbar_click(
{ tag: 'tbitem1_ex
port' }, $event)">
<i
class=
''
></i>
<i
class=
''
></i>
<span
class=
'caption'
>
{{
$t
(
'entities.metamodel.gridviewtoolbar_toolbar.tbitem1_
im
port.caption'
)
}}
</span>
<span
class=
'caption'
>
{{
$t
(
'entities.metamodel.gridviewtoolbar_toolbar.tbitem1_
ex
port.caption'
)
}}
</span>
</i-button>
</i-button>
<div
slot=
'content'
>
{{
$t
(
'entities.metamodel.gridviewtoolbar_toolbar.tbitem1_
im
port.tip'
)
}}
</div>
<div
slot=
'content'
>
{{
$t
(
'entities.metamodel.gridviewtoolbar_toolbar.tbitem1_
ex
port.tip'
)
}}
</div>
</tooltip>
</tooltip>
<span
class=
'seperator'
>
|
</span>
<span
class=
'seperator'
>
|
</span>
<tooltip
:transfer=
"true"
:max-width=
"600"
>
<tooltip
:transfer=
"true"
:max-width=
"600"
>
...
@@ -384,10 +384,10 @@ export default class MetaModelGridViewBase extends Vue {
...
@@ -384,10 +384,10 @@ export default class MetaModelGridViewBase extends Vue {
* @memberof MetaModelGridView
* @memberof MetaModelGridView
*/
*/
public
toolBarModels
:
any
=
{
public
toolBarModels
:
any
=
{
tbitem1_export
:
{
name
:
'tbitem1_export'
,
actiontarget
:
'NONE'
,
caption
:
'模型导出'
,
disabled
:
false
,
type
:
'DEUIACTION'
,
visabled
:
true
,
noprivdisplaymode
:
2
,
dataaccaction
:
''
,
uiaction
:
{
tag
:
'export'
,
target
:
'MULTIKEY'
}
},
tbitem1_import
:
{
name
:
'tbitem1_import'
,
actiontarget
:
'NONE'
,
caption
:
'模型导入'
,
disabled
:
false
,
type
:
'DEUIACTION'
,
visabled
:
true
,
noprivdisplaymode
:
2
,
dataaccaction
:
''
,
uiaction
:
{
tag
:
'import'
,
target
:
'NONE'
}
},
tbitem1_import
:
{
name
:
'tbitem1_import'
,
actiontarget
:
'NONE'
,
caption
:
'模型导入'
,
disabled
:
false
,
type
:
'DEUIACTION'
,
visabled
:
true
,
noprivdisplaymode
:
2
,
dataaccaction
:
''
,
uiaction
:
{
tag
:
'import'
,
target
:
'NONE'
}
},
tbitem1_export
:
{
name
:
'tbitem1_export'
,
actiontarget
:
'NONE'
,
caption
:
'模型导出'
,
disabled
:
false
,
type
:
'DEUIACTION'
,
visabled
:
true
,
noprivdisplaymode
:
2
,
dataaccaction
:
''
,
uiaction
:
{
tag
:
'export'
,
target
:
'MULTIKEY'
}
},
tbitem2
:
{
name
:
'tbitem2'
,
type
:
'SEPERATOR'
,
visabled
:
true
,
dataaccaction
:
''
,
uiaction
:
{
}
},
tbitem2
:
{
name
:
'tbitem2'
,
type
:
'SEPERATOR'
,
visabled
:
true
,
dataaccaction
:
''
,
uiaction
:
{
}
},
tbitem3
:
{
name
:
'tbitem3'
,
actiontarget
:
'NONE'
,
caption
:
'新建'
,
disabled
:
false
,
type
:
'DEUIACTION'
,
visabled
:
true
,
noprivdisplaymode
:
2
,
dataaccaction
:
''
,
uiaction
:
{
tag
:
'New'
,
target
:
''
}
},
tbitem3
:
{
name
:
'tbitem3'
,
actiontarget
:
'NONE'
,
caption
:
'新建'
,
disabled
:
false
,
type
:
'DEUIACTION'
,
visabled
:
true
,
noprivdisplaymode
:
2
,
dataaccaction
:
''
,
uiaction
:
{
tag
:
'New'
,
target
:
''
}
},
...
@@ -764,12 +764,12 @@ export default class MetaModelGridViewBase extends Vue {
...
@@ -764,12 +764,12 @@ export default class MetaModelGridViewBase extends Vue {
* @memberof MetaModelGridViewBase
* @memberof MetaModelGridViewBase
*/
*/
public
toolbar_click
(
$event
:
any
,
$event2
?:
any
)
{
public
toolbar_click
(
$event
:
any
,
$event2
?:
any
)
{
if
(
Object
.
is
(
$event
.
tag
,
'tbitem1_export'
))
{
this
.
toolbar_tbitem1_export_click
(
null
,
''
,
$event2
);
}
if
(
Object
.
is
(
$event
.
tag
,
'tbitem1_import'
))
{
if
(
Object
.
is
(
$event
.
tag
,
'tbitem1_import'
))
{
this
.
toolbar_tbitem1_import_click
(
null
,
''
,
$event2
);
this
.
toolbar_tbitem1_import_click
(
null
,
''
,
$event2
);
}
}
if
(
Object
.
is
(
$event
.
tag
,
'tbitem1_export'
))
{
this
.
toolbar_tbitem1_export_click
(
null
,
''
,
$event2
);
}
if
(
Object
.
is
(
$event
.
tag
,
'tbitem3'
))
{
if
(
Object
.
is
(
$event
.
tag
,
'tbitem3'
))
{
this
.
toolbar_tbitem3_click
(
null
,
''
,
$event2
);
this
.
toolbar_tbitem3_click
(
null
,
''
,
$event2
);
}
}
...
@@ -920,7 +920,7 @@ export default class MetaModelGridViewBase extends Vue {
...
@@ -920,7 +920,7 @@ export default class MetaModelGridViewBase extends Vue {
* @param {*} [$event]
* @param {*} [$event]
* @memberof
* @memberof
*/
*/
public
toolbar_tbitem1_
ex
port_click
(
params
:
any
=
{},
tag
?:
any
,
$event
?:
any
)
{
public
toolbar_tbitem1_
im
port_click
(
params
:
any
=
{},
tag
?:
any
,
$event
?:
any
)
{
// 参数
// 参数
// 取数
// 取数
let
datas
:
any
[]
=
[];
let
datas
:
any
[]
=
[];
...
@@ -938,7 +938,7 @@ export default class MetaModelGridViewBase extends Vue {
...
@@ -938,7 +938,7 @@ export default class MetaModelGridViewBase extends Vue {
}
}
// 界面行为
// 界面行为
const
curUIService
:
MetaModelUIService
=
new
MetaModelUIService
();
const
curUIService
:
MetaModelUIService
=
new
MetaModelUIService
();
curUIService
.
MetaModel_
ex
port
(
datas
,
contextJO
,
paramJO
,
$event
,
xData
,
this
,
"MetaModel"
);
curUIService
.
MetaModel_
im
port
(
datas
,
contextJO
,
paramJO
,
$event
,
xData
,
this
,
"MetaModel"
);
}
}
/**
/**
...
@@ -949,7 +949,7 @@ export default class MetaModelGridViewBase extends Vue {
...
@@ -949,7 +949,7 @@ export default class MetaModelGridViewBase extends Vue {
* @param {*} [$event]
* @param {*} [$event]
* @memberof
* @memberof
*/
*/
public
toolbar_tbitem1_
im
port_click
(
params
:
any
=
{},
tag
?:
any
,
$event
?:
any
)
{
public
toolbar_tbitem1_
ex
port_click
(
params
:
any
=
{},
tag
?:
any
,
$event
?:
any
)
{
// 参数
// 参数
// 取数
// 取数
let
datas
:
any
[]
=
[];
let
datas
:
any
[]
=
[];
...
@@ -967,7 +967,7 @@ export default class MetaModelGridViewBase extends Vue {
...
@@ -967,7 +967,7 @@ export default class MetaModelGridViewBase extends Vue {
}
}
// 界面行为
// 界面行为
const
curUIService
:
MetaModelUIService
=
new
MetaModelUIService
();
const
curUIService
:
MetaModelUIService
=
new
MetaModelUIService
();
curUIService
.
MetaModel_
im
port
(
datas
,
contextJO
,
paramJO
,
$event
,
xData
,
this
,
"MetaModel"
);
curUIService
.
MetaModel_
ex
port
(
datas
,
contextJO
,
paramJO
,
$event
,
xData
,
this
,
"MetaModel"
);
}
}
/**
/**
...
...
ibzdst-core/src/main/java/cn/ibizlab/core/util/job/AnalysisBuildJobHandler.java
浏览文件 @
b6f2a609
...
@@ -18,9 +18,9 @@ public class AnalysisBuildJobHandler implements IJobsHandler {
...
@@ -18,9 +18,9 @@ public class AnalysisBuildJobHandler implements IJobsHandler {
@Override
@Override
public
JobsResponse
execute
(
String
tenantId
,
String
param
)
throws
JobsException
{
public
JobsResponse
execute
(
String
tenantId
,
String
param
)
throws
JobsException
{
cn
.
ibizlab
.
core
.
analysis
.
domain
.
DABuild
entity
=
new
cn
.
ibizlab
.
core
.
analysis
.
domain
.
DABuild
(
);
cn
.
ibizlab
.
core
.
analysis
.
domain
.
DABuild
entity
=
cn
.
ibizlab
.
util
.
helper
.
Setting
.
getEntity
(
param
,
new
cn
.
ibizlab
.
core
.
analysis
.
domain
.
DABuild
()
);
entity
.
set
(
"tenantid"
,
tenantId
);
entity
.
set
(
"tenantid"
,
tenantId
);
entity
.
set
(
"param"
,
param
);
entity
.
set
(
"param"
,
param
);
dabuildService
.
run
(
entity
);
dabuildService
.
run
(
entity
);
log
.
info
(
"执行 DemoJobHandler tenantId="
+
tenantId
+
",param="
+
param
);
log
.
info
(
"执行 DemoJobHandler tenantId="
+
tenantId
+
",param="
+
param
);
return
JobsResponse
.
ok
();
return
JobsResponse
.
ok
();
...
...
ibzdst-core/src/main/java/cn/ibizlab/core/util/job/ETLTableSyncJobHandler.java
浏览文件 @
b6f2a609
...
@@ -18,9 +18,9 @@ public class ETLTableSyncJobHandler implements IJobsHandler {
...
@@ -18,9 +18,9 @@ public class ETLTableSyncJobHandler implements IJobsHandler {
@Override
@Override
public
JobsResponse
execute
(
String
tenantId
,
String
param
)
throws
JobsException
{
public
JobsResponse
execute
(
String
tenantId
,
String
param
)
throws
JobsException
{
cn
.
ibizlab
.
core
.
lite
.
domain
.
TableSync
entity
=
new
cn
.
ibizlab
.
core
.
lite
.
domain
.
TableSync
(
);
cn
.
ibizlab
.
core
.
lite
.
domain
.
TableSync
entity
=
cn
.
ibizlab
.
util
.
helper
.
Setting
.
getEntity
(
param
,
new
cn
.
ibizlab
.
core
.
lite
.
domain
.
TableSync
()
);
entity
.
set
(
"tenantid"
,
tenantId
);
entity
.
set
(
"tenantid"
,
tenantId
);
entity
.
set
(
"param"
,
param
);
entity
.
set
(
"param"
,
param
);
tablesyncService
.
sync
(
entity
);
tablesyncService
.
sync
(
entity
);
log
.
info
(
"执行 DemoJobHandler tenantId="
+
tenantId
+
",param="
+
param
);
log
.
info
(
"执行 DemoJobHandler tenantId="
+
tenantId
+
",param="
+
param
);
return
JobsResponse
.
ok
();
return
JobsResponse
.
ok
();
...
...
ibzdst-core/src/main/java/cn/ibizlab/core/util/job/RuleExecJobHandler.java
浏览文件 @
b6f2a609
...
@@ -18,9 +18,9 @@ public class RuleExecJobHandler implements IJobsHandler {
...
@@ -18,9 +18,9 @@ public class RuleExecJobHandler implements IJobsHandler {
@Override
@Override
public
JobsResponse
execute
(
String
tenantId
,
String
param
)
throws
JobsException
{
public
JobsResponse
execute
(
String
tenantId
,
String
param
)
throws
JobsException
{
cn
.
ibizlab
.
core
.
rule
.
domain
.
RuleEngine
entity
=
new
cn
.
ibizlab
.
core
.
rule
.
domain
.
RuleEngine
(
);
cn
.
ibizlab
.
core
.
rule
.
domain
.
RuleEngine
entity
=
cn
.
ibizlab
.
util
.
helper
.
Setting
.
getEntity
(
param
,
new
cn
.
ibizlab
.
core
.
rule
.
domain
.
RuleEngine
()
);
entity
.
set
(
"tenantid"
,
tenantId
);
entity
.
set
(
"tenantid"
,
tenantId
);
entity
.
set
(
"param"
,
param
);
entity
.
set
(
"param"
,
param
);
ruleengineService
.
run
(
entity
);
ruleengineService
.
run
(
entity
);
log
.
info
(
"执行 DemoJobHandler tenantId="
+
tenantId
+
",param="
+
param
);
log
.
info
(
"执行 DemoJobHandler tenantId="
+
tenantId
+
",param="
+
param
);
return
JobsResponse
.
ok
();
return
JobsResponse
.
ok
();
...
...
ibzdst-util/src/main/java/cn/ibizlab/util/helper/Setting.java
0 → 100644
浏览文件 @
b6f2a609
package
cn
.
ibizlab
.
util
.
helper
;
import
cn.ibizlab.util.domain.EntityBase
;
import
com.alibaba.fastjson.JSON
;
import
com.alibaba.fastjson.JSONArray
;
import
com.alibaba.fastjson.JSONObject
;
import
lombok.Getter
;
import
lombok.NoArgsConstructor
;
import
lombok.Setter
;
import
lombok.experimental.Accessors
;
import
org.springframework.util.StringUtils
;
import
java.io.IOException
;
import
java.io.StringReader
;
import
java.util.*
;
@Getter
@Setter
@NoArgsConstructor
@Accessors
(
chain
=
true
)
public
class
Setting
{
private
String
property
;
private
String
value
;
public
static
String
getValue
(
String
configString
,
String
propertyName
)
{
return
DataObject
.
getStringValue
(
getMap
(
configString
).
get
(
propertyName
),
""
);
}
public
static
<
T
extends
EntityBase
>
T
getEntity
(
String
configString
,
T
entityBase
)
{
if
(
entityBase
!=
null
)
{
Map
map
=
getMap
(
configString
);
map
.
keySet
().
forEach
(
key
->{
entityBase
.
set
(
key
.
toString
(),
map
.
get
(
key
));
});
}
return
entityBase
;
}
public
static
Map
getMap
(
String
configString
)
{
Map
map
=
new
HashMap
();
map
.
put
(
"param"
,
configString
);
if
(!(
StringUtils
.
isEmpty
(
configString
)))
{
try
{
Object
obj
=
JSON
.
parse
(
configString
);
if
(
obj
==
null
)
return
map
;
else
if
(
obj
instanceof
JSONArray
)
{
List
<
Setting
>
settings
=
JSONArray
.
parseArray
(
configString
,
Setting
.
class
);
for
(
Setting
setting:
settings
)
map
.
put
(
setting
.
getProperty
(),
setting
.
getValue
());
}
else
if
(
obj
instanceof
JSONObject
)
{
JSONObject
jo
=
(
JSONObject
)
obj
;
jo
.
keySet
().
forEach
(
key
->{
map
.
put
(
key
,
jo
.
get
(
key
));
});
}
}
catch
(
Exception
ex
)
{
if
(
configString
.
indexOf
(
"="
)>
0
)
{
Properties
proper
=
new
Properties
();
try
{
proper
.
load
(
new
StringReader
(
configString
));
//把字符串转为reader
}
catch
(
IOException
e
)
{
}
Enumeration
enum1
=
proper
.
propertyNames
();
while
(
enum1
.
hasMoreElements
())
{
String
strKey
=
(
String
)
enum1
.
nextElement
();
String
strValue
=
proper
.
getProperty
(
strKey
);
map
.
put
(
strKey
,
strValue
);
}
}
}
}
return
map
;
}
}
编辑
预览
Markdown
格式
0%
请重试
or
添加新附件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录