Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
jinli gu
RuoYi Vue
Commits
71e7e1d6
Commit
71e7e1d6
authored
Jan 19, 2023
by
RuoYi
Browse files
字符未使用下划线不进行驼峰式处理
parent
5073f95c
Changes
1
Hide whitespace changes
Inline
Side-by-side
ruoyi-common/src/main/java/com/ruoyi/common/utils/StringUtils.java
View file @
71e7e1d6
...
...
@@ -481,7 +481,8 @@ public class StringUtils extends org.apache.commons.lang3.StringUtils
}
/**
* 驼峰式命名法 例如:user_name->userName
* 驼峰式命名法
* 例如:user_name->userName
*/
public
static
String
toCamelCase
(
String
s
)
{
...
...
@@ -489,6 +490,10 @@ public class StringUtils extends org.apache.commons.lang3.StringUtils
{
return
null
;
}
if
(
s
.
indexOf
(
SEPARATOR
)
==
-
1
)
{
return
s
;
}
s
=
s
.
toLowerCase
();
StringBuilder
sb
=
new
StringBuilder
(
s
.
length
());
boolean
upperCase
=
false
;
...
...
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