update 升级 hutool 5.7.1 适配工具类
| | |
| | | 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>(); |
| | |
| | | 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); |
| | |
| | | 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)); |