update 升级 hutool 5.7.1 适配工具类

master
疯狂的狮子li 5 years ago
parent 7bdce848e7
commit bb2ade75a8

@ -30,7 +30,7 @@ public class FilterConfig {
FilterRegistrationBean registration = new FilterRegistrationBean();
registration.setDispatcherTypes(DispatcherType.REQUEST);
registration.setFilter(new XssFilter());
registration.addUrlPatterns(StrUtil.split(xssProperties.getUrlPatterns(), ","));
registration.addUrlPatterns(StrUtil.splitToArray(xssProperties.getUrlPatterns(), ","));
registration.setName("xssFilter");
registration.setOrder(FilterRegistrationBean.HIGHEST_PRECEDENCE);
Map<String, String> initParameters = new HashMap<String, String>();

@ -11,7 +11,7 @@ import java.util.Arrays;
/**
*
*
*
* @author ruoyi
*/
public class GenUtils
@ -61,7 +61,7 @@ public class GenUtils
column.setHtmlType(GenConstants.HTML_INPUT);
// 如果是浮点型 统一用BigDecimal
String[] str = StrUtil.split(StrUtil.subBetween(column.getColumnType(), "(", ")"), ",");
String[] str = StrUtil.splitToArray(StrUtil.subBetween(column.getColumnType(), "(", ")"), ",");
if (str != null && str.length == 2 && Integer.parseInt(str[1]) > 0)
{
column.setJavaType(GenConstants.TYPE_BIGDECIMAL);
@ -132,7 +132,7 @@ public class GenUtils
/**
*
*
*
* @param arr
* @param targetValue
* @return
@ -144,7 +144,7 @@ public class GenUtils
/**
*
*
*
* @param packageName
* @return
*/
@ -158,7 +158,7 @@ public class GenUtils
/**
*
*
*
* @param tableName
* @return
*/
@ -172,7 +172,7 @@ public class GenUtils
/**
* Java
*
*
* @param tableName
* @return
*/
@ -182,7 +182,7 @@ public class GenUtils
String tablePrefix = GenConfig.getTablePrefix();
if (autoRemovePre && StrUtil.isNotEmpty(tablePrefix))
{
String[] searchList = StrUtil.split(tablePrefix, ",");
String[] searchList = StrUtil.splitToArray(tablePrefix, ",");
tableName = replaceFirst(tableName, searchList);
}
return StrUtil.upperFirst(StrUtil.toCamelCase(tableName));
@ -190,7 +190,7 @@ public class GenUtils
/**
*
*
*
* @param replacementm
* @param searchList
* @return
@ -211,7 +211,7 @@ public class GenUtils
/**
*
*
*
* @param text
* @return
*/
@ -222,7 +222,7 @@ public class GenUtils
/**
*
*
*
* @param columnType
* @return
*/
@ -240,7 +240,7 @@ public class GenUtils
/**
*
*
*
* @param columnType
* @return
*/

Loading…
Cancel
Save