mirror of
				https://github.com/dromara/RuoYi-Vue-Plus.git
				synced 2025-11-04 16:23:42 +08:00 
			
		
		
		
	update 升级 hutool 5.7.1 适配工具类
This commit is contained in:
		@@ -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>();
 | 
			
		||||
 
 | 
			
		||||
@@ -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);
 | 
			
		||||
@@ -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));
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user