diff --git a/continew-starter-captcha/continew-starter-captcha-behavior/src/main/java/top/continew/starter/captcha/behavior/autoconfigure/cache/BehaviorCaptchaCacheAutoConfiguration.java b/continew-starter-captcha/continew-starter-captcha-behavior/src/main/java/top/continew/starter/captcha/behavior/autoconfigure/cache/BehaviorCaptchaCacheAutoConfiguration.java index c56d5ec0..b7ee5deb 100644 --- a/continew-starter-captcha/continew-starter-captcha-behavior/src/main/java/top/continew/starter/captcha/behavior/autoconfigure/cache/BehaviorCaptchaCacheAutoConfiguration.java +++ b/continew-starter-captcha/continew-starter-captcha-behavior/src/main/java/top/continew/starter/captcha/behavior/autoconfigure/cache/BehaviorCaptchaCacheAutoConfiguration.java @@ -42,7 +42,7 @@ import top.continew.starter.core.constant.PropertiesConstants; * @author Charles7c * @since 1.1.0 */ -@AutoConfiguration() +@AutoConfiguration public class BehaviorCaptchaCacheAutoConfiguration { private static final Logger log = LoggerFactory.getLogger(BehaviorCaptchaCacheAutoConfiguration.class); diff --git a/continew-starter-core/src/main/java/top/continew/starter/core/util/StrUtils.java b/continew-starter-core/src/main/java/top/continew/starter/core/util/StrUtils.java index 22622c03..5a710bc3 100644 --- a/continew-starter-core/src/main/java/top/continew/starter/core/util/StrUtils.java +++ b/continew-starter-core/src/main/java/top/continew/starter/core/util/StrUtils.java @@ -36,11 +36,11 @@ public class StrUtils { * * @param str 要转换的字符串 * @param defaultValue 默认值 - * @param mapping 针对字符串的转换方法 + * @param mapper 针对字符串的转换方法 * @return 转换后的字符串或指定的默认字符串 * @since 2.0.1 */ - public static T blankToDefault(CharSequence str, T defaultValue, Function mapping) { - return CharSequenceUtil.isBlank(str) ? defaultValue : mapping.apply(str.toString()); + public static T blankToDefault(CharSequence str, T defaultValue, Function mapper) { + return CharSequenceUtil.isBlank(str) ? defaultValue : mapper.apply(str.toString()); } }