修正注释

This commit is contained in:
RuoYi 2021-03-30 15:30:18 +08:00
parent 2a7342ec43
commit 6ca7870393
3 changed files with 8 additions and 10 deletions

View File

@ -38,18 +38,21 @@ public class RepeatedlyRequestWrapper extends HttpServletRequestWrapper
@Override @Override
public ServletInputStream getInputStream() throws IOException public ServletInputStream getInputStream() throws IOException
{ {
final ByteArrayInputStream bais = new ByteArrayInputStream(body); final ByteArrayInputStream bais = new ByteArrayInputStream(body);
return new ServletInputStream() return new ServletInputStream()
{ {
@Override @Override
public int read() throws IOException public int read() throws IOException
{ {
return bais.read(); return bais.read();
} }
@Override
public int available() throws IOException
{
return body.length;
}
@Override @Override
public boolean isFinished() public boolean isFinished()
{ {
@ -67,11 +70,6 @@ public class RepeatedlyRequestWrapper extends HttpServletRequestWrapper
{ {
} }
@Override
public int available() throws IOException {
return body.length;
}
}; };
} }
} }

View File

@ -312,7 +312,7 @@ public class StringUtils extends org.apache.commons.lang3.StringUtils
} }
/** /**
* 下划线转驼峰命名 * 驼峰转下划线命名
*/ */
public static String toUnderScoreCase(String str) public static String toUnderScoreCase(String str)
{ {

View File

@ -22,7 +22,7 @@ public class EscapeUtil
// special HTML characters // special HTML characters
TEXT['\''] = "'".toCharArray(); // 单引号 TEXT['\''] = "'".toCharArray(); // 单引号
TEXT['"'] = """.toCharArray(); // 引号 TEXT['"'] = """.toCharArray(); // 引号
TEXT['&'] = "&".toCharArray(); // & TEXT['&'] = "&".toCharArray(); // &
TEXT['<'] = "&#60;".toCharArray(); // 小于号 TEXT['<'] = "&#60;".toCharArray(); // 小于号
TEXT['>'] = "&#62;".toCharArray(); // 大于号 TEXT['>'] = "&#62;".toCharArray(); // 大于号