Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Laurel Lee
O2OA
Commits
5ce58d79
Commit
5ce58d79
authored
3 years ago
by
o2null
Browse files
Options
Download
Plain Diff
Merge branch 'fix/oauth' into 'wrdp'
fix oauth See merge request o2oa/o2oa!5900
parents
1641e635
4a65d4c5
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
o2server/configSample/externalDataSources_kingbase8r6.json
+12
-0
o2server/configSample/externalDataSources_kingbase8r6.json
o2server/x_base_core_project/src/main/java/com/x/base/core/project/config/ExternalDataSource.java
+12
-12
...va/com/x/base/core/project/config/ExternalDataSource.java
o2server/x_organization_assemble_authentication/src/main/java/com/x/organization/assemble/authentication/jaxrs/authentication/ActionOauthGet.java
+1
-1
...e/authentication/jaxrs/authentication/ActionOauthGet.java
o2server/x_organization_assemble_authentication/src/main/java/com/x/organization/assemble/authentication/jaxrs/authentication/BaseAction.java
+4
-1
...emble/authentication/jaxrs/authentication/BaseAction.java
with
29 additions
and
14 deletions
+29
-14
o2server/configSample/externalDataSources_kingbase8r6.json
0 → 100644
+
12
-
0
View file @
5ce58d79
[
{
"url"
:
"jdbc:kingbase8://127.0.0.1:54321/X"
,
"username"
:
"system"
,
"password"
:
"krms"
,
"includes"
:
[],
"excludes"
:
[],
"enable"
:
true
,
"statEnable"
:
false
,
"statFilter"
:
false
}
]
\ No newline at end of file
This diff is collapsed.
Click to expand it.
o2server/x_base_core_project/src/main/java/com/x/base/core/project/config/ExternalDataSource.java
+
12
-
12
View file @
5ce58d79
...
...
@@ -41,31 +41,31 @@ public class ExternalDataSource extends ConfigObject {
@FieldDescribe
(
"是否启用,可以使用切片方式启用多个数据以提高性能,如果启用多个数据库,那么必须是相同类型的,不能混用,且用户名密码必须一致."
)
private
Boolean
enable
;
@FieldDescribe
(
"jdbc连接地址"
)
@FieldDescribe
(
"jdbc连接地址
.
"
)
private
String
url
;
@FieldDescribe
(
"数据库jdbc连接用户名"
)
@FieldDescribe
(
"数据库jdbc连接用户名
.
"
)
private
String
username
;
@FieldDescribe
(
"数据库jdbc连接密码"
)
@FieldDescribe
(
"数据库jdbc连接密码
.
"
)
private
String
password
;
@FieldDescribe
(
"数据库驱动类名"
)
@FieldDescribe
(
"数据库驱动类名
.
"
)
private
String
driverClassName
;
@FieldDescribe
(
"方言"
)
@FieldDescribe
(
"方言
类.
"
)
private
String
dictionary
;
@FieldDescribe
(
"最大使用连接数"
)
@FieldDescribe
(
"最大使用连接数
.
"
)
private
Integer
maxTotal
;
@FieldDescribe
(
"最大空闲连接数"
)
@FieldDescribe
(
"最大空闲连接数
.
"
)
private
Integer
maxIdle
;
@FieldDescribe
(
"启用统计,默认启用"
)
@FieldDescribe
(
"启用统计,默认启用
.
"
)
private
Boolean
statEnable
;
@FieldDescribe
(
"统计方式配置,默认mergeStat"
)
@FieldDescribe
(
"统计方式配置,默认mergeStat
.
"
)
private
String
statFilter
;
@FieldDescribe
(
"执行缓慢sql毫秒数,默认2000毫秒,执行缓慢的sql将被单独记录."
)
private
Integer
slowSqlMillis
;
@FieldDescribe
(
"设置此数据库存储的类,默认情况下存储所有类型,如果需要对每个类进行单独的控制以达到高性能,可以将不同的类存储到不同的节点上提高性能.可以使用通配符*"
)
@FieldDescribe
(
"设置此数据库存储的类,默认情况下存储所有类型,如果需要对每个类进行单独的控制以达到高性能,可以将不同的类存储到不同的节点上提高性能.可以使用通配符*
.
"
)
private
List
<
String
>
includes
;
@FieldDescribe
(
"在此节点上不存储的类,和includes一起设置实际存储的类,可以使用通配符*"
)
@FieldDescribe
(
"在此节点上不存储的类,和includes一起设置实际存储的类,可以使用通配符*
.
"
)
private
List
<
String
>
excludes
;
@FieldDescribe
(
"默认日志级别,FATAL, ERROR, WARN, INFO, TRACE. 完整的配置为DefaultLevel=WARN, Tool=TRACE, Enhance=TRACE, METADATA=TRACE, Runtime=TRACE, Query=TRACE, DataCache=TRACE, JDBC=TRACE, SQL=TRACE"
)
@FieldDescribe
(
"默认日志级别,FATAL, ERROR, WARN, INFO, TRACE. 完整的配置为DefaultLevel=WARN, Tool=TRACE, Enhance=TRACE, METADATA=TRACE, Runtime=TRACE, Query=TRACE, DataCache=TRACE, JDBC=TRACE, SQL=TRACE
.
"
)
private
String
logLevel
=
DEFAULT_LOGLEVEL
;
@FieldDescribe
(
"事务隔离级别:default,none,read-uncommitted,read-committed,repeatable-read,serializable.默认使用default(数据库设置的事务级别)."
)
private
String
transactionIsolation
;
...
...
This diff is collapsed.
Click to expand it.
o2server/x_organization_assemble_authentication/src/main/java/com/x/organization/assemble/authentication/jaxrs/authentication/ActionOauthGet.java
+
1
-
1
View file @
5ce58d79
...
...
@@ -38,7 +38,7 @@ class ActionOauthGet extends BaseAction {
wo
.
setAuthMethod
(
oauthClient
.
getAuthMethod
());
wo
.
setIcon
(
oauthClient
.
getIcon
());
Map
<
String
,
Object
>
param
=
oauthCreateParam
(
oauthClient
,
""
,
""
);
String
authParameter
=
fillParameter
(
oauthClient
.
getAuthParameter
(),
param
);
String
authParameter
=
fillParameter
(
oauthClient
.
getAuthParameter
(),
param
);
logger
.
debug
(
"auth parameter:{}."
,
authParameter
);
wo
.
setAuthParameter
(
authParameter
);
result
.
setData
(
wo
);
...
...
This diff is collapsed.
Click to expand it.
o2server/x_organization_assemble_authentication/src/main/java/com/x/organization/assemble/authentication/jaxrs/authentication/BaseAction.java
+
4
-
1
View file @
5ce58d79
...
...
@@ -336,7 +336,10 @@ abstract class BaseAction extends StandardJaxrsAction {
Pattern
pattern
=
Pattern
.
compile
(
"\\{\\$(.+?)\\}"
);
Matcher
matcher
=
pattern
.
matcher
(
txt
);
while
(
matcher
.
find
())
{
txt
=
StringUtils
.
replace
(
txt
,
matcher
.
group
(),
Objects
.
toString
(
param
.
get
(
matcher
.
group
(
1
))));
Object
value
=
param
.
get
(
matcher
.
group
(
1
));
if
(
null
!=
value
)
{
txt
=
StringUtils
.
replace
(
txt
,
matcher
.
group
(),
Objects
.
toString
(
value
));
}
}
return
txt
;
}
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment
Menu
Projects
Groups
Snippets
Help